[ovs-dev] [PATCH] tests: Add and improve stp tests.

Alin Serdean aserdean at cloudbasesolutions.com
Tue Mar 21 17:58:46 UTC 2017


Hi Nick,

Sorry for dropping late to the party 😊. 

I have no idea what the root cause is, but maybe this will help with your debugging:
http://64.119.130.115/ovs/3d8e7354f5e981dee3301268fc498efcec6521e9/testsuite.dir/2180/testsuite.log.gz
The issue is p5 changes from disabled to listening and blocking afterwards:
"> 2017-03-21T07:04:56.099Z|00088|ofproto_dpif|DBG|port p5: STP state changed from listening to blocking"

This happens when you slow down the system. I managed to reproduce on Ubuntu as well (if I enforce parallel on all the tests) with the same symptom:
```
root at ubuntu:/home/ubuntu/ovs# cat tests/testsuite.dir/2180/testsuite.log | grep blocking
+port <>: STP state changed from listening to blocking
> 2017-03-21T17:04:36.128Z|00091|ofproto_dpif|DBG|port p5: STP state changed from listening to blocking
root at ubuntu:/home/ubuntu/ovs# cat tests/testsuite.dir/2180/ | grep blocking
cleanup           conf.db           .conf.db.~lock~   ovsdb-server.log  ovs-vswitchd.log  run               stderr            testsuite.log
root at ubuntu:/home/ubuntu/ovs# cat tests/testsuite.dir/2180/ovs-vswitchd.log | grep blocking
2017-03-21T17:04:36.128Z|00091|ofproto_dpif|DBG|port p5: STP state changed from listening to blocking
root at ubuntu:/home/ubuntu/ovs# uname -a
Linux ubuntu 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
```
https://patchwork.ozlabs.org/patch/741524/  will fix it because the port p5 is listening at one point.

Thanks,
Alin.
> > On Mar 21, 2017, at 8:56 AM, Joe Stringer <joe at ovn.org> wrote:
> >
> > On 20 March 2017 at 17:47, nickcooper-zhangtonghao
> <nic at opencloud.tech <mailto:nic at opencloud.tech>> wrote:
> >> I tested it via command as below for a long time.
> >>
> >> while true; do make check TESTSUITEFLAGS='-k stp'; done
> >>
> >> But it’s ok. I try to find what might cause this.
> >
> > OK, I think it's pretty reliably failing on my system so there must be
> > something else related to the environment. Hopefully the other report
> > will have a lead towards more information.
> 
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev


More information about the dev mailing list