Add group resources for quota syncing
Currently `cinder-manage quota sync` crashes if there are rows of resource groups in table quota_usages. This patch adds 'groups', '_sync_groups' and 'quota_groups' to the resource types it checks for. Closes-Bug: https://bugs.launchpad.net/cinder/+bug/2107451 Change-Id: I237b232a8482427f95edd08a0e1daebd349d8afb
This commit is contained in:
@@ -490,6 +490,7 @@ class QuotaCommands(object):
|
||||
ctxt = context.get_admin_context()
|
||||
# Get the quota usage types and their sync methods
|
||||
resources = quota.QUOTAS.resources
|
||||
resources.update(quota.GROUP_QUOTAS.resources)
|
||||
|
||||
# Get all project ids that have quota usage. Method doesn't lock
|
||||
# projects, since newly added projects should not be out of sync and
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
`Bug #2107451 <https://bugs.launchpad.net/cinder/+bug/2107451>`_: Fixed
|
||||
crash of `cinder-manage quota sync` if there is a row in the
|
||||
quota_usage table with the value groups for column resource
|
||||
Reference in New Issue
Block a user