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.
Following is the observation currently after I setup devstack:
rajalakshmi_ ganesan@ hsd000176: ~$ nova flavor-create test-1 1234 512 1 1 +------ --+---- ------- +------ +------ -----+- -----+- ------+ ------- ------+ ------- ----+-- ------- ----+ +------ --+---- ------- +------ +------ -----+- -----+- ------+ ------- ------+ ------- ----+-- ------- ----+ +------ --+---- ------- +------ +------ -----+- -----+- ------+ ------- ------+ ------- ----+-- ------- ----+ ganesan@ hsd000176: ~$ nova flavor-list +------ -----+- ------- ---+--- ---+--- ------- -+----- -+----- --+---- ------- --+---- ------- +------ ------- + +------ -----+- ------- ---+--- ---+--- ------- -+----- -+----- --+---- ------- --+---- ------- +------ ------- + +------ -----+- ------- ---+--- ---+--- ------- -+----- -+----- --+---- ------- --+---- ------- +------ ------- + ganesan@ hsd000176: ~$ nova flavor-delete 1234 ganesan@ hsd000176: ~$ nova flavor-list ------- ---+--- ------- -+----- -+----- ------+ ------+ ------- +------ ------- +------ -----+- ------- -----+ ------- ---+--- ------- -+----- -+----- ------+ ------+ ------- +------ ------- +------ -----+- ------- -----+ ------- ---+--- ------- -+----- -+----- ------+ ------+ ------- +------ ------- +------ -----+- ------- -----+ ganesan@ hsd000176: ~$nova flavor-show 1234 ------- ------- ------- -+----- ---+ ------- ------- ------- -+----- ---+ DISABLED: disabled | False | EXT-DATA: ephemeral | 0 | access: is_public | True | ------- ------- ------- -+----- ---+ ganesan@ hsd000176: ~$
+------
| 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_
+------
| 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_
rajalakshmi_
+----+-
| 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_
+------
| Property | Value |
+------
| OS-FLV-
| OS-FLV-
| disk | 1 |
| extra_specs | {} |
| id | 1234 |
| name | test-1 |
| os-flavor-
| ram | 512 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 1 |
+------
rajalakshmi_
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.