cloudstack/plugins
Abhishek Kumar dc91a1fd4d
server: destroy ssvm, cpvm on last host maintenance (#4644)
* 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>
2021-05-14 23:16:15 +05:30
..
acl Updating pom.xml version numbers for release 4.14.2.0-SNAPSHOT 2021-03-02 12:32:27 +05:30
affinity-group-processors Updating pom.xml version numbers for release 4.14.2.0-SNAPSHOT 2021-03-02 12:32:27 +05:30
alert-handlers Updating pom.xml version numbers for release 4.14.2.0-SNAPSHOT 2021-03-02 12:32:27 +05:30
api Updating pom.xml version numbers for release 4.14.2.0-SNAPSHOT 2021-03-02 12:32:27 +05:30
backup Updating pom.xml version numbers for release 4.14.2.0-SNAPSHOT 2021-03-02 12:32:27 +05:30
ca/root-ca Updating pom.xml version numbers for release 4.14.2.0-SNAPSHOT 2021-03-02 12:32:27 +05:30
database Updating pom.xml version numbers for release 4.14.2.0-SNAPSHOT 2021-03-02 12:32:27 +05:30
dedicated-resources Updating pom.xml version numbers for release 4.14.2.0-SNAPSHOT 2021-03-02 12:32:27 +05:30
deployment-planners Updating pom.xml version numbers for release 4.14.2.0-SNAPSHOT 2021-03-02 12:32:27 +05:30
event-bus Updating pom.xml version numbers for release 4.14.2.0-SNAPSHOT 2021-03-02 12:32:27 +05:30
ha-planners/skip-heurestics Updating pom.xml version numbers for release 4.14.2.0-SNAPSHOT 2021-03-02 12:32:27 +05:30
host-allocators/random Merge remote-tracking branch 'origin/4.14' into 4.15 2021-04-09 13:17:39 +05:30
hypervisors VMware Datastore Cluster primary storage pool synchronisation (#4871) 2021-05-07 16:30:54 +05:30
integrations vmware cks: Guard k8s cluster root disk resize if no root disk size passed (#4957) 2021-04-29 20:41:38 +05:30
metrics api/server: cpu, memory values with overprovisioning in metrics response (#4795) 2021-05-14 23:15:35 +05:30
network-elements Updating pom.xml version numbers for release 4.14.2.0-SNAPSHOT 2021-03-02 12:32:27 +05:30
outofbandmanagement-drivers Updating pom.xml version numbers for release 4.14.2.0-SNAPSHOT 2021-03-02 12:32:27 +05:30
storage server: destroy ssvm, cpvm on last host maintenance (#4644) 2021-05-14 23:16:15 +05:30
storage-allocators/random Updating pom.xml version numbers for release 4.14.2.0-SNAPSHOT 2021-03-02 12:32:27 +05:30
user-authenticators ldap: Fix orphan entry on ldap trust map after account removal (#4899) 2021-04-10 13:26:50 +05:30
pom.xml Updating pom.xml version numbers for release 4.14.2.0-SNAPSHOT 2021-03-02 12:32:27 +05:30