commit 8519b1ce6d0d001a57f57cf0a9ffcfdd2b6bc813
Author: Adrian Chiris <email address hidden>
Date: Tue Mar 12 14:19:04 2019 +0200
Move get_pci_mapping_for_migration to MigrationContext
In order to fix Bug #1809095, it is required to update
PCI related VIFs with the original PCI address on the source
host to allow virt driver to properly unplug the VIF from hypervisor,
e.g allow the proper VF representor to be unplugged
from the integration bridge in case of a hardware offloaded OVS.
To do so, some preliminary work is needed to allow code-sharing
between nova.network.neutronv2 and nova.compute.manager
This change:
- Moves common logic to retrieve the PCI mapping between
the source and destination node from nova.network.neutronv2
to objects.migration_context.
- Makes code adjustments to methods in nova.network.neutronv2
to accomodate the former.
Partial-Bug: #1809095
Change-Id: I9a5118373548c525b2b1c2271e7d210cc92e4f4c
(cherry picked from commit 84bb00a86da539183211364961ada2c1b1bb5edc)
(cherry picked from commit 28e7be8c8be5609ee33ff3eedacd20a70b9a409d)
Reviewed: https:/ /review. opendev. org/661571 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=8519b1ce6d0 d001a57f57cf0a9 ffcfdd2b6bc813
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 8519b1ce6d0d001 a57f57cf0a9ffcf dd2b6bc813
Author: Adrian Chiris <email address hidden>
Date: Tue Mar 12 14:19:04 2019 +0200
Move get_pci_ mapping_ for_migration to MigrationContext
In order to fix Bug #1809095, it is required to update
PCI related VIFs with the original PCI address on the source
host to allow virt driver to properly unplug the VIF from hypervisor,
e.g allow the proper VF representor to be unplugged
from the integration bridge in case of a hardware offloaded OVS.
To do so, some preliminary work is needed to allow code-sharing neutronv2 and nova.compute. manager
between nova.network.
This change: neutronv2 migration_ context. neutronv2
- Moves common logic to retrieve the PCI mapping between
the source and destination node from nova.network.
to objects.
- Makes code adjustments to methods in nova.network.
to accomodate the former.
Partial-Bug: #1809095
Change-Id: I9a5118373548c5 25b2b1c2271e7d2 10cc92e4f4c 83211364961ada2 c1b1bb5edc) ee33ff3eedacd20 a70b9a409d)
(cherry picked from commit 84bb00a86da5391
(cherry picked from commit 28e7be8c8be5609