]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Allow deletion of backups where the service is None
authorStephen Mulcahy <stephen.mulcahy@hp.com>
Thu, 4 Apr 2013 16:10:16 +0000 (16:10 +0000)
committerStephen Mulcahy <stephen.mulcahy@hp.com>
Fri, 5 Apr 2013 10:38:21 +0000 (10:38 +0000)
commitd38759570a5cdaf26ff48c6fd8a6b0242d74e80b
treed4fb1c1ead000a2c6e06f33c884be9fb431c3d85
parent7437175d1ee37142955dcaa564c2595baf16c831
Allow deletion of backups where the service is None

If a backup is created while both cinder-backup and rabbitmq
are not running, backup records are created in the database with a
service entry of None.

There is no actual backup data created on the service, since the service
isn't running. This fix allows removal of these records without an error
when a delete backup request is received.

This fix also ensures backup status is set to error in the event of
an exception during a delete.

Fixes bug #1162908

Change-Id: I5771747a00a70621f7cc101f8c1da2f613e83cdf
cinder/backup/manager.py
cinder/tests/test_backup.py