There are logical flows added as a consequence of NF status change.
Make sure we wait for those before attempting to send traffic.

Fixes: 8c45b31f1eee ("northd, tests: Network Function vtap mode logical flow 
changes.")
Signed-off-by: Ales Musil <[email protected]>
---
 tests/system-ovn.at | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/system-ovn.at b/tests/system-ovn.at
index 28914a93f..ce23c0cd0 100644
--- a/tests/system-ovn.at
+++ b/tests/system-ovn.at
@@ -21004,11 +21004,11 @@ validate_nf_vtap_with_traffic() {
     nf_up nf-vtap
     nf_down nf-vtap2
     check ovn-nbctl set network_function_group $nfg_uuid fallback=fail-close
-    check ovn-nbctl --wait=hv sync
 
     # Wait for the health check to mark nf0 as the active NF.
     wait_column "$nf0_uuid" nb:network_function_group \
         network_function_active name=nfg0
+    check ovn-nbctl --wait=hv sync
 
     NETNS_START_TCPDUMP([nf], [-nvvv -i nf-vtap $pcap_filter], 
[tcpdump-nf-vtap])
 
@@ -21029,11 +21029,11 @@ validate_nf_vtap_with_traffic() {
     # Bring nf0 down, nf1 up (failover)
     nf_down nf-vtap
     nf_up nf-vtap2
-    check ovn-nbctl --wait=hv sync
 
     # Wait for the health check to fail over to nf1.
     wait_column "$nf1_uuid" nb:network_function_group \
         network_function_active name=nfg0
+    check ovn-nbctl --wait=hv sync
 
     NETNS_START_TCPDUMP([nf], [-nvvv -i nf-vtap2 $pcap_filter], 
[tcpdump-nf-vtap])
 
@@ -21054,11 +21054,11 @@ validate_nf_vtap_with_traffic() {
     # Bring nf0 back up and nf1 down (fallback to nf0)
     nf_up nf-vtap
     nf_down nf-vtap2
-    check ovn-nbctl --wait=hv sync
 
     # Wait for the health check to fall back to nf0.
     wait_column "$nf0_uuid" nb:network_function_group \
         network_function_active name=nfg0
+    check ovn-nbctl --wait=hv sync
 
     NETNS_START_TCPDUMP([nf], [-nvvv -i nf-vtap $pcap_filter], 
[tcpdump-nf-vtap])
 
@@ -21080,11 +21080,11 @@ validate_nf_vtap_with_traffic() {
     nf_down nf-vtap
     nf_down nf-vtap2
     check ovn-nbctl set network_function_group $nfg_uuid fallback=fail-close
-    check ovn-nbctl --wait=hv sync
 
     # Wait for the health check to mark the NFG as having no active NF.
     wait_column "" nb:network_function_group \
         network_function_active name=nfg0
+    check ovn-nbctl --wait=hv sync
 
     NETNS_START_TCPDUMP([nf], [-nvvv -i nf-vtap $pcap_filter], 
[tcpdump-nf-vtap])
 
-- 
2.56.0

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

Reply via email to