ovn: Support live migration to DPDK nodes
Previously, the vif-plugged event was emitted only when port VIF type
was set to normal. In DPDK case, the type is vhostuser. This patch
matches the type too and emits the notification to Nova.
Closes-bug: #1910213
Co-Authored-By: Flavio Fernandes <flaviof@redhat.com>
Change-Id: I7b12a469ae7197028cf3695520084597f4256480
(cherry picked from commit 2340ad217b
)
This commit is contained in:
parent
a6715a6b42
commit
f7e028bb27
|
@ -679,7 +679,9 @@ class OVNMechanismDriver(api.MechanismDriver):
|
|||
# perform live-migration with live_migration_wait_for_vif_plug=True.
|
||||
if ((port['status'] == const.PORT_STATUS_DOWN and
|
||||
ovn_const.MIGRATING_ATTR in port[portbindings.PROFILE].keys() and
|
||||
port[portbindings.VIF_TYPE] == portbindings.VIF_TYPE_OVS)):
|
||||
port[portbindings.VIF_TYPE] in (
|
||||
portbindings.VIF_TYPE_OVS,
|
||||
portbindings.VIF_TYPE_VHOST_USER))):
|
||||
LOG.info("Setting port %s status from DOWN to UP in order "
|
||||
"to emit vif-interface-plugged event.",
|
||||
port['id'])
|
||||
|
|
Loading…
Reference in New Issue