Comment 5 for bug 1229994

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

Reviewed: https://review.openstack.org/58703
Committed: http://github.com/openstack/nova/commit/96257fd7d5ecd00e0eb84b110e52eb811d268d55
Submitter: Jenkins
Branch: stable/havana

commit 96257fd7d5ecd00e0eb84b110e52eb811d268d55
Author: Vui Lam <email address hidden>
Date: Mon Sep 30 11:25:41 2013 -0700

    VMware: fix snapshot failure when host in maintenance mode

    The root cause is due to a bug in the VC's handling of the
    VirtualDiskManager.DeleteVirtualDisk_Task API, which allows the picking
    of any host in a datacenter with access to the datastore participating
    in the disk deletion picked be to perform the operation, even when the
    host is in maintenance mode and hence will always reject the call when
    sent.

    The fix uses an alternative API (FileManager.DeleteDatastoreFile_Task)
    to delete the vmdk and -flat vmdk files separately. This API does not
    suffer from the above-mentioned failure mode.

    Closes-Bug: #1229994

    (cherry picked from commit 7910385825ccfa705785af360fcd5717656e3557)

    Conflicts:
     nova/virt/vmwareapi/fake.py
     nova/virt/vmwareapi/vmops.py

    Change-Id: I786365847673e5192a21b654cba951b2e7a6f291