You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "weizhouapache (via GitHub)" <gi...@apache.org> on 2023/06/16 13:23:01 UTC

[GitHub] [cloudstack] weizhouapache commented on issue #7635: VM status is not getting changed when shutdown is triggered from VM

weizhouapache commented on issue #7635:
URL: https://github.com/apache/cloudstack/issues/7635#issuecomment-1594670601

   > @soreana I had tested this and now VM status moved to stopped after some time of VM shutdown Steps done
   > 
   > 1. verified global setting Force ha (force.ha) is disable
   > 2. created new compute offering with HA disable
   > 3. Shutdown VM and change the compute offering  to newly created one
   > 4. started VM
   > 5. login to console and trigged power off
   > 6. VM powered off and console disconnected
   > 7. checked on KVM and VM is not showing in running status
   > 8. wait for about 5min to get stopped status on cloudstack
   > 
   > So HA on compute offering is nothing but if VM is stooped cloudstack will automattically bring that UP after a time period? I thought HA helps VM to move from 1 KVM to another when KVM get disconnected.
   
   Hi @Noelantogerorge you are right.
   
   You may know there are two levels of HA: vm HA and Host HA.
   
   For vm ha, if vm is stopped unexpectedly, for example shutdown inside vm, or destroyed using "virsh destroy" , after a graceful period the vm will be updated to Stopped state. If vm HA is enabled, cloudstack will bring it up.
   
   For host ha, if host is not connected, cloudstack will determine the host status via its neighbours . Depends on the result, host will be updated to Disconnected or Down. If host is Down, cloudstack will start the vms on other hosts (if vm ha is enabled).  Currently it supports only hosts with NFS storage or OOM.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org