commit 8b3b8e5657ffe0f12e1ccfbe6d978e62a2bfdc89
Author: Steven Webster <email address hidden>
Date: Mon Jun 12 17:10:03 2017 -0400
Fix instance evacuation with PCI devices
update_port_binding_for_instance() now checks that a valid migration
object exists as a parameter before any mapping between old/new PCI
devices can occur. A migration should be present in the case of a
cold migration, resize, or evacuation.
An evacuation (being a special case of a rebuild) however, will not
pass a migration to update_port_binding_for_instance, as it
is called directly from setup_instance_network(). This calling function
does not currently take a migration parameter, even though one will
certainly exist for an evacuation.
This commit adds an optional migration parameter to
setup_instance_network_on_host() and passes any migration object to
the port update routine.
Reviewed: https:/ /review. openstack. org/605881 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=8b3b8e5657f fe0f12e1ccfbe6d 978e62a2bfdc89
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit 8b3b8e5657ffe0f 12e1ccfbe6d978e 62a2bfdc89
Author: Steven Webster <email address hidden>
Date: Mon Jun 12 17:10:03 2017 -0400
Fix instance evacuation with PCI devices
update_ port_binding_ for_instance( ) now checks that a valid migration
object exists as a parameter before any mapping between old/new PCI
devices can occur. A migration should be present in the case of a
cold migration, resize, or evacuation.
An evacuation (being a special case of a rebuild) however, will not port_binding_ for_instance, as it network( ). This calling function
pass a migration to update_
is called directly from setup_instance_
does not currently take a migration parameter, even though one will
certainly exist for an evacuation.
This commit adds an optional migration parameter to instance_ network_ on_host( ) and passes any migration object to
setup_
the port update routine.
Closes-Bug: #1703629
Related-Bug: #1677621
Related-Bug: #1630698
Change-Id: I4e394c8d275995 eac4b049a7b1329 ea90f2394be 1bb81b6d67079a4 df59e0af19) feeb1175956d57d c90aa55acd)
(cherry picked from commit b930336854bffec
(cherry picked from commit b9c1a58dd033fa8