"nova quota-show --tenant <tenant-id> | --user <user-id>" does not check valid id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
OpenStack version: icehouse
Issue: "nova quota-show --tenant <tenant-id> | --user <user-id>" does not check for valid id. User can enter a bogus value and the show command still successfully executed.
Steps to reproduce:
1. Run the command with a bogus id for tenant-id or user-id.
2. Notice there is no error and the command is executed successfully.
E.g.
ubuntu@
+------
| id | name | enabled |
+------
| 83407b1b2f90424
| 834274b5f9664ea
| 627dbdbadbf3443
| 9c162cf03fa0471
| e967d023b36d494
+------
ubuntu@
+------
| id | name | enabled | email |
+------
| 2591e49ad0f1441
| 1db42489e32b49a
| a6ff4c220a8e4d8
| 40e3c288952146d
| adf48c3b98d4468
| 08cd70f47fe2452
| ad2b1ffd5fda45d
| c3d11a325d594cf
| 235abf3bded84cc
+------
ubuntu@
usage: nova quota-show [--tenant <tenant-id>] [--user <user-id>]
List the quotas for a tenant/user.
Optional arguments:
--tenant <tenant-id> ID of tenant to list the quotas for.
--user <user-id> ID of user to list the quotas for.
ubuntu@
+------
| Quota | Limit |
+------
| instances | 10 |
| cores | 20 |
| ram | 51200 |
| floating_ips | 10 |
| fixed_ips | -1 |
| metadata_items | 128 |
| injected_files | 5 |
| injected_
| injected_
| key_pairs | 100 |
| security_groups | 10 |
| security_
+------
ubuntu@
+------
| Quota | Limit |
+------
| instances | 10 |
| cores | 20 |
| ram | 51200 |
| floating_ips | 10 |
| fixed_ips | -1 |
| metadata_items | 128 |
| injected_files | 5 |
| injected_
| injected_
| key_pairs | 100 |
| security_groups | 10 |
| security_
+------
This is a know bug for several months now. I am trying to get a blueprint approved to fix it: https:/ /blueprints. launchpad. net/nova/ +spec/validate- tenant- user-with- keystone