commit c4a5b8348ad1f1bb7c0c2ec137da1124df76f7fe
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Wed Feb 9 19:04:45 2022 +0000
[OVN] Update VIP port host ID when traffic detected
A virtual IP port is a port with an IP address assigned. This IP
address is used as an allowed address pair in a bound port (or ports).
This port is marked as "virtual" and a list of "virtual-parents"
(ports with the VIP assigned as allowed address pair) will be
populated accordingly.
This patch updates the "binding:host_id" of the port when OVN detects
traffic from the corresponding VIP address. OVN updates the VIP port
SB "Port_Binding" register with the chassis ID. The hostname of this
chassis is used to update the port host ID.
The VIP port is always unbound and down; this patch only populates the
host information to provide to the user this information using the
OpenStack CLI, instead of making this search using the OVN CLI.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/844810 /opendev. org/openstack/ neutron/ commit/ c4a5b8348ad1f1b b7c0c2ec137da11 24df76f7fe
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit c4a5b8348ad1f1b b7c0c2ec137da11 24df76f7fe
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Wed Feb 9 19:04:45 2022 +0000
[OVN] Update VIP port host ID when traffic detected
A virtual IP port is a port with an IP address assigned. This IP
address is used as an allowed address pair in a bound port (or ports).
This port is marked as "virtual" and a list of "virtual-parents"
(ports with the VIP assigned as allowed address pair) will be
populated accordingly.
This patch updates the "binding:host_id" of the port when OVN detects
traffic from the corresponding VIP address. OVN updates the VIP port
SB "Port_Binding" register with the chassis ID. The hostname of this
chassis is used to update the port host ID.
The VIP port is always unbound and down; this patch only populates the
host information to provide to the user this information using the
OpenStack CLI, instead of making this search using the OVN CLI.
Conflicts:
neutron/ common/ ovn/constants. py
neutron/ plugins/ ml2/drivers/ ovn/mech_ driver/ ovsdb/ovsdb_ monitor. py
neutron/ plugins/ ml2/plugin. py
neutron/ tests/functiona l/plugins/ ml2/drivers/ ovn/mech_ driver/ ovsdb/test_ ovsdb_monitor. py
Closes-Bug: #1961184
Change-Id: I75b04d056ba0df 9e34a99673c689a 69cdbfa097e fa5a86222a7a223 c727f0ec4e) 55c2eb302570b87 4b7e2362c8)
(cherry picked from commit bdbabdf362a0755
(cherry picked from commit 6b6abd0718746ca