]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Handle missing temp volume and snapshot during cleanup
authorXing Yang <xing.yang@emc.com>
Mon, 10 Aug 2015 02:41:21 +0000 (22:41 -0400)
committerXing Yang <xing.yang@emc.com>
Mon, 10 Aug 2015 02:41:21 +0000 (22:41 -0400)
commit454bdf0f0fc5d0eb58fa87855700995345c93fc6
treee394984cacd17ea44883e2cf7c1cf7883ce921ee
parent1bbae62b3da786e5ca9dc4ad1c35b25c8d5593e0
Handle missing temp volume and snapshot during cleanup

When backup service is started, we try to clean up temp volumes
and snapshots in previously failed backups. If the temp volume
or snapshot is already deleted, we will get VolumeNotFound or
SnapshotNotFound exceptions. These exceptions should be handled.
Also temp_volume_id and temp_snapshot_id should be set to None
after they are deleted.

Change-Id: Ia20834bcc89040364bce71fc66c32c1777a5ac11
Closes-Bug: #1484774
cinder/backup/manager.py
cinder/tests/unit/test_backup.py