cinder/cinder/db
Gorka Eguileor 87a9338466 Fix automatic quota sync for temporary volumes
When using the automatic quota refresh via `until_refresh` and `max_age`
configuration options the calculated quota usage by the refresh will not
be correct if there are temporary volumes (such as those created from
snapshots for backups).

Normal quota usage calculation does not work like this, as it has admin
metadata stating that those are temporary volumes and are not used to
increase/decrease quota usage.

This patch fixes this by modifying existing filter that ignores
migrating volumes so it can also ignore temporary volumes based on their
admin metadata.

Closes-Bug: #1919161
Change-Id: I0fd89028684c1406f427f4c97b120ece5cf2780b
(cherry picked from commit 8f03b26f50)
2021-03-30 12:41:48 +00:00
..
sqlalchemy Fix automatic quota sync for temporary volumes 2021-03-30 12:41:48 +00:00
__init__.py Enable flake8 H303,H304 checking 2014-04-15 09:16:01 +00:00
api.py Merge "Default type overrides" 2020-09-16 21:49:13 +00:00
base.py Remove six of dir cinder/db/* 2020-10-07 16:29:29 +08:00
migration.py Compact DB migrations to Queens 2019-05-03 09:45:21 -05:00