Comment 6 for bug 981263

Revision history for this message
Rajalakshmi Ganesan (rajalakshmi-ganesan) wrote :

Following is the observation currently after I setup devstack:

rajalakshmi_ganesan@hsd000176:~$ nova flavor-create test-1 1234 512 1 1
+------+--------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | extra_specs |
+------+--------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| 1234 | test-1 | 512 | 1 | 0 | | 1 | 1.0 | True | {} |
+------+--------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
rajalakshmi_ganesan@hsd000176:~$ nova flavor-list
+------+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | extra_specs |
+------+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| 1 | m1.tiny | 512 | 0 | 0 | | 1 | 1.0 | True | {} |
| 1234 | test-1 | 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 | {} |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True | {} |
+------+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
rajalakshmi_ganesan@hsd000176:~$ nova flavor-delete 1234
rajalakshmi_ganesan@hsd000176:~$ nova flavor-list
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | extra_specs |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
| 1 | m1.tiny | 512 | 0 | 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 | {} |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True | {} |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+
rajalakshmi_ganesan@hsd000176:~$nova flavor-show 1234
+----------------------------+--------+
| Property | Value |
+----------------------------+--------+
| OS-FLV-DISABLED:disabled | False |
| OS-FLV-EXT-DATA:ephemeral | 0 |
| disk | 1 |
| extra_specs | {} |
| id | 1234 |
| name | test-1 |
| os-flavor-access:is_public | True |
| ram | 512 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 1 |
+----------------------------+--------+
rajalakshmi_ganesan@hsd000176:~$

Scenario of "GET by id" call retuning 200 ok after deletion of flavor with that is seems to be a bug. As in the case of other resources like IMAGE, INSTANCE, FLOATING IP, SECURITY GROUP even when deleted flavor is tried to GET by id should return 404 error code that corresponds NotFound exception.