diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-09-23 16:17:35 +0000 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-09-23 16:55:58 +0000 |
| commit | 9562ee3ce71301fa0e4de0c167d6cc1cf83ed9a6 (patch) | |
| tree | ff7b29a3b4d2f1bbf8181fd97a65ac1a14360b6a /nova/openstack | |
| parent | 338fae4f2be127f65491860fc46dc7436a5610be (diff) | |
| download | nova-9562ee3ce71301fa0e4de0c167d6cc1cf83ed9a6.tar.gz nova-9562ee3ce71301fa0e4de0c167d6cc1cf83ed9a6.tar.xz nova-9562ee3ce71301fa0e4de0c167d6cc1cf83ed9a6.zip | |
Fixes snapshotting of instances booted from volume
When an instance was booted from a volume, the block device mapping
entry has volume_id set. If it was booted from a snapshot it has
volume_id and snapshot_id set. When we snapshot the instance, it
should be snapshotting the volume in both cases.
This patch fixes the faulty logic that was causing snapshotting to
only happen in the case the instance was booted from a snapshot.
It also includes a (formerly failing) test to verify that the volume
commands are actually called and the new snapshot is set properly.
Fixes bug 1055076
Change-Id: Icdd2ab7f3e2d43a0564aea132fe707a592fe4e75
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions
