]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
backup init_host cleanup exception handling
authorTom Barron <tpb@dyncloud.net>
Wed, 26 Aug 2015 20:07:00 +0000 (16:07 -0400)
committerTom Barron <tpb@dyncloud.net>
Wed, 9 Sep 2015 19:13:41 +0000 (19:13 +0000)
commitbda6da1f8df44a64e8b320ebd8e2211197b6afeb
tree5e944f91b2ccffe379aa8d8b79b8a90f836a8548
parentcb790c0979665f376c0c01c0443301f8e7362d66
backup init_host cleanup exception handling

Current cleanup of leftover backups, volumes, and temporary
volumes and snapshots is not resilient in the face of exceptions
such as failures in detach operations.

This commit adds appropriate try/except logic to this section
of code, thereby ensuring that the backup service can start even
if exceptions are encountered when attempting to cleanup detritus
from earlier failed backup operations.

Change-Id: Ie8d2107ebd4d86dfe5664c35687e8cbe58cfad9d
Closes-bug: 1485295
cinder/backup/manager.py
cinder/tests/unit/test_backup.py