diff mbox series

[ovs-dev,01/13] tests: fixed "policy-based routing" and "route tables IPv6 -- overlapping subnets"

Message ID 20230627093043.1465206-2-xsimonar@redhat.com
State Accepted
Headers show
Series Fixes Multiple Unit Tests | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/github-robot-_ovn-kubernetes success github build: passed

Commit Message

Xavier Simonart June 27, 2023, 9:30 a.m. UTC
Following tests were randomly failing as injecting packets too early
i.e. before proper flows were installed (ports not up).
    - policy-based routing: 1 HVs, 2 LSs, 1 lport/LS, 1 LR
    - policy-based routing IPv6: 1 HVs, 3 LSs, 1 lport/LS, 1 LR
    - route tables IPv6 -- overlapping subnets

Signed-off-by: Xavier Simonart <xsimonar@redhat.com>
---
 tests/ovn.at | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/tests/ovn.at b/tests/ovn.at
index 544fba187..a6478813f 100644
--- a/tests/ovn.at
+++ b/tests/ovn.at
@@ -7932,6 +7932,8 @@  ls2_p1_ip=172.16.1.2
 
 ls3_p1_mac=00:00:00:01:02:05
 
+wait_for_ports_up
+
 # Create a drop policy
 check ovn-nbctl --wait=hv lr-policy-add R1 10 "ip4.src==192.168.1.0/24 && ip4.dst==172.16.1.0/24" drop
 
@@ -8102,6 +8104,8 @@  ls2_p1_ip=2002::2
 
 ls3_p1_mac=00:00:00:01:02:05
 
+wait_for_ports_up
+
 # Create a drop policy
 check ovn-nbctl --wait=sb lr-policy-add R1 10 "ip6.src==2001::/64 && ip6.dst==2002::/64" drop
 
@@ -27191,6 +27195,8 @@  for i in $(seq 1 4); do
         ofport-request=${i}
 done
 
+wait_for_ports_up
+
 # wait for earlier changes to take effect
 AT_CHECK([ovn-nbctl --timeout=3 --wait=hv sync], [0], [ignore])