Before we stored flavors in instance_extra, certain fields, defined
in nova.compute.flavors.system_metadata_flavor_props, were stored
in the instance.system_metadata for the embedded instance.flavor.
The "disabled" field wasn't one of those keys, however, so really
old instances that had their embedded flavor converted to the
serialized instance_extra form won't have the disabled attribute
set and we need to default those here so callers, like the
versioned notfication FlavorPayload, don't explode trying to load
instance.flavor.disabled.
Change-Id: I72f8c11b8b2df1416dec8e2d9250eac0693a30e9
Closes-Bug: #1739325
(cherry picked from commit 8df21c1e5fc46f2774a7653e1c9a4c2ac0b5dbfd)
(cherry picked from commit b2146b02a943c784b6c6fe19ec9e5247bd8e503d)
(cherry picked from commit 06387be5907f3b9f05bded85ff3d3bec132fb60b)
Reviewed: https:/ /review. openstack. org/580525 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=d2164c964ae 009eb01b5271e41 103cce9e92c1b6
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit d2164c964ae009e b01b5271e41103c ce9e92c1b6
Author: Matt Riedemann <email address hidden>
Date: Tue Jul 3 13:03:54 2018 -0400
Default embedded instance. flavor. disabled attribute
Before we stored flavors in instance_extra, certain fields, defined flavors. system_ metadata_ flavor_ props, were stored system_ metadata for the embedded instance.flavor. flavor. disabled.
in nova.compute.
in the instance.
The "disabled" field wasn't one of those keys, however, so really
old instances that had their embedded flavor converted to the
serialized instance_extra form won't have the disabled attribute
set and we need to default those here so callers, like the
versioned notfication FlavorPayload, don't explode trying to load
instance.
Change-Id: I72f8c11b8b2df1 416dec8e2d9250e ac0693a30e9 774a7653e1c9a4c 2ac0b5dbfd) 4b6c6fe19ec9e52 47bd8e503d) f05bded85ff3d3b ec132fb60b)
Closes-Bug: #1739325
(cherry picked from commit 8df21c1e5fc46f2
(cherry picked from commit b2146b02a943c78
(cherry picked from commit 06387be5907f3b9