snapd 2.26.1+17.10 ADT test failure with linux 4.11.0-3.8

Bug #1691782 reported by Seth Forshee on 2017-05-18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Seth Forshee (sforshee) wrote :

One of these failure is definitely a kernel bug, see LP #1691752.

2017-05-17 17:11:40 Error restoring autopkgtest:ubuntu-17.10-amd64:tests/main/econnreset :
+ echo 'Remove the firewall rule again'
Remove the firewall rule again
++ id -u test
+ iptables -D OUTPUT -m owner --uid-owner 12345 -j REJECT -p tcp --reject-with tcp-reset
iptables: No chain/target/match by that name.

tags: added: kernel-adt-failure
description: updated
Seth Forshee (sforshee) wrote :

Other amd64 failures.

tests/main/listing - doesn't find expected pattern for core snap in 'snap list'. When I run the same thing manually it matches, so not sure what the problem is.

2017-05-17 16:44:16 Error executing autopkgtest:ubuntu-17.10-amd64:tests/main/listing :
+ echo 'List prints core snap version'
List prints core snap version
+ '[' autopkgtest = linode -o autopkgtest == qemu ']'
+ expected='^core +.*? +(\d{2}\-\d+) + \d+ +canonical +- *'
+ grep -Pq '^core +.*? +(\d{2}\-\d+) + \d+ +canonical +- *'
+ snap list

tests/main/snap-run-alias - Network timeout trying to installing the core snap.

2017-05-17 16:42:32 Error preparing autopkgtest:ubuntu-17.10-amd64:tests/main/snap-run-alias:testsnapdtoolsecho :
+ snap install --channel=beta core
error: cannot install "core": Get
       net/http: request canceled while waiting for connection (Client.Timeout
       exceeded while awaiting headers)

Seth Forshee (sforshee) wrote :

armhf - tests refuse to run due to being in a container.

ppc64el - same econnreset failure as above.

+ /tmp/go/bin/spread -v autopkgtest:ubuntu-17.10-s390x
2017-05-17 14:07:26 Found /data/adttmp/autopkgtest-virt-lxc.shared.x382neyd/downtmp/build.jtO/snapd-2.26.1+17.10/spread.yaml.
error: nothing matches provider filter

Seth Forshee (sforshee) wrote :

The "List prints core snap version" test is still failing.

description: updated
Seth Forshee (sforshee) wrote :

"List prints core snap version" test still fails with 4.11.0-6.11 and snapd 2.26.4+17.10. I did some investigation running the tests locally. In the test environment 'snapd list' prints:

Name Version Rev Developer Notes
core 16-2.26.4+git234.5f77219 2160 canonical -
test-snapd-tools 1.0 x1 -

From the log, the (Perl-style) regex the test uses is '^core .* [0-9]{2}-[0-9.]+(\+[0-9]+(\.git\.[0-9a-f]+)?)? +[0-9]+ +canonical +- *$'. This regex fails to match on several counts:

- It expects some number of [0-9] characters followed by '.' after the '+' but before 'git'.
- It expects a '.' after 'git' before the version number which follows.
- It does not expect any '.' characters within the version number following 'git'.

Here's a potential replacement which at least matches the version number above:

'^core .* [0-9]{2}-[0-9.]+(\+*git[0-9]+\.[0-9a-f]+)? +[0-9]+ +canonical +- *$'

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers