mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
* server: destroy ssvm, cpvm on last host maintenance When a single or last UP host enters into maintenance just stopping SSVM and CPVM will leave behind VMs on hypervisor side. As these system vms will be recreated they can be destroyed. Fixes #3719 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * fix methods Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * immediately destroy systemvms Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * fix destroy Added bypassHostMaintenance flag in Comma.java class to allow command to be handled by host agent even when host is in maintenace. Flag is set true only for delete commands for ssvm and cpvm. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * unit test fix Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * fix missing return statement Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * fix VM should be stopped with cleanup before calling expunge else it server may through error with host in PrepareForMaintenance state. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * refactor Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * rename Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * refactor Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>