cinder/releasenotes/notes/quota-sync-migrating-2c99e134e117a945.yaml
Gorka Eguileor e55043ff00 Fix automatic quota sync for migrating 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 volumes that are migrating, since source and
destination volumes are counted in the refresh.

Normal quota usage calculation does not work like this, it only counts
it once, and so should the automatic quota calculation.

This patch fixes this by adding a filter to the query that skips
migration destination volumes.

It also updatest the DB implementation of volume_data_get_for_project
that didn't match the signature in cinder.db.api

Closes-Bug: #1917450
Change-Id: Ifff092917abe07726367a953f5ed420626c53bb9
2021-03-17 09:06:07 +01:00

8 lines
278 B
YAML

---
fixes:
- |
`Bug #1917450 <https://bugs.launchpad.net/cinder/+bug/1917450>`_: Fix
automatic quota refresh to correctly account for migrating volumes. During
volume migration we'll have 2 volumes in cinder and only one will be
accounted for in quota usage.