Dear Koushik, Thank you for that. 

I find something odd about the idea, and why would it be of practical
value?

There is no "forced stop" of the VM at all (common sense reads this
action as the equivalent of walking over to a physical machine and
pressing the power button to off - thus ignoring the situation that the
operating system is not able to complete a system shutdown). 

In fact, I am forcing the database to have the information "stopped"
whereas anything could be happening in reality. 

How would an ordinary user be able to know what is happening? A root
admin could go inside the hypervisor and investigate. An ordinary user
could only try to access the VM console, which may be inaccessible
although the VM is still running.

What I am doing as an ordinary user is asking CS to treat the VM as
"stopped" and therefore stop charging me for the use of CPU and other
resources. So is that the practical value - if I have a VM that is
unreachable and may be burning up resources that I do not want to be
charged for? (but the VM may still be actually burning up resources in
the hypervisor!)

Phillip

On Thu, 2014-04-24 at 03:52 +0000, Koushik Das wrote:
> 'Forced = true' means even if stopping the VM failed on the
> hypervisor, CS will go ahead and mark it as stopped in database and
> the API will return success. If 'forced = false' then API would return
> failure in this case.
> 
> 
> On 23-Apr-2014, at 9:36 PM, Phillip Kent <[email protected]> wrote:
> 
> > Dear all,
> > 
> > I am puzzled about the meaning of 'forced stop', as in the parameter
> > forced=true for API call stopVirtualMachine. (For CloudStack 4.2.1 to be
> > precise.)
> > 
> > The command reference page says:
> > "Force stop the VM (vm is marked as Stopped even when command fails to
> > be send to the backend). The caller knows the VM is stopped."
> > 
> > which does not help me at all.
> > 
> > Can anyone clarify?
> > 
> > - Phillip
> > 
> > 
> 

-- 
++++++
Dr Phillip Kent, London, UK
mathematics  education  technology  research
[email protected]  mobile: 07950 952034
www.phillipkent.net
++++++
"Have we not been misled by the romantic belief that
imagination means either emotional power or the concrete 
image. We have not supposed there is a poetry of ideas."

Reply via email to