You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve the PortBindingUpdateVirtualPortsEvent match filter
This patch improves the ``PortBindingUpdateVirtualPortsEvent``
match filter. These are the new conditions:
* Event delete: that happens when the port binding has been deleted
because the port is no longer bound or the port has been
deleted. That will remove the Neutron port host name.
NOTE: in case the Neutron port has been deleted, the method
``Ml2Plugin.update_virtual_port_host`` won't update (create) a new
PortBinding object.
* If the new register has virtual_parents but not the old one, that
means the ovn-controller has received traffic with the VIP from
this port. The port host ID must be set.
* If the virtual parents have changed, the port host ID must be
updated.
* If the virtual parents have been removed, the port host ID must
be removed too.
Newer versions of OVN [1] are handling the virtual port binding in
a different way. When the virtual parents are added or removed,
the related "Port_Binding" register is deleted and the created
again. This is why this new version includes the event "DELETE"
on the match method; when the register is deleted, the event
class considers that the port is no longer bound to a host and
removes the host name for the Neutron port.
[1]https://review.opendev.org/c/openstack/neutron/+/880890/
Change-Id: I34caf7d0212ccb4bd7259c4414e7c3994bd8da4d
(cherry picked from commit 2fbfe38)
0 commit comments