]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix cleanup_temp_volume_snapshots for missing vol
authorTom Barron <tpb@dyncloud.net>
Sat, 25 Jul 2015 21:11:29 +0000 (17:11 -0400)
committerTom Barron <tpb@dyncloud.net>
Mon, 27 Jul 2015 16:06:59 +0000 (16:06 +0000)
commit54f97d28b04b996ed1c8e7fa15f1f4d8f3d58c50
tree59bfd9e6ff200c6d954b53311b51748b83f7cd84
parent4f197feb0d6d4d8c44329087eb373ecdbf282bac
Fix cleanup_temp_volume_snapshots for missing vol

The cleanup_temp_volume_snapshots method raises an exception that
causes the backup service to exit if there is a backup without a
corresponding volume.

This commit catches these exceptions so that the backup service is
not prevented from starting in this circumstance.

Change-Id: Ia1aac2fe78048df5fce595d5de181cb4930ea78d
Closes-bug: 1478599
cinder/backup/manager.py
cinder/tests/unit/test_backup.py