[ovs-discuss] Subject: [openvswitch 2.7.1] testsuite: 7 8 767 1891 1892 1893 1894 1895 1896 1900 1902 failed

Ben Pfaff blp at ovn.org
Fri Jul 14 04:43:15 UTC 2017


On Thu, Jul 13, 2017 at 08:34:30PM -0400, Lance Richardson wrote:
> > From: "Lance Richardson" <lrichard at redhat.com>
> > To: "Ben Pfaff" <blp at ovn.org>
> > Cc: developer at it-offshore.co.uk, bugs at openvswitch.org
> > Sent: Thursday, 13 July, 2017 8:12:30 PM
> > Subject: Re: [ovs-discuss] Subject: [openvswitch 2.7.1] testsuite: 7 8 767 1891 1892 1893 1894 1895 1896 1900 1902
> > failed
> > 
> > > From: "Ben Pfaff" <blp at ovn.org>
> > > To: "Lance Richardson" <lrichard at redhat.com>
> > > Cc: developer at it-offshore.co.uk, bugs at openvswitch.org
> > > Sent: Thursday, 13 July, 2017 7:46:13 PM
> > > Subject: Re: [ovs-discuss] Subject: [openvswitch 2.7.1] testsuite: 7 8 767
> > > 1891 1892 1893 1894 1895 1896 1900 1902
> > > failed
> > > 
> > > On Mon, Jul 10, 2017 at 01:14:38PM -0400, Lance Richardson wrote:
> > > > > From: "Stuart Cardall" <developer at it-offshore.co.uk>
> > > > > To: bugs at openvswitch.org
> > > > > Sent: Saturday, 8 July, 2017 5:22:17 PM
> > > > > Subject: [ovs-discuss] Subject: [openvswitch 2.7.1] testsuite: 7 8 767
> > > > > 1891 1892 1893 1894 1895 1896 1900 1902 failed
> > > > > 
> > > > > 
> > > > > 
> > > > > Hello,
> > > > > 
> > > > > Attached is the test suite log for ovs 2.7.1 in Alpine Linux / musl c:
> > > > > 
> > > > > testsuite: 7 8 767 1891 1892 1893 1894 1895 1896 1900 1902 failed
> > > > > 
> > > > > 
> > > > > Kind Regards,
> > > > > 
> > > > > Stuart Cardall.
> > > > > 
> > > > 
> > > > These will pass if GNU awk is used instead of busybox awk (apk add gawk).
> > > > 
> > > >    7: completion.at:343  vsctl-bashcomp - basic verification
> > > >    8: completion.at:425  vsctl-bashcomp - argument completion
> > > 
> > > That's interesting.  I thought I'd try to figure out the root of the
> > > problem, but I don't get failures in my usual environment if I replace
> > > "awk" by "busybox awk" and run these tests, so I wonder whether there's
> > > something else at play.
> > > 
> > 
> > I just tried that (s/awk/busybox awk/ in utilities/ovs-vsctl-bashcomp.bash)
> > and got failures in those tests with similar symptom (no completions given).
> > 
> > This was on F26, x86_64, with busybox-1.22.1-6.
> > 
> > Strange... no idea. I did find a nice wiki explaining some differences
> > between
> > busybox awk and some other implementations:
> > 
> >     https://wiki.alpinelinux.org/wiki/Awk
> > 
> 
> One more tidbit... if I use busybox awk here, I get failures, otherwise I
> don't (the other invocations of awk in this script work either way):
> 
> # This is a convenience function to make sure that user input is
> # looked at as a fixed string when being compared to something.  $1 is
> # the input; this behaves like 'grep "^$1"' but deals with regex
> # metacharacters in $1.
> _ovs_vsctl_check_startswith_string () {
>     awk 'index($0, thearg)==1' thearg="$1"
> }
> 
> The extent of my awk knowledge is knowing where the name comes from, so
> I have no idea what might causing the problem here or what alternative
> implementations might be worth trying...

I missed that invocation.

After some experimentation, I found the problem:
        https://mail.openvswitch.org/pipermail/ovs-dev/2017-July/335522.html


More information about the discuss mailing list