summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHan Zhou <zhouhan@gmail.com>2018-05-07 18:09:57 -0700
committerBen Pfaff <blp@ovn.org>2018-05-08 11:32:36 -0700
commit6c8d3d69a26a1e45f946ca456975bac93d256519 (patch)
treedd0e70f3d08b570fa1aae6f53801e350d005aa3b
parent5fffa669a7c14952305bd923ad423d6839fc3bf2 (diff)
downloadopenvswitch-6c8d3d69a26a1e45f946ca456975bac93d256519.tar.gz
ovn: Fix occasional failure in gratuitous ARP for NAT rules test.
In this test case it didn't wait for all HVs to catch up, which leads to occasional failures due to timing. This fix updates the --wait=sb to --wait=hv, which fixes the problem. Signed-off-by: Han Zhou <hzhou8@ebay.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
-rw-r--r--tests/ovn.at10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/ovn.at b/tests/ovn.at
index 4a5316510..5554a24ea 100644
--- a/tests/ovn.at
+++ b/tests/ovn.at
@@ -8866,7 +8866,7 @@ AT_CHECK([ovn-nbctl lsp-set-type ln_port localnet])
AT_CHECK([ovn-nbctl lsp-set-options ln_port network_name=physnet1])
# wait for earlier changes to take effect
-AT_CHECK([ovn-nbctl --timeout=3 --wait=sb sync], [0], [ignore])
+AT_CHECK([ovn-nbctl --timeout=3 --wait=hv sync], [0], [ignore])
reset_pcap_file() {
local iface=$1
@@ -8882,7 +8882,7 @@ as hv1 reset_pcap_file snoopvif hv1/snoopvif
as hv2 reset_pcap_file br-phys_n1 hv2/br-phys_n1
as hv3 reset_pcap_file br-phys_n1 hv3/br-phys_n1
# add nat-addresses option
-ovn-nbctl --wait=sb lsp-set-options lrp0-rp router-port=lrp0 nat-addresses="router"
+ovn-nbctl --wait=hv lsp-set-options lrp0-rp router-port=lrp0 nat-addresses="router"
# Wait for packets to be received through hv2.
OVS_WAIT_UNTIL([test `wc -c < "hv1/snoopvif-tx.pcap"` -ge 100])
@@ -8942,11 +8942,11 @@ AT_CHECK([grep $garp hv2_br_phys_tx | sort], [0], [])
AT_CHECK([ovn-nbctl set Logical_Switch_Port ln_port tag=2014])
# wait for earlier changes to take effect
-AT_CHECK([ovn-nbctl --timeout=3 --wait=sb sync], [0], [ignore])
+AT_CHECK([ovn-nbctl --timeout=3 --wait=hv sync], [0], [ignore])
# update nat-addresses option
-ovn-nbctl --wait=sb lsp-set-options lrp0-rp router-port=lrp0
-ovn-nbctl --wait=sb lsp-set-options lrp0-rp router-port=lrp0 nat-addresses="router"
+ovn-nbctl --wait=hv lsp-set-options lrp0-rp router-port=lrp0
+ovn-nbctl --wait=hv lsp-set-options lrp0-rp router-port=lrp0 nat-addresses="router"
as hv1 reset_pcap_file snoopvif hv1/snoopvif
as hv2 reset_pcap_file br-phys_n1 hv2/br-phys_n1