Update nova network info when doing rebuild for evacuate operation
When nova evacuate or host-evacuate are used to recreate instances with
sriov ports the instances are allocated new device ids on the target and
neutron is updated accordingly. However the network info data passed
to the driver spawn method is not updated and thus the instance tries
to use the device id they were allocated on the source node. If a pre
existing instance is using that device id or no such device exists on
the target node then the instance will fail to start.
NOTE(mriedem): The conflicts are due to change
I00eab47edf1150788777300680e853a872c1db40 and change
I752617066bb2167b49239ab9d17b0c89754a3e12 not being in Pike.
Co-Authored-By: Steven Webster <email address hidden>
Change-Id: I860ab9cf3f9a38bd4ea5bceecda8105b6fee93dc
Closes-Bug: #1630698
Related-Bug: #1677621
(cherry picked from commit 8e052c7fe9262c38da9d8b5f9a0ee889d9c1c6be)
(cherry picked from commit 559de0d0a3df92ef9dca21edfaa754a2848013c3)
Reviewed: https:/ /review. openstack. org/590070 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=c5d8594cb62 c1397183888133b ef68fe28c62c7a
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit c5d8594cb62c139 7183888133bef68 fe28c62c7a
Author: paul-carlton2 <email address hidden>
Date: Thu Oct 6 12:02:15 2016 +0100
Update nova network info when doing rebuild for evacuate operation
When nova evacuate or host-evacuate are used to recreate instances with
sriov ports the instances are allocated new device ids on the target and
neutron is updated accordingly. However the network info data passed
to the driver spawn method is not updated and thus the instance tries
to use the device id they were allocated on the source node. If a pre
existing instance is using that device id or no such device exists on
the target node then the instance will fail to start.
Conflicts:
nova/ compute/ manager. py
nova/ tests/unit/ compute/ test_compute_ mgr.py
NOTE(mriedem): The conflicts are due to change 115078877730068 0e853a872c1db40 and change b2167b49239ab9d 17b0c89754a3e12 not being in Pike.
I00eab47edf
I752617066b
Co-Authored-By: Steven Webster <email address hidden> bd4ea5bceecda81 05b6fee93dc 8da9d8b5f9a0ee8 89d9c1c6be) f9dca21edfaa754 a2848013c3)
Change-Id: I860ab9cf3f9a38
Closes-Bug: #1630698
Related-Bug: #1677621
(cherry picked from commit 8e052c7fe9262c3
(cherry picked from commit 559de0d0a3df92e