nova flavor-show inconsistent with mixed case in names
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
Low
|
Abhishek Talwar |
Bug Description
The nova flavor-show command accepts a flavor name as its parameter. The search via names works with an exact match and all-lowercase, but not with any other character casing. E.g. given an existing flavor named 'ASAv', 'nova flavor-show ASAv' will get the same result as 'nova flavor-show asav', but 'nova flavor-show Asav' will return failure.
Also note that 'nova flavor-create Asav ...' will reject flavor creation because the flavor exists already.
# nova flavor-show asav
+------
| Property | Value |
+------
| OS-FLV-
| OS-FLV-
| disk | 0 |
| extra_specs | {} |
| id | a9215596-
| name | ASAv |
| os-flavor-
| ram | 2048 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 1 |
+------
# nova flavor-show ASAv
+------
| Property | Value |
+------
| OS-FLV-
| OS-FLV-
| disk | 0 |
| extra_specs | {} |
| id | a9215596-
| name | ASAv |
| os-flavor-
| ram | 2048 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 1 |
+------
# nova flavor-show Asav
ERROR: No flavor with a name or ID of 'Asav' exists.
# nova flavor-create Asav 100000 1024 10 1
ERROR: Flavor with name Asav already exists. (HTTP 409) (Request-ID: req-c90d775c-
affects: | nova → python-novaclient |
Changed in python-novaclient: | |
assignee: | nobody → tcs_openstack_group (tcs-openstack-group) |
assignee: | tcs_openstack_group (tcs-openstack-group) → Abhishek Talwar (abhishek-talwar) |
status: | New → In Progress |
Changed in python-novaclient: | |
importance: | Undecided → Low |
Changed in python-novaclient: | |
milestone: | none → 2.23.0 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/158270
Review: https:/