cinder/etc/cinder
wanghao 1c91180de9 Add support for force-delete backups
1. Add _get and _delete method to BackupAdminController.
2. Add force=False arg to delete method in backup api.
3. If force=True, then allow the deletion of backup, which
can be in any state.
4. For chunkeddriver based backup, check the status of backup
from DB in backup loop, if it has changed to deleting, set the
flag is_backup_canceled and clear the data to avoid leaving orphan
object in the object store.
5. Add the flag: support_force_delete=False in BackupDriver. That
indicates if the backup driver supports force deletion.
It should be set to True if the driver that inherits from BackupDriver
supports the force deletion function.
6. If the backup driver doesn't support this feature, and it will return
405 when calling API of force delete.

DocImpact
APIImpact
Add os-force_delete in request body:
*POST /v2/{tenant_id}/backups/{id}/action
{
  "os-force_delete": {}
}
Implements: blueprint support-force-delete-backup

Change-Id: Ia4d36520d2a092730cd1be56e338349e383f9e6b
2015-07-10 21:38:53 +00:00
..
rootwrap.d Remove duplicate volume.filters entry 2015-07-06 10:57:44 -07:00
api-paste.ini Move to the oslo.middleware library 2015-03-12 13:57:23 -05:00
logging_sample.conf Move logging sample to use oslo_log 2015-04-30 15:04:48 +00:00
policy.json Add support for force-delete backups 2015-07-10 21:38:53 +00:00
README-cinder.conf.sample Remove the cinder.conf.sample file 2014-12-07 23:09:36 +08:00
rootwrap.conf Add iSCSI SCST Target support to cinder 2015-02-13 00:52:11 +05:30