Merge lp://qastaging/~rackspace-titan/nova/xen_vmops_rescue_fixes into lp://qastaging/~hudson-openstack/nova/trunk
Status: | Work in progress | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Proposed branch: | lp://qastaging/~rackspace-titan/nova/xen_vmops_rescue_fixes | ||||||||||||
Merge into: | lp://qastaging/~hudson-openstack/nova/trunk | ||||||||||||
Diff against target: |
71 lines (+20/-14) 1 file modified
nova/virt/xenapi/vmops.py (+20/-14) |
||||||||||||
To merge this branch: | bzr merge lp://qastaging/~rackspace-titan/nova/xen_vmops_rescue_fixes | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chris Behrens (community) | Needs Information | ||
Nova Core security contacts | Pending | ||
Review via email:
|
Description of the change
Fix some issues in rescue and unrescue issues in xenapi/vmops.py:
1) check for and delete rescue instances when deleting an instance
2) _find_rescue_vbd now works if there is no swap vbd
3) fix 'device in use' errors that would happen when unrescuing an image
in which the user actually mounted the original image VBD.
We no longer try to individually hot unplug the VBDs on the rescue instance
before shutdown. Simply shutting down the rescue instance and removing the
VDIs seems to be a more robust unrescue method.
Unmerged revisions
- 1580. By Dan Prince
-
small typo in comment.
- 1579. By Dan Prince
-
Fix some issues in rescue and unrescue issues in xenapi/vmops.py:
1) check for and delete rescue instances when deleting an instance
2) _find_rescue_vbd now works if there is no swap vbd
3) fix 'device in use' errors that would happen when unrescuing an image
in which the user actually mounted the original image VBD.
We no longer try to individually hot unplug the VBDs on the rescue instance
before shutdown. Simply shutting down the rescue instance and removing the
VDIs seems to be a more robust unrescue method.
Small typo on line 9: "We try use the second"
And hm. Doesn't this destroy the instance's disks? Seems like just shutting down rescue and calling destroy on all of the VDIs will remove the disk we want to keep around. I'd figure we'd still want to unplug the disk... but maybe do it after shutdown.