]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Update quotas to handle domain acting as project
authorRyan McNair <rdmcnair@us.ibm.com>
Tue, 1 Mar 2016 18:54:37 +0000 (18:54 +0000)
committerRyan McNair <rdmcnair@us.ibm.com>
Mon, 7 Mar 2016 17:06:28 +0000 (17:06 +0000)
commit46bb7fe773724aff16ac8f1ec26bea788359d2cc
treef8f0d699730cccf950e83e902a24b11d648e6b3d
parentad052ea99a6be50c09eda017bafb0decfd218f42
Update quotas to handle domain acting as project

The Keystone change Ib22a0f3007cb7ef6b4df6f48da5f4d018e905f55 sets
the domain_id as the top-level parent project. However, since a
domain is not a project and therefore has no effect on quota nesting,
the domain "parent" should not be considered in the nested quota code.
This patch updates the quota code to ignore the domain_id if it's
present in the parent tree.

Change-Id: I221cfc14b886ea9819e065d4c79e8c4bfc94df45
Closes-Bug: #1551911
cinder/quota_utils.py
cinder/tests/unit/test_quota.py
cinder/tests/unit/test_quota_utils.py