Comment 9 for bug 1359138

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/118595
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=e1f8664c9fa83f77f5bb763ffcc3157905ed954c
Submitter: Jenkins
Branch: master

commit e1f8664c9fa83f77f5bb763ffcc3157905ed954c
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
    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.

    Change-Id: I7598afbf0dc3c527471af34224003d28e64daaff
    Closes-Bug: #1359138