user quota not properly work with project quota
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Liyingjun | ||
oslo-incubator |
Fix Released
|
Undecided
|
Liyingjun |
Bug Description
When user quota is not set, it's not restricted by the project quota.
Reproduce:
1. Set project quota:
# nova-manage project quota --project 846576498dc2466
Quota Limit In Use Reserved
metadata_items 128 0 0
injected_
ram 51200 0 0
floating_ips 10 0 0
security_
instances 3 0 0
key_pairs 100 0 0
injected_files 5 0 0
cores 20 0 0
fixed_ips unlimited 0 0
injected_
security_groups 10 0 0
2. get the users for project.
# keystone user-list --tenant-id 846576498dc2466
+------
| id | name | enabled | email |
+------
| 6a120d1a6034481
+------
3. get user quota.
# nova-manage project quota --project 846576498dc2466
metadata_items 128 0 0
injected_
ram 51200 0 0
floating_ips 10 0 0
security_
instances 2 0 0
key_pairs 100 0 0
injected_files 5 0 0
cores 20 0 0
fixed_ips unlimited 0 0
injected_
security_groups 10 0 0
Instances quota for user should be 3, but in fact it's 2, and 2 is the default quota i have set in the config file.
Changed in nova: | |
assignee: | nobody → Liyingjun (liyingjun) |
Changed in nova: | |
status: | New → Confirmed |
description: | updated |
Changed in oslo: | |
assignee: | nobody → Liyingjun (liyingjun) |
status: | New → In Progress |
Changed in nova: | |
milestone: | none → havana-3 |
status: | Fix Committed → Fix Released |
Changed in oslo: | |
milestone: | none → havana-3 |
status: | Fix Committed → Fix Released |
Changed in oslo: | |
milestone: | havana-3 → 2013.2 |
Changed in nova: | |
milestone: | havana-3 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/38966
Review: https:/