summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorRick Harris <rconradharris@gmail.com>2013-01-29 07:26:48 +0000
committerRick Harris <rconradharris@gmail.com>2013-01-30 18:13:26 +0000
commit8705f49a4ad9c6f3a93f33e333475285a8f70a30 (patch)
tree3ecac6d6b41b9e7d33c270efe885a0f3b2067aeb /nova/exception.py
parent045e1190f23616e266e5b054b7b192e61e37d659 (diff)
downloadnova-8705f49a4ad9c6f3a93f33e333475285a8f70a30.tar.gz
nova-8705f49a4ad9c6f3a93f33e333475285a8f70a30.tar.xz
nova-8705f49a4ad9c6f3a93f33e333475285a8f70a30.zip
Fix rebuild with volumes attached
This patch assumes that the correct behavior for instance rebuild is to maintain attached volumes across a rebuild operation. Two important changes are: 1) Detaching all volumes during a rebuild so that they won't be 'in-use' when prep_block_devices is called to reattach them. 2) xenapi: Allowing additional volumes, not just root volumes, to be attached before boot. To handle this, we cycle through all block-device-mappings, not just the root-device, create the VDI, and later, create the VBD. Small changes include: * Using `connection_data` instead of `dev_params` (to match other parts of the code base) * Renaming `get_vdis_for_boot_from_vol` to `get_vdi_uuid_for_volume` to reflect its more general and simpler semantics. Fixes bug 1071547 Change-Id: Ie54a16be4bae2a718ed7d506f32777d0847b9089
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions