quota-show should return error for invalid tenant id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Medium
|
Mh Raies |
Bug Description
quota-show does not handle alternatives for tenant_id as expected
ENV: Devstack trunk (Folsom) / nova d56b5fc3ad6dbfc
I'd expect the following command to work as $ env | grep TENANT -> OS_TENANT_NAME=demo
$ nova --debug --os_username=admin --os_password=
usage: nova quota-show <tenant_id>
error: too few arguments
I'd also expect the following to work:
$ nova --debug --os_username=admin --os_password=
usage: nova quota-show <tenant_id>
error: too few arguments
What is more awesome, if in the event that I do provide the wrong tenant_id, it proceeds to use OS_TENANT_NAME returning those results:
$nova --debug --os_username=admin --os_password=
REQ: curl -i http://
+------
| Property | Value |
+------
| cores | 20 |
| floating_ips | 10 |
| gigabytes | 1000 |
| injected_
| injected_files | 5 |
| instances | 10 |
| metadata_items | 128 |
| ram | 51200 |
| volumes | 10 |
+------
I also couldn't figure out how to get the quota-show to work as a member (non-admin) of a project.
Let me know if you want any of these issues broken out in to additional bugs.
Changed in python-novaclient: | |
status: | Fix Committed → Incomplete |
status: | Incomplete → New |
summary: |
- quota-show does not handle alternatives for tenant_id as expected + quota-show should return error for invalid tenant id |
Changed in python-novaclient: | |
importance: | Undecided → Medium |
Changed in python-novaclient: | |
assignee: | nobody → Amandeep (rattenpal-amandeep) |
Actually a client bug