Nested quota code considers domain to be parent
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
High
|
Ryan McNair |
Bug Description
The Keystone change Ib22a0f3007cb7e
To see the issue, enable nested quotas with the latest Keystone changes and try to do a quota-show on a top-level project using the default quotas. Incorrectly, the response is all zeros.
[vagrant@vagrant cinder(
+------
| Field | Value |
+------
| description | |
| domain_id | default |
| enabled | True |
| id | c9d31cc2191e408
| is_domain | False |
| name | A |
| parent_id | default |
+------
[vagrant@vagrant cinder(
+------
| Property | Value |
+------
| backup_gigabytes | 0 |
| backups | 0 |
| gigabytes | 0 |
| gigabytes_
| per_volume_
| snapshots | 0 |
| snapshots_
| volumes | 0 |
| volumes_lvmdriver-1 | 0 |
+------
Changed in cinder: | |
assignee: | nobody → Ryan McNair (rdmcnair) |
Changed in cinder: | |
status: | New → In Progress |
Changed in cinder: | |
importance: | Undecided → High |
milestone: | none → mitaka-3 |
Reviewed: https:/ /review. openstack. org/286775 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=46bb7fe7737 24aff16ac8f1ec2 6bea788359d2cc
Committed: https:/
Submitter: Jenkins
Branch: master
commit 46bb7fe773724af f16ac8f1ec26bea 788359d2cc
Author: Ryan McNair <email address hidden>
Date: Tue Mar 1 18:54:37 2016 +0000
Update quotas to handle domain acting as project
The Keystone change Ib22a0f3007cb7e f6b4df6f48da5f4 d018e905f55 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: I221cfc14b886ea 9819e065d4c79e8 c4bfc94df45
Closes-Bug: #1551911