nova quota-show does NOT error on incorrect tenant name

Bug #1531611 reported by Neetu Jain
8
This bug affects 1 person
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_file_content_bytes | 10240 |
| injected_file_path_bytes | 255 |
| key_pairs | 1000 |
| security_groups | 10 |
| security_group_rules | 20 |
| server_groups | 10 |
| server_group_members | 10 |
+-----------------------------+-------+

$ 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_file_content_bytes | 10240 |
| injected_file_path_bytes | 255 |
| key_pairs | 1000 |
| security_groups | 10 |
| security_group_rules | 20 |
| server_groups | 10 |
| server_group_members | 10 |
$ 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_file_content_bytes | 10240 |
| injected_file_path_bytes | 255 |
| key_pairs | 1000 |
| security_groups | 10 |
| security_group_rules | 20 |
| server_groups | 10 |
| server_group_members | 10 |
+-----------------------------+-------+

Bug :-
1) Not sure what quotas by default its printing
2)It should erorr on incorrect tenant "dmo"
2) the last one is correct

Neetu Jain (nutshi)
Changed in python-novaclient:
assignee: nobody → Neetu Jain (nutshi)
Revision history for this message
Neetu Jain (nutshi) wrote :

This is because of weak input validation here
novaclient/v2/shell.py

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

Neetu Jain (nutshi)
summary: - nova quota-show does NOT error on incorrect tenant
+ nova quota-show does NOT error on incorrect tenant name
Revision history for this message
gundarapu kalyan reddy (gundarapu-reddy) wrote :

I think this bug is already raised, please go through
 https://bugs.launchpad.net/python-novaclient/+bug/1522713

Revision history for this message
Andriy Kurilin (andreykurilin) wrote :

nova quote-show doesn't accept tenant name. it expects only tenant-id

Changed in python-novaclient:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.