cinder/releasenotes/notes/bug-1809323-fix-invalid-backup-4a341dc362ded88e.yaml
LeopardMa a62fabfa65 Rollback the quota_usages table when failed to create a incremental backup
If we firstly create a incremental backup without parent backup
or using unavailable backup file, like execute the command:
``cinder backup-create --name test_backup --incremental
2e3d9d0b-6b33-4cfe-a7c2-656415ee6f61``.

To satisfy one of the above reasons, we will be received an error
info: "Invalid backup: No backups available to do an incremental
backup. (HTTP 400)". But the reserved value of the ``quota_usages``
table has been updated, so we need to roll back the ``quota_usages``
table. Otherwise, after repetitive operation for many times,
create backup will be failed.

Co-Authored-By: Brin Zhang <zhangbailin@inspur.com>

Closes-Bug: #1809323
Change-Id: I1870633a5505bdb60d529fbda3147378b75e2b07
2019-08-14 08:53:15 +08:00

7 lines
208 B
YAML

---
fixes:
- |
Now cinder will be rollback the ``quota_usages`` table when failed
to create an incremental backup if there doesn't exist a parent
backup or the backup is not in available state.