]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add reset-state function for backups
authorling-yun <zengyunling@huawei.com>
Tue, 26 Aug 2014 10:39:30 +0000 (18:39 +0800)
committerling-yun <zengyunling@huawei.com>
Fri, 12 Sep 2014 07:32:17 +0000 (15:32 +0800)
commitcef4a9b230e784d69020121876afbbe1955338d3
tree1e5e422b7ad9cdf330231347014c3c0d3d7dc20b
parent69b4cfd09c61da1ccd9c9587dcd043240bc3e9d0
Add reset-state function for backups

Since there are volume reset-state function and snapshot reset-state
function, backup also needs reset-state as well.
When creating or restoring backup, it may leave the backup stuck in
creating or restoring status due to database down or rabbitmq down, etc.
Currently we could only solve these problems by restarting cinder-backup
service.

This BP is to provide another means for administrators to solve these
problems by calling backup reset state API, instead of directly
restarting cinder-backup service.

DocImpact: Support reset backup status

blueprint support-reset-state-for-backup

Change-Id: Icd677a0b48083894bcd969d5199fa91b307080de
cinder/api/contrib/admin_actions.py
cinder/api/contrib/backups.py
cinder/backup/api.py
cinder/backup/manager.py
cinder/backup/rpcapi.py
cinder/exception.py
cinder/tests/api/contrib/test_admin_actions.py
cinder/tests/policy.json
cinder/tests/test_backup.py
etc/cinder/policy.json