nova flavor consider Lower case when create and but not in update
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.db |
Confirmed
|
Low
|
Unassigned |
Bug Description
taget@taget-
when create/delete a flavor, nova considers the name as lower case letter.
but it doesn't for update
for example:
1. I have a flavor named TEST1
taget@taget-
+------
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+------
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |
| 101 | TEST1 | 511 | 1 | 0 | | 1 | 1.0 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |
| 31eb8c58-
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |
| 42 | m1.nano | 64 | 0 | 0 | | 1 | 1.0 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |
| 78cd18c8-
| 84 | m1.micro | 128 | 0 | 0 | | 1 | 1.0 | True |
+------
2. I can not create a flavor named Test1, nova consider they are same.
taget@taget-
ERROR (Conflict): Flavor with name Test1 already exists. (HTTP 409) (Request-ID: req-9d3a652b-
3. but When I try to update it by Test1, failed, nova considers it not exists.
taget@taget-
ERROR (CommandError): No flavor with a name or ID of 'Test1' exists.
Changed in nova: | |
assignee: | nobody → Eli Qiao (taget-9) |
status: | New → Confirmed |
tags: | added: nova |
Changed in nova: | |
importance: | Undecided → Low |
Changed in oslo.db: | |
assignee: | nobody → jelly (coding1314) |
Changed in oslo.db: | |
assignee: | jelly (coding1314) → nobody |
this should be related to mysql.
after some investigate.
the model of InstanceTypes has this constraint, but it's not case-sensitive, so it consider test1-0 and TEST1-0 same thing.