Quota update should add check to avoid update projects tenant_id or user_id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
For now the nova quota-update will not give any constraints for the values provided(user_id, tenant_id) when updates.
Actually if user 'nova quota-update service --ram=90000' and it will get successfully. But it could give user some confusion that quota-show --tenant <tenant-name> is different with quota-show --tenant <tenant-uuid>.
It is suggested that checks can be added to only allow the uuid-hex format tenant-id or user-id to get quota updated.
[root@openstack-zz ~]# keystone tenant-list|grep -i service
| 6194feba2f7d4ba
| 342e8af8e9e14d5
| 9abbd7d89f72442
| 9648314c9e72430
| 134ba2bec4e8412
| ca5f77e01d4f457
| 02bbd8a72c7a461
[root@openstack-zz ~]# nova quota-update service --ram 94000
[root@openstack-zz ~]# nova quota-show --tenant service
+------
| Quota | Limit |
+------
| instances | 10 |
| cores | 20 |
| ram | 94000 |
| floating_ips | 10 |
| fixed_ips | -1 |
| metadata_items | 128 |
| injected_files | 5 |
| injected_
| injected_
| key_pairs | 100 |
| security_groups | 10 |
| security_
+------
[root@openstack-zz ~]# nova quota-show --tenant 02bbd8a72c7a461
+------
| Quota | Limit |
+------
| instances | 10 |
| cores | 20 |
| ram | 100000 |
| floating_ips | 10 |
| fixed_ips | -1 |
| metadata_items | 128 |
| injected_files | 5 |
| injected_
| injected_
| key_pairs | 100 |
| security_groups | 10 |
| security_
+------
tags: | added: compute |
Changed in nova: | |
assignee: | nobody → zhu zhu (zhuzhubj) |
importance: | Undecided → Wishlist |
status: | New → In Progress |
tags: | added: quotas |
https:/ /review. openstack. org/#/c/ 102147/