deleted flavors no longer have extra_specs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Low
|
Unassigned |
Bug Description
When a flavor with extra_specs is deleted the extra_specs are marked as deleted as well. Instance built with the deleted flavor of course still point to the deleted flavor row. When looking up the extra_specs for the flavor associated with the instance none are returned as the lookup does not take into account deleted rows.
For example (running on devstack):
$ nova flavor-create --is-public true bar 23 8192 23 6
$ nova flavor-key 23 set foobar=baz
$ nova flavor-show 23
+------
| Property | Value |
+------
| OS-FLV-
| OS-FLV-
| disk | 23 |
| extra_specs | {"zonecfg:brand": "solaris-kz"} |
| id | 23 |
| name | bar |
| os-flavor-
| ram | 8192 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 6 |
+------
$ nova flavor-delete 23 (yes there is a bug against this and probably shouldn't work... but good to show the problem)
$ nova flavor-show 23
+------
| Property | Value |
+------
| OS-FLV-
| OS-FLV-
| disk | 23 |
| extra_specs | N/A | <--- extra_specs are not set.
| id | 23 |
| name | bar |
| os-flavor-
| ram | 8192 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 6 |
+------
If you remove the deletion markings in the instance_
tags: | added: flavors |
tags: | added: db |
Changed in nova: | |
assignee: | nobody → jichenjc (jichenjc) |
Changed in nova: | |
assignee: | jichenjc (jichenjc) → nobody |
status: | In Progress → Confirmed |
Changed in nova: | |
assignee: | nobody → Brandon Iz (iz-brandon) |
Changed in nova: | |
assignee: | Brandon Iz (iz-brandon) → nobody |
Changed in nova: | |
assignee: | nobody → Maciej Szankin (mszankin) |
status: | Confirmed → In Progress |
Changed in nova: | |
status: | In Progress → Confirmed |
assignee: | Maciej Szankin (mszankin) → nobody |
Confirmed.
The bug which is meant with
"nova flavor-delete 23 (yes there is a bug against this [...]"
should be bug 1456196.
@Sean Wilcox: Excellent bug report!