6386cbb0a0
We're supposed to fail an import request for an already existing backup, but the current code confuses an existing backup record with one we created for the import, and during quota rollback, will destroy either one. Simplify the logic so that we check whether there's an already existing backup first and bail without even bothering to make an unnecessary reservation, hence leaving us nothing to roll back or delete by mistake. Also revise and add tests. Closes-bug: #1965847 Change-Id: I3c0e365f5dc3c32975343f538c6029f02ac7c2b5
8 lines
254 B
YAML
8 lines
254 B
YAML
---
|
|
fixes:
|
|
- |
|
|
`Bug #1965847 <https://bugs.launchpad.net/cinder/+bug/1965847>`_: Fixed
|
|
issue where importing a backup record for a backup_id that currently
|
|
existed had the unfortunate side effect of deleting the existing backup
|
|
record.
|