yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #08150
[Bug 1268456] [NEW] nova flavor-create with id "01" when flavor is "1" is in use
Public bug reported:
At the beginning ,system has flavor:
leilei@leileizUbuntu:~/img$ nova flavor-list
+--------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+--------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| 1 | m1.tiny | 512 | 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 |
| 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 |
| 84 | m1.micro | 128 | 0 | 0 | | 1 | 1.0 | True |
+--------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+
Create flavor with id "01":
leilei@leileizUbuntu:~/img$ nova flavor-create leileiz.tiny 01 256 10 1
+----+--------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+--------------+-----------+------+-----------+------+-------+-------------+-----------+
| 01 | leileiz.tiny | 256 | 10 | 0 | | 1 | 1.0 | True |
+----+--------------+-----------+------+-----------+------+-------+-------------+-----------+
leilei@leileizUbuntu:~/img$ nova flavor-list
+--------------+--------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+--------------+--------------+-----------+------+-----------+------+-------+-------------+-----------+
| 01 | leileiz.tiny | 256 | 10 | 0 | | 1 | 1.0 | True |
| 1 | m1.tiny | 512 | 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 |
| 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 |
| 84 | m1.micro | 128 | 0 | 0 | | 1 | 1.0 | True |
+--------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+
show new created flavor "01", I'm expecting flavor "leileiz.tiny" showing up. However here "m1.tiny" whose id is "1" shows up.
leilei@leileizUbuntu:~/img$ nova flavor-show 01
+----------------------------+---------+
| Property | Value |
+----------------------------+---------+
| OS-FLV-DISABLED:disabled | False |
| OS-FLV-EXT-DATA:ephemeral | 0 |
| disk | 1 |
| extra_specs | {} |
| id | 1 |
| name | m1.tiny |
| os-flavor-access:is_public | True |
| ram | 512 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 1 |
+----------------------------+---------+
Here, not only flavor-show use wrong flavor id, but aslo when booting vm
with "--flavor 01" , flavor "m1.tiny" being used incorrectly. Need to
figure out other impacted areas.
** 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/1268456
Title:
nova flavor-create with id "01" when flavor is "1" is in use
Status in OpenStack Compute (Nova):
New
Bug description:
At the beginning ,system has flavor:
leilei@leileizUbuntu:~/img$ nova flavor-list
+--------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+--------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| 1 | m1.tiny | 512 | 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 |
| 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 |
| 84 | m1.micro | 128 | 0 | 0 | | 1 | 1.0 | True |
+--------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+
Create flavor with id "01":
leilei@leileizUbuntu:~/img$ nova flavor-create leileiz.tiny 01 256 10 1
+----+--------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+--------------+-----------+------+-----------+------+-------+-------------+-----------+
| 01 | leileiz.tiny | 256 | 10 | 0 | | 1 | 1.0 | True |
+----+--------------+-----------+------+-----------+------+-------+-------------+-----------+
leilei@leileizUbuntu:~/img$ nova flavor-list
+--------------+--------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+--------------+--------------+-----------+------+-----------+------+-------+-------------+-----------+
| 01 | leileiz.tiny | 256 | 10 | 0 | | 1 | 1.0 | True |
| 1 | m1.tiny | 512 | 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 |
| 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 |
| 84 | m1.micro | 128 | 0 | 0 | | 1 | 1.0 | True |
+--------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+
show new created flavor "01", I'm expecting flavor "leileiz.tiny" showing up. However here "m1.tiny" whose id is "1" shows up.
leilei@leileizUbuntu:~/img$ nova flavor-show 01
+----------------------------+---------+
| Property | Value |
+----------------------------+---------+
| OS-FLV-DISABLED:disabled | False |
| OS-FLV-EXT-DATA:ephemeral | 0 |
| disk | 1 |
| extra_specs | {} |
| id | 1 |
| name | m1.tiny |
| os-flavor-access:is_public | True |
| ram | 512 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 1 |
+----------------------------+---------+
Here, not only flavor-show use wrong flavor id, but aslo when booting
vm with "--flavor 01" , flavor "m1.tiny" being used incorrectly. Need
to figure out other impacted areas.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1268456/+subscriptions
Follow ups
References