dvr: Avoid installing non-dvr openflow rule on startup
The tunneling bridge uses different openflow rules depending if the
agent is running in DVR mode or not. With DVR enabled initial rule was
installed that caused traffic coming from the integration bridge to be
flooded to all tunnels. After a few miliseconds this flow was replaced
by a DVR specific flow, correctly dropping the traffic. This small time
window caused a network loop on the compute node with restarted agent.
This patch skips installing the non-dvr specific flow in case OVS agent
is working in DVR mode. Hence the traffic is never flooded to the
tunnels.
Closes-bug: #2028795
Signed-off-by: Jakub Libosvar <email address hidden>
Change-Id: I3ce026054286c8e28ec1500f1a4aa607fe73f337
(cherry picked from commit ba6f7bf83e6f17048a97f781aa16bf4a643a53d2)
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/890229 /opendev. org/openstack/ neutron/ commit/ b96dc966ce0f1f6 fa0705ec75ac0a3 3f62be2e2c
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/zed
commit b96dc966ce0f1f6 fa0705ec75ac0a3 3f62be2e2c
Author: Jakub Libosvar <email address hidden>
Date: Wed Jul 26 18:28:29 2023 +0000
dvr: Avoid installing non-dvr openflow rule on startup
The tunneling bridge uses different openflow rules depending if the
agent is running in DVR mode or not. With DVR enabled initial rule was
installed that caused traffic coming from the integration bridge to be
flooded to all tunnels. After a few miliseconds this flow was replaced
by a DVR specific flow, correctly dropping the traffic. This small time
window caused a network loop on the compute node with restarted agent.
This patch skips installing the non-dvr specific flow in case OVS agent
is working in DVR mode. Hence the traffic is never flooded to the
tunnels.
Closes-bug: #2028795
Signed-off-by: Jakub Libosvar <email address hidden> e28ec1500f1a4aa 607fe73f337 48a97f781aa16bf 4a643a53d2)
Change-Id: I3ce026054286c8
(cherry picked from commit ba6f7bf83e6f170