cinder/releasenotes/notes/quota-sync-temporary-b4103ebc2c484c89.yaml
Gorka Eguileor 8f03b26f50 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
2021-03-26 12:26:15 +01:00

9 lines
400 B
YAML

---
fixes:
- |
`Bug #1919161 <https://bugs.launchpad.net/cinder/+bug/1919161>`_: Fix
automatic quota refresh to correctly account for temporary volumes. During
some cinder operations, such as create a backup from a snapshot, temporary
volumes are created and are not counted towards quota usage, but the sync
mechanism was counting them, thus incorrectly updating volume usage.