cinder/cinder/db/sqlalchemy
Rodrigo Barbieri c4de3a8c83 Fix cross-project incremental backups
This patch addresses the scenario where an
incremental backup can be created having a
parent backup that was taken in a different
project. This scenario ultimately leads to
a silent error when creating/deleting the
incremental backup and quotas going out of
sync.

The proposed fix is to narrow the backup search
down to the same project. To achieve this, a
method's signature had to be updated to achieve
the desired optimized behavior of passing the
volume's project_id parameter.

Closes-bug: #1869746
Closes-bug: #1873518

Change-Id: Icb621ff5966133f59d9d43ca2dd9f8e1919b1149
(cherry picked from commit 8ebeafcbba)
(cherry picked from commit 5358c996b4)
(cherry picked from commit f3cdc27563)
(cherry picked from commit 5983eee1c3)
2020-07-21 10:58:32 -03:00
..
migrate_repo Transfer snapshots with volumes 2018-07-19 09:42:43 +08:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-26 22:45:17 -06:00
api.py Fix cross-project incremental backups 2020-07-21 10:58:32 -03:00
models.py Transfer snapshots with volumes 2018-07-19 09:42:43 +08:00