commit 6d8426ae59c9c989a38d00ff8c665d5ab129107d
Author: Matt Riedemann <email address hidden>
Date: Fri Aug 3 16:54:49 2018 -0400
Fix image-defined numa claims during evacuate
When evacuating, the API does not send the image_ref
to the compute so currently the compute manager
rebuild_instance() method will just pass an empty
dict for image_meta to the rebuild_claim, which means
if the server was originally created with an image that
has numa-related constraints, like hw_numa_nodes, those
constraints would not be applied to the destination host
during the evacuate.
This change simply checks for evacuate if image_ref is
not provided and pulls the image_meta off the instance
which was stashed in the instance.system_metadata during
server create (see get_system_metadata_from_image usage
in the compute API).
This fix was ported from the starlingx-staging/stx-nova
repo commit 71acfeae0.
Change-Id: If548fa3436174b1eae08cdcf6578020cc0c7b81f
Closes-Bug: #1785318
(cherry picked from commit 665ba461f3135857034cf33dd5f427d47fdd155e)
Reviewed: https:/ /review. openstack. org/599062 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=6d8426ae59c 9c989a38d00ff8c 665d5ab129107d
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 6d8426ae59c9c98 9a38d00ff8c665d 5ab129107d
Author: Matt Riedemann <email address hidden>
Date: Fri Aug 3 16:54:49 2018 -0400
Fix image-defined numa claims during evacuate
When evacuating, the API does not send the image_ref instance( ) method will just pass an empty
to the compute so currently the compute manager
rebuild_
dict for image_meta to the rebuild_claim, which means
if the server was originally created with an image that
has numa-related constraints, like hw_numa_nodes, those
constraints would not be applied to the destination host
during the evacuate.
This change simply checks for evacuate if image_ref is system_ metadata during metadata_ from_image usage
not provided and pulls the image_meta off the instance
which was stashed in the instance.
server create (see get_system_
in the compute API).
This fix was ported from the starlingx- staging/ stx-nova
repo commit 71acfeae0.
Change-Id: If548fa3436174b 1eae08cdcf65780 20cc0c7b81f 7034cf33dd5f427 d47fdd155e)
Closes-Bug: #1785318
(cherry picked from commit 665ba461f313585