yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #04867
[Bug 1208400] Re: User quota update should not exceed project quota
** Changed in: oslo
Status: Fix Committed => Fix Released
** Changed in: oslo
Milestone: None => havana-3
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1208400
Title:
User quota update should not exceed project quota
Status in OpenStack Compute (Nova):
Fix Released
Status in Oslo - a Library of Common OpenStack Code:
Fix Released
Bug description:
Currently, user quota could be updated exceed the project quota, if
the user quota was not set before.
Reproduce:
# keystone tenant-list
+----------------------------------+------------------+---------+
| id | name | enabled |
+----------------------------------+------------------+---------+
| 21f7a02dbfd94979b83b3b551c78e380 | admin | True |
| ebe1d1e9734143f0a0939166c546347a | service | True |
| 846576498dc24660943784e25e2b5b1a | test | True |
+----------------------------------+------------------+---------+
# keystone user-list --tenant-id 846576498dc24660943784e25e2b5b1a
+----------------------------------+--------+---------+-----------------+
| id | name | enabled | email |
+----------------------------------+--------+---------+-----------------+
| 6a120d1a6034481fa7e905d422dceb76 | test | True | test@xxxxxxxx |
+----------------------------------+--------+---------+-----------------+
Set quota for project:
# nova-manage project quota --project 846576498dc24660943784e25e2b5b1a --key instances --value 3
Quota Limit In Use Reserved
metadata_items 128 0 0
injected_file_content_bytes 10240 0 0
ram 51200 0 0
floating_ips 10 0 0
security_group_rules 20 0 0
instances 3 0 0
key_pairs 100 0 0
injected_files 5 0 0
cores 20 0 0
fixed_ips unlimited 0 0
injected_file_path_bytes 255 0 0
security_groups 10 0 0
Set quota for user under the project:
# nova-manage project quota --project 846576498dc24660943784e25e2b5b1a --user 6a120d1a6034481fa7e905d422dceb76 --key instances --value 4
Quota Limit In Use Reserved
metadata_items 128 0 0
injected_file_content_bytes 10240 0 0
ram 51200 0 0
floating_ips 10 0 0
security_group_rules 20 0 0
instances 4 0 0
key_pairs 100 0 0
injected_files 5 0 0
cores 20 0 0
fixed_ips unlimited 0 0
injected_file_path_bytes 255 0 0
security_groups 10 0 0
Set quota for user under the project again:
# nova-manage project quota --project 846576498dc24660943784e25e2b5b1a --user 6a120d1a6034481fa7e905d422dceb76 --key instances --value 4
Quota limit must less than 3.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1208400/+subscriptions