Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 7910385) Conflicts: nova/virt/vmwareapi/fake.py nova/virt/vmwareapi/vmops.py Change-Id: I786365847673e5192a21b654cba951b2e7a6f291
- Loading branch information
Showing
3 changed files
with
61 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters