Skip to content

Commit

Permalink
tests: increased bfd-mult to 15
Browse files Browse the repository at this point in the history
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>
Acked-by: Ales Musil <amusil@redhat.com>
Acked-by: Mark Michelson <mmichels@redhat.com>
Signed-off-by: Dumitru Ceara <dceara@redhat.com>
(cherry picked from commit fd46d70)
  • Loading branch information
simonartxavier authored and dceara committed Jul 25, 2023
1 parent c7b9e14 commit 45a5ccc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/ovn.at
Original file line number Diff line number Diff line change
Expand Up @@ -10899,6 +10899,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).
Expand Down Expand Up @@ -11154,6 +11155,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).
Expand Down Expand Up @@ -13188,12 +13190,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

Expand Down Expand Up @@ -16815,6 +16817,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"
Expand Down

0 comments on commit 45a5ccc

Please sign in to comment.