Comment 5 for bug 1659195

Revision history for this message
Michael Vogt (mvo) wrote :

Unfortunately there is no easy way to reproduce without building a new core. I build a core snap with the "networkd-allow-networkd-to-start-in-early-boot.patch" included.

With that our tests fail all over the place, e.g.: https://s3.amazonaws.com/archive.travis-ci.org/jobs/224387435/log.txt - search for "dial tcp: lookup".

I created an image with the problematic core (it is revision 1754) and ran the testsuite:

With an image generated with core r1754:
$ kvm -m 1500 -redir tcp:10022::22 ./ubuntu-core-16-amd64.img/pc.img -snapshot
$ export SPREAD_EXTERNAL_ADDRESS=localhost:10022
$ ./tests/lib/external/prepare-ssh.sh localhost 10022
$ spread -v -reuse external:ubuntu-core-16-64

but on qemu it is fine. However when I try this on linode I get:
...
error: cannot install "jq": Get https://search.apps.ubuntu.com/api/v1/snaps/details/jq?channel=stable&fields=anon_download_url%2Carchitecture%2Cchannel%2Cdownload_sha3_384%2Csummary%2Cdescription%2Cdeltas%2Cbinary_filesize%2Cdownload_url%2Cepoch%2Cicon_url%2Clast_updated%2Cpackage_name%2Cprices%2Cpublisher%2Cratings_average%2Crevision%2Cscreenshot_urls%2Csnap_id%2Csupport_url%2Ccontact%2Ctitle%2Ccontent%2Cversion%2Corigin%2Cdeveloper_id%2Cprivate%2Cconfinement: dial tcp: lookup search.apps.ubuntu.com on [::1]:53: read udp [::1]:54730->[::1]:53: read: connection refused
...
2017/04/21 20:54:24 Failed tasks: 6
    - linode:ubuntu-core-16-64:tests/main/auto-aliases
    - linode:ubuntu-core-16-64:tests/main/searching
    - linode:ubuntu-core-16-64:tests/main/snap-connect
    - linode:ubuntu-core-16-64:tests/main/snap-download
    - linode:ubuntu-core-16-64:tests/main/ubuntu-core-classic
    - linode:ubuntu-core-16-64:tests/main/ubuntu-core-create-user
2017/04/21 20:54:24 Failed task prepare: 10
    - linode:ubuntu-core-16-64:tests/main/auto-refresh
    - linode:ubuntu-core-16-64:tests/main/interfaces-content
    - linode:ubuntu-core-16-64:tests/main/interfaces-content-empty-content-attr
    - linode:ubuntu-core-16-64:tests/main/interfaces-fuse_support
    - linode:ubuntu-core-16-64:tests/main/interfaces-kernel-module-control
    - linode:ubuntu-core-16-64:tests/main/interfaces-snapd-control
    - linode:ubuntu-core-16-64:tests/main/refresh:strict_remote
    - linode:ubuntu-core-16-64:tests/main/revert-devmode:remote
    - linode:ubuntu-core-16-64:tests/main/revert:remote
    - linode:ubuntu-core-16-64:tests/main/snap-auto-mount
2017/04/21 20:54:24 Failed task restore: 1
    - linode:ubuntu-core-16-64:tests/main/snap-auto-mount

so ~10% of the tests on linode fail. Unfortunately I don't know yet why this is fine in qemu but not on linode.