]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Check backup service before backup delete
authorNate Potter <nathaniel.potter@intel.com>
Tue, 17 Nov 2015 16:50:24 +0000 (16:50 +0000)
committerNate Potter <nathaniel.potter@intel.com>
Mon, 7 Dec 2015 15:20:09 +0000 (15:20 +0000)
commit860a40f299134fac895a5a68bd171a401c540acb
treeb9884b05547472fefc7da0abe4b8bdf98f9fc02e
parentef08af911244210b5b7839502302a90199b14263
Check backup service before backup delete

Right now, if a user tries to delete a backup and the cinder-backup
service is down, the backup status will be error and no message will
be provided to the user. This patch will add a check to see that the
service is running before issuing the rpcapi cast to delete the backup,
and inform the user that the service is down if the check fails. However,
it is still possible with this fix for the service to go down during the
time between the check and when the backup is actually deleted.

Change-Id: Ia9914bfaae8ed9b6972953fc1e78c4471fa1661a
Closes-bug: #1321519
cinder/backup/api.py
cinder/tests/unit/api/contrib/test_admin_actions.py
cinder/tests/unit/api/contrib/test_backups.py