yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #28646
[Bug 1423885] [NEW] nova flavor-show inconsistent with mixed case in names
Public bug reported:
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-DISABLED:disabled | False |
| OS-FLV-EXT-DATA:ephemeral | 0 |
| disk | 0 |
| extra_specs | {} |
| id | a9215596-5f05-43ff-b150-7344a3112304 |
| name | ASAv |
| os-flavor-access:is_public | True |
| ram | 2048 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 1 |
+----------------------------+--------------------------------------+
# nova flavor-show ASAv
+----------------------------+--------------------------------------+
| Property | Value |
+----------------------------+--------------------------------------+
| OS-FLV-DISABLED:disabled | False |
| OS-FLV-EXT-DATA:ephemeral | 0 |
| disk | 0 |
| extra_specs | {} |
| id | a9215596-5f05-43ff-b150-7344a3112304 |
| name | ASAv |
| os-flavor-access:is_public | True |
| 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-6846-47e5-a32e-9badf568fbd1)
** Affects: nova
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1423885
Title:
nova flavor-show inconsistent with mixed case in names
Status in OpenStack Compute (Nova):
New
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-DISABLED:disabled | False |
| OS-FLV-EXT-DATA:ephemeral | 0 |
| disk | 0 |
| extra_specs | {} |
| id | a9215596-5f05-43ff-b150-7344a3112304 |
| name | ASAv |
| os-flavor-access:is_public | True |
| ram | 2048 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 1 |
+----------------------------+--------------------------------------+
# nova flavor-show ASAv
+----------------------------+--------------------------------------+
| Property | Value |
+----------------------------+--------------------------------------+
| OS-FLV-DISABLED:disabled | False |
| OS-FLV-EXT-DATA:ephemeral | 0 |
| disk | 0 |
| extra_specs | {} |
| id | a9215596-5f05-43ff-b150-7344a3112304 |
| name | ASAv |
| os-flavor-access:is_public | True |
| 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-6846-47e5-a32e-9badf568fbd1)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1423885/+subscriptions
Follow ups
References