weizhouapache commented on issue #3720: VM stopped/crashing while Migration 
with Maintenance Mode (KVM)
URL: https://github.com/apache/cloudstack/issues/3720#issuecomment-558986632
 
 
   @svenvogel @andrijapanicsb 
   
   I think @andrijapanicsb 's suggestion is good.  Suppose we have a new 
parameter forceMaintenance in the command
   
   (1) if there are vms running on the host.  if there is no any other server 
in Up status and Enabled state in the cluster
   (1.1) if forceMaintenance  = true, stop all vms
   (1.2) if forceMaintenance  = false, throw exception, host is put to 
ErrorInMaintenance or Up status.
   
   (2) if there are other servers in the cluster, all vms will be migrated away 
from the host
   (2.1) if all vm migrations succeed, then host is put to Maintenance.
   (2.2) if vm migration failed, then try to migrate vm to another host . If vm 
migration failed after 5 times (this can be configured)), then
   (2.2.1) if  forceMaintenance  = true, schedule a task to stop/start the vm.
   (2.2.2) if forceMaintenance  = false, throw exception, host is put to 
ErrorInMaintenance.
   
   any suggestion ?
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to