nova/releasenotes/notes/quota-unshelve-offloaded-e4ea2d6a1449f549.yaml
melanie witt 6f79d6321e Enforce quota usage from placement when unshelving
When [quota]count_usage_from_placement = true or
[quota]driver = nova.quota.UnifiedLimitsDriver, cores and ram quota
usage are counted from placement. When an instance is SHELVED_OFFLOADED,
it will not have allocations in placement, so its cores and ram should
not count against quota during that time.

This means however that when an instance is unshelved, there is a
possibility of going over quota if the cores and ram it needs were
allocated by some other instance(s) while it was SHELVED_OFFLOADED.

This fixes a bug where quota was not being properly enforced during
unshelve of a SHELVED_OFFLOADED instance when quota usage is counted
from placement. Test coverage is also added for the "recheck" quota
cases.

Closes-Bug: #2003991

Change-Id: I4ab97626c10052c7af9934a80ff8db9ddab82738
2023-05-23 01:02:05 +00:00

9 lines
327 B
YAML

fixes:
- |
`Bug #2003991`_: Fixes an issue where quota was not properly enforced
during unshelve of a ``SHELVED_OFFLOADED`` server when
``[quota]count_usage_from_placement = true`` or
``[quota]driver = nova.quota.UnifiedLimitsDriver`` are configured.
.. _Bug #2003991: https://launchpad.net/bugs/2003991