openvswitch / ovs-issues

Issue tracker repo for Open vSwitch
10 stars 3 forks source link

FAILED: ovn -- send gratuitous ARP for NAT rules on HA distributed router #148

Open greenpau opened 6 years ago

greenpau commented 6 years ago

@blp , when working on https://github.com/openvswitch/ovs/pull/230, I received the test error below.

I don't think it is related to my work.

## ---------------------- ##
## Detailed failed tests. ##
## ---------------------- ##
#                             -*- compilation -*-
2530. ovn.at:8819: testing ovn -- send gratuitous ARP for NAT rules on HA distributed router ...
creating ovn-sb database
creating ovn-nb database
starting ovn-northd
starting backup ovn-northd
345f811a-e0b3-4921-95f1-fd1e30b4377e
df032303-c01a-4f64-b772-be1e6abfe301
1638cf53-b9d2-4769-97cf-7bd2c808d3c6
../../tests/ovn.at:8840: ovn-nbctl lr-nat-add lr0 snat 192.168.0.100 10.0.0.0/24
adding simulator 'main'
adding simulator 'hv1'
../../tests/ovn.at:8847: ovs-vsctl set Open_vSwitch . external-ids:ovn-bridge-mappings=physnet1:br-phys
../../tests/ovn.at:8848: ovs-vsctl add-port br-phys snoopvif -- set Interface snoopvif options:tx_pcap=hv1/snoopvif-tx.pcap options:rxq_pcap=hv1/snoopvif-rx.pcap
adding simulator 'hv2'
../../tests/ovn.at:8854: as hv2 ovs-vsctl set Open_vSwitch . external-ids:ovn-bridge-mappings=physnet1:br-phys
adding simulator 'hv3'
../../tests/ovn.at:8860: as hv3 ovs-vsctl set Open_vSwitch . external-ids:ovn-bridge-mappings=physnet1:br-phys
../../tests/ovn.at:8863: ovn-nbctl lsp-add ls0 ln_port
../../tests/ovn.at:8864: ovn-nbctl lsp-set-addresses ln_port unknown
../../tests/ovn.at:8865: ovn-nbctl lsp-set-type ln_port localnet
../../tests/ovn.at:8866: ovn-nbctl lsp-set-options ln_port network_name=physnet1
../../tests/ovn.at:8869: ovn-nbctl --timeout=3 --wait=sb sync
stdout:
ovn.at:8888: waiting until test `wc -c < "hv1/snoopvif-tx.pcap"` -ge 100...
packets on hv1-snoopvif:
../../tests/ovn.at:8903: sort hv1_snoop_tx
--- expout  2018-05-06 22:07:26.071160208 +0000
+++ /home/travis/build/openvswitch/ovs/openvswitch-2.9.90/_build/tests/testsuite.dir/at-groups/2530/stdout  2018-05-06 22:07:26.131158675 +0000
@@ -1 +0,0 @@
-fffffffffffff0000000000108060001080006040001f00000000001c0a80064000000000000c0a80064
2530. ovn.at:8819: 2530. ovn -- send gratuitous ARP for NAT rules on HA distributed router (ovn.at:8819): FAILED (ovn.at:8903)

The test is in here:

https://github.com/openvswitch/ovs/blob/master/tests/ovn.at#L8819-L8903

blp commented 6 years ago

Thanks for the report.

Some of the OVN tests occasionally fail due to races. Do you see this test fail every time you run it? You can run just this test with "make check TESTSUITEFLAGS=2530".

greenpau commented 6 years ago

Some of the OVN tests occasionally fail due to races.

ack.

Do you see this test fail every time you run it?

It was my observation from Travis CI run. I don't run test locally at the moment 😄 so Travis CI is what I have 😅

You can run just this test with "make check TESTSUITEFLAGS=2530".

2530. ovn.at:8819: testing ovn -- send gratuitous ARP for NAT rules on HA distributed router ...

@blp , good to know 😄 I am new to OVN code base, but I get the relationship! Thank for the awesomeness of OVN! Great piece of software.