server: detach data disks before destroying vms#5356
server: detach data disks before destroying vms#5356nvazquez merged 1 commit intoapache:4.15apache/cloudstack:4.15from shapeblue:4.15-detach-volumes-before-destroy-vmshapeblue/cloudstack:4.15-detach-volumes-before-destroy-vmCopy head branch name to clipboard
Conversation
|
@blueorangutan package |
|
@weizhouapache a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 978 |
|
@weizhouapache can you target this PR to the main branch? |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 993 |
|
@blueorangutan test |
|
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1761)
|
davidjumani
left a comment
There was a problem hiding this comment.
Tested with multiple DataDisks, all 4 scenarios work as expected
great, thanks for testing @davidjumani @rhtyd @PaulAngus @DaanHoogland @nvazquez |
|
clgtm, tests done. I've given the failed travis tests another spin. |
|
@weizhouapache does this affect 4.15 too? If so, pl raise PR against 4.15 branch if it's a bug fix. Thanks. |
@rhtyd @nvazquez changed base branch back to 4.15 |
|
@blueorangutan package |
|
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 1043 |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1814)
|
Description
This PR fixes #4902
The testing results with this change:
When destroy VM without expunge and when no data disk is selected for deletion
destroy vm: VM is stopped, data disk is detached from vm (in Ready state)
recover vm: vm is ready only with root disk.
When destroy VM without expunge and when one or more data disks are selected for deletion
destroy vm: VM is stopped, Data disks marked for deletion are detached and in Destroy state . the remaining disks are detached from VM
recover vm: vm is ready only with root disk.
recover data disk in Destroy: volume is ready, and not attached to vm.
When destroy VM with expunge and when no data disk is selected for deletion
VM is destroyed and expunged completely.
data disks are detached from vm.
When destroy VM with expunge and few data disks are selected for deletion
VM is destroyed and expunged completely.
Data disks marked for deletion are deleted. the remaining disks are detached from VM
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?