Comment 19 for bug 1168260

Revision history for this message
lafada (lafada) wrote :

I am still facing same problem :(.

I have havana-2 code(https://github.com/openstack/nova/tree/2013.2.b2).

1. Created new flavor.
[root@localhost]# nova flavor-create test.flavor 99 512 5 2
+----+------------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | extra_specs |
+----+------------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| 99 | test.flavor | 512 | 5 | 0 | | 2 | 1.0 | True | {} |
+----+----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+

2. Check flavor.
[root@localhost]# nova flavor-show 99
+----------------------------+----------+
| Property | Value |
+----------------------------+----------+
| name | test.flavor |
| ram | 512 |
| OS-FLV-DISABLED:disabled | False |
| vcpus | 2 |
| extra_specs | {} |
| swap | |
| os-flavor-access:is_public | True |
| rxtx_factor | 1.0 |
| OS-FLV-EXT-DATA:ephemeral | 0 |
| disk | 5 |
| id | 99 |
+----------------------------+----------+

3. Delete flavor and check.
[root@localhost]# nova flavor-delete 99
[root@localhost]# nova flavor-show 99
+----------------------------+----------+
| Property | Value |
+----------------------------+----------+
| name | test.flavor |
| ram | 512 |
| OS-FLV-DISABLED:disabled | False |
| vcpus | 2 |
| extra_specs | {} |
| swap | |
| os-flavor-access:is_public | True |
| rxtx_factor | 1.0 |
| OS-FLV-EXT-DATA:ephemeral | 0 |
| disk | 5 |
| id | 99 |
+----------------------------+----------+

4. Create another flavor with same id (99).
[root@localhost]# nova flavor-create test.flavor.new 99 512 5 2
+----+--------------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | extra_specs |
+----+--------------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| 99 | test.flavor.new | 512 | 5 | 0 | | 2 | 1.0 | True | {} |
+----+--------------+-----------+------+-----------+------+-------+-------------+-----------+-------------+

5. Check flavor for id (99).
[root@localhost]# nova flavor-show 99
+----------------------------+----------+
| Property | Value |
+----------------------------+----------+
| name | test.flavor |
| ram | 512 |
| OS-FLV-DISABLED:disabled | False |
| vcpus | 2 |
| extra_specs | {} |
| swap | |
| os-flavor-access:is_public | True |
| rxtx_factor | 1.0 |
| OS-FLV-EXT-DATA:ephemeral | 0 |
| disk | 5 |
| id | 99 |
+----------------------------+----------+

Its return old flavor (test.flavor) instead of new (test.flavor.new).