]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix backup init_host volume cleanup
authorTom Barron <tpb@dyncloud.net>
Wed, 5 Aug 2015 23:19:37 +0000 (17:19 -0600)
committerTom Barron <tpb@dyncloud.net>
Fri, 14 Aug 2015 11:38:34 +0000 (11:38 +0000)
commit0faff1f6aca23920df2c1042b1831268ea2ae5c3
treed3efdb1aa4714a7ad92a09d9048fba8cce0eca22
parent6d878b3f5d4663f90ec2d28e7ad70422f7ad232c
Fix backup init_host volume cleanup

Backup service manager init_host method cleans up leftover volumes from
interrupted backup and restore operations.  As the code is currently
written, it only does this for volumes with attachments.

This commit runs the volume cleanup for volumes in backing-up or restoring
state even when they do not have attachments.

Closes-bug: 1482548
Change-Id: I753c72b7adcdf57745deafaad7de616eb6243aa9
cinder/backup/manager.py
cinder/tests/unit/test_backup.py