See example flaky at [0].
[0] https://github.com/ovsrobot/ovn/actions/runs/33095448948/job/98639641221

Fixes: 4bba54f5d5f8 ("controller: Skip LB route install when Service_Monitor is 
offline.")
Signed-off-by: Xavier Simonart <[email protected]>
---
 tests/system-ovn.at | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/system-ovn.at b/tests/system-ovn.at
index 26b56ac3b..b8173a8bf 100644
--- a/tests/system-ovn.at
+++ b/tests/system-ovn.at
@@ -23611,6 +23611,8 @@ be_pid_file=$(mktemp be0_http.XXX.pid)
 NETNS_DAEMONIZE([be0_ns],
     [[$PYTHON $srcdir/test-l7.py http]], [$be_pid_file])
 wait_row_count Service_Monitor 1 logical_port=be0 status=online
+# Wait for ovn-controller to handle the change.
+check ovn-nbctl --wait=hv sync
 # Both routes are installed at different priorities.
 AT_CHECK([
     ip route list vrf ovnvrf1342 | grep -c "blackhole 172.16.1.10"
@@ -23630,6 +23632,8 @@ check ovn-sbctl remove Advertised_Route $lb_ar 
external_ids enabled
 # Stop the listener and withdraw the LB route.
 kill `cat $be_pid_file`
 wait_row_count Service_Monitor 1 logical_port=be0 status=offline
+# Wait for ovn-controller to handle the change.
+check ovn-nbctl --wait=hv sync
 # The NAT route remains installed.
 AT_CHECK([
     ip route list vrf ovnvrf1342 | grep -c "blackhole 172.16.1.10"
-- 
2.47.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to