Description of problem:
When we want to see the quota of a tenant nova is reporting the default quota when the parameter is a non-existing uuid. If the parameter is the tenant name nova reports the default quotas also thus it is an non existing uuid causing confusion
Version-Release number of selected component (if applicable):
Reported for Havana and reproduced in Juno, probably icehouse is afected too
How reproducible:
always
Steps to Reproduce:
# nova quota-show --tenant tenantvlan1
+-----------------------------+-------+
| Quota | Limit |
+-----------------------------+-------+
| instances | 10 |
| cores | 20 |
| ram | 250 |
| floating_ips | 10 |
| fixed_ips | -1 |
| metadata_items | 128 |
| injected_files | 5 |
| injected_file_content_bytes | 10240 |
| injected_file_path_bytes | 255 |
| key_pairs | 100 |
| security_groups | 10 |
| security_group_rules | 20 |
| server_groups | 10 |
| server_group_members | 10 |
+-----------------------------+-------+
# nova quota-show --tenant ba0008f1edc741eb9b45722f7d43c250
+-----------------------------+-------+
| Quota | Limit |
+-----------------------------+-------+
| instances | 5 |
| cores | 11 |
| ram | 111 |
| floating_ips | 10 |
| fixed_ips | -1 |
| metadata_items | 128 |
| injected_files | 2 |
| injected_file_content_bytes | 11 |
| injected_file_path_bytes | 255 |
| key_pairs | 100 |
| security_groups | 10 |
| security_group_rules | 20 |
| server_groups | 10 |
| server_group_members | 10 |
+-----------------------------+-------+
Actual results:
nova reports the default quota if we provide a non existing uuid
Expected results:
report uuid not found
Additional info:
The same behaviour is observer with the command #cinder quota-show, reporting it as a separate bug bz#1254085
Although this is a bit weird behavior, this basically works as intended. Changing this behavior, and getting the information to report "uuid not found", would mean a considerable amount of changes in how nova works.