VMWare: Fix VM leak when deletion of VM during resizing
During the VM resizing, before VM arrive RESIZED state, driver
migrate_disk_and_power_off will initially rename orginal vm
'uuid' to be 'uuid-orig' and clone a new vm with 'uuid' name.
When deletion VM is triggered at this time window, it wouldn't
be able to delete the VM uuid-orig in VCenter and so cause VM leak.
As VM task state will be set to 'deleting' and it can not be used to
determine the resize migrating/migrated state, this fix will
attempt to delete orig VM within destroy phase.
Reviewed: https:/ /review. openstack. org/118595 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=e1f8664c9fa 83f77f5bb763ffc c3157905ed954c
Committed: https:/
Submitter: Jenkins
Branch: master
commit e1f8664c9fa83f7 7f5bb763ffcc315 7905ed954c
Author: ZHU ZHU <email address hidden>
Date: Wed Sep 3 03:59:13 2014 -0500
VMWare: Fix VM leak when deletion of VM during resizing
During the VM resizing, before VM arrive RESIZED state, driver disk_and_ power_off will initially rename orginal vm
migrate_
'uuid' to be 'uuid-orig' and clone a new vm with 'uuid' name.
When deletion VM is triggered at this time window, it wouldn't
be able to delete the VM uuid-orig in VCenter and so cause VM leak.
As VM task state will be set to 'deleting' and it can not be used to
determine the resize migrating/migrated state, this fix will
attempt to delete orig VM within destroy phase.
Change-Id: I7598afbf0dc3c5 27471af34224003 d28e64daaff
Closes-Bug: #1359138