[ Added CC to dev@openvswitch.org which was strangely missing even though I recived the post via the list. Is the list configuration broken somehow? ]
On Mon, Apr 07, 2014 at 10:50:57AM +0300, Lori Jakab wrote: > Hi, > > On some of my systems the commit "0c47331 ofproto-dpif.at: Wait for > the monitor's pidfile disappears where necessary" consistently > breaks test "700: ofproto-dpif - controller". Reverting the commit > makes the test pass again. This happens on a physical machine > (Sandy Bridge laptop with Linux). On a VM, the test passes > consistently, regardless of this commit. > > The relevant output from the test failure below (a lot of output > snipped for readability): > > > testsuite.log > ------------- > > ./ofproto-dpif.at:993: cat ofctl_monitor.log > --- - 2014-04-07 10:49:04.066638516 +0300 > +++ /home/moriarty/src/openvswitch/tests/testsuite.dir/at-groups/700/stdout > 2014-04-07 10:49:04.063659109 +0300 > @@ -2,6 +2,4 @@ > > mpls,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=40:44:44:44:44:43,dl_dst=50:54:00:00:00:07,mpls_label=10,mpls_tc=3,mpls_ttl=64,mpls_bos=0,mpls_lse1=46912 > NXT_PACKET_IN (xid=0x0): cookie=0xa total_len=64 in_port=1 (via > action) data_len=64 (unbuffered) > > mpls,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=40:44:44:44:44:43,dl_dst=50:54:00:00:00:07,mpls_label=10,mpls_tc=3,mpls_ttl=64,mpls_bos=0,mpls_lse1=46912 > -NXT_PACKET_IN (xid=0x0): cookie=0xa total_len=64 in_port=1 (via > action) data_len=64 (unbuffered) > -mpls,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=40:44:44:44:44:43,dl_dst=50:54:00:00:00:07,mpls_label=10,mpls_tc=3,mpls_ttl=64,mpls_bos=0,mpls_lse1=46912 Hi Lori, I have proposed the following which seems to resolve the problem. Ben has asked Yamamoto-san to review it. From: Simon Horman <ho...@verge.net.au> ofproto-dpif: Wait for output for all MPLS tests This corrects an inconsistency in the MPLS tests and avoids a race by waiting for sufficient output before checking its contents Signed-off-by: Simon Horman <ho...@verge.net.au> --- tests/ofproto-dpif.at | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at index f2ddda9..1749f60 100644 --- a/tests/ofproto-dpif.at +++ b/tests/ofproto-dpif.at @@ -988,8 +988,9 @@ dnl in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x8847) for i in 1 2 3; do ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=40:44:44:44:44:43,dst=50:54:00:00:00:07),eth_type(0x8847),mpls(label=11,tc=3,ttl=64,bos=1)' done - +OVS_WAIT_UNTIL([test `wc -l < ofctl_monitor.log` -ge 6]) OVS_APP_EXIT_AND_WAIT(ovs-ofctl) + AT_CHECK([cat ofctl_monitor.log], [0], [dnl NXT_PACKET_IN (xid=0x0): cookie=0xa total_len=64 in_port=1 (via action) data_len=64 (unbuffered) mpls,metadata=0,in_port=0,vlan_tci=0x0000,dl_src=40:44:44:44:44:43,dl_dst=50:54:00:00:00:07,mpls_label=10,mpls_tc=3,mpls_ttl=64,mpls_bos=0,mpls_lse1=46912 -- 1.8.5.2 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev