nova quota-show does NOT error on incorrect tenant name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Invalid
|
Undecided
|
Neetu Jain |
Bug Description
I am a demo
export OS_USERNAME=demo
export OS_TENANT_NAME=demo
This is what i see
$ nova quota-show
+------
| Quota | Limit |
+------
| instances | 10 |
| cores | 20 |
| ram | 51200 |
| floating_ips | 10 |
| fixed_ips | -1 |
| metadata_items | 128 |
| injected_files | 5 |
| injected_
| injected_
| key_pairs | 1000 |
| security_groups | 10 |
| security_
| server_groups | 10 |
| server_
+------
$ nova quota-show --tenant dmo
+------
| Quota | Limit |
+------
| instances | 10 |
| cores | 20 |
| ram | 51200 |
| floating_ips | 10 |
| fixed_ips | -1 |
| metadata_items | 128 |
| injected_files | 5 |
| injected_
| injected_
| key_pairs | 1000 |
| security_groups | 10 |
| security_
| server_groups | 10 |
| server_
$ nova quota-show --tenant demo
+------
| Quota | Limit |
+------
| instances | 10 |
| cores | 30 |
| ram | 51200 |
| floating_ips | 10 |
| fixed_ips | -1 |
| metadata_items | 128 |
| injected_files | 5 |
| injected_
| injected_
| key_pairs | 1000 |
| security_groups | 10 |
| security_
| server_groups | 10 |
| server_
+------
Bug :-
1) Not sure what quotas by default its printing
2)It should erorr on incorrect tenant "dmo"
2) the last one is correct
Changed in python-novaclient: | |
assignee: | nobody → Neetu Jain (nutshi) |
summary: |
- nova quota-show does NOT error on incorrect tenant + nova quota-show does NOT error on incorrect tenant name |
Changed in python-novaclient: | |
status: | New → Invalid |
This is because of weak input validation here v2/shell. py
novaclient/
Is there a way to lookup tenant_Id from tenant_name? I think if we do that .. it will solve some bugs around quota-show