diff mbox series

[ovs-dev,2/5] tests: increased bfd-mult to 15

Message ID 20230718221152.81282-3-xsimonar@redhat.com
State Accepted
Headers show
Series Unit and System tests fixes | 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 July 18, 2023, 10:11 p.m. UTC
Multiple tests using BFD showed a flaky behavior on busy systems as BFD
went down after three seconds.

- 4 HV, 1 LS, 1 LR, packet test with HA distributed router gateway port
- 4 HV, 3 LS, 2 LR, packet test with HA distributed router gateway port
- 1 LR with HA distributed router gateway port
- external logical port

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

Patch

diff --git a/tests/ovn.at b/tests/ovn.at
index 496403f36..b729595a1 100644
--- a/tests/ovn.at
+++ b/tests/ovn.at
@@ -11311,6 +11311,7 @@  check ovs-vsctl -- add-port br-int ext1-vif1 -- \
     options:rxq_pcap=ext1/vif1-rx.pcap \
     ofport-request=1
 
+ovn-nbctl --wait=hv set NB_Global . options:"bfd-mult"=15
 # Pre-populate the hypervisors' ARP tables so that we don't lose any
 # packets for ARP resolution (native tunneling doesn't queue packets
 # for ARP resolution).
@@ -11570,6 +11571,7 @@  check ovs-vsctl -- add-port br-int ext1-vif1 -- \
     options:rxq_pcap=ext1/vif1-rx.pcap \
     ofport-request=1
 
+ovn-nbctl --wait=hv set NB_Global . options:"bfd-mult"=15
 # Pre-populate the hypervisors' ARP tables so that we don't lose any
 # packets for ARP resolution (native tunneling doesn't queue packets
 # for ARP resolution).
@@ -13584,12 +13586,12 @@  for chassis in gw1 hv1 hv2; do
 ])
 done
 ovn-nbctl remove NB_Global . options "bfd-min-rx"
-ovn-nbctl --wait=hv set NB_Global . options:"bfd-mult"=5
+ovn-nbctl --wait=hv set NB_Global . options:"bfd-mult"=15
 for chassis in gw1 hv1 hv2; do
     echo "checking gw2 -> $chassis"
     OVS_WAIT_UNTIL([
     bfd_cfg=$(ovs-vsctl --bare --columns bfd find Interface name=ovn-$chassis-0)
-    test "$bfd_cfg" = "enable=true min_tx=1500 mult=5"
+    test "$bfd_cfg" = "enable=true min_tx=1500 mult=15"
 ])
 done
 
@@ -19430,6 +19432,8 @@  sim_add hv1
 sim_add hv2
 sim_add hv3
 
+ovn-nbctl --wait=hv set NB_Global . options:"bfd-mult"=15
+
 ovn-nbctl ls-add ls1
 ovn-nbctl lsp-add ls1 ls1-lp1 \
 -- lsp-set-addresses ls1-lp1 "f0:00:00:00:00:01 10.0.0.4 ae70::4"