I've managed to reproduce this issue by reproducing the network setup of autopkgtest.
All you have to do is setup your network to allow access only through an http proxy and drop all other traffic. Do that and you'll get:
stgraber@castiana:~$ autopkgtest-build-lxd ubuntu-daily:groovy
Creating autopkgtest-prepare-yzE
Starting autopkgtest-prepare-yzE
Created symlink /<email address hidden> → /dev/null.
Timed out waiting for container to boot
stgraber@castiana:~$
Note that the autopkgtest network drops traffic, it doesn't reject it, so you're not hitting normal connection failures that can be nicely handled. As a result snapd gets stuck in seeding.
Manually fixing the autopkgtest-build-lxd script to configure snapd's proxy in the container, gets you.
I've managed to reproduce this issue by reproducing the network setup of autopkgtest.
All you have to do is setup your network to allow access only through an http proxy and drop all other traffic. Do that and you'll get:
stgraber@ castiana: ~$ autopkgtest- build-lxd ubuntu-daily:groovy prepare- yzE prepare- yzE castiana: ~$
Creating autopkgtest-
Starting autopkgtest-
Created symlink /<email address hidden> → /dev/null.
Timed out waiting for container to boot
stgraber@
Note that the autopkgtest network drops traffic, it doesn't reject it, so you're not hitting normal connection failures that can be nicely handled. As a result snapd gets stuck in seeding.
Manually fixing the autopkgtest- build-lxd script to configure snapd's proxy in the container, gets you.
stgraber@ castiana: ~$ autopkgtest- build-lxd ubuntu-daily:groovy prepare- ybH prepare- ybH autopkgtest/ setup-commands/ setup-testbed. .. us.archive. ubuntu. com/ubuntu groovy InRelease [267 kB] us.archive. ubuntu. com/ubuntu groovy-updates InRelease us.archive. ubuntu. com/ubuntu groovy-security InRelease us.archive. ubuntu. com/ubuntu groovy/main Sources [841 kB] us.archive. ubuntu. com/ubuntu groovy/multiverse Sources [177 kB] us.archive. ubuntu. com/ubuntu groovy/universe Sources [9906 kB] us.archive. ubuntu. com/ubuntu groovy/restricted Sources [6476 B] us.archive. ubuntu. com/ubuntu groovy/main amd64 Packages [975 kB] us.archive. ubuntu. com/ubuntu groovy/main amd64 c-n-f Metadata [29.5 kB] us.archive. ubuntu. com/ubuntu groovy/universe amd64 Packages [8734 kB] us.archive. ubuntu. com/ubuntu groovy/universe amd64 c-n-f Metadata [267 kB] us.archive. ubuntu. com/ubuntu groovy/multiverse amd64 Packages [154 kB] us.archive. ubuntu. com/ubuntu groovy/multiverse amd64 c-n-f Metadata [9320 B] us.archive. ubuntu. com/ubuntu groovy- updates/ universe amd64 c-n-f Metadata [112 B] us.archive. ubuntu. com/ubuntu groovy- updates/ multiverse amd64 c-n-f Metadata [116 B] us.archive. ubuntu. com/ubuntu groovy- security/ universe amd64 c-n-f Metadata [116 B] us.archive. ubuntu. com/ubuntu groovy- security/ multiverse amd64 c-n-f Metadata [116 B]
Creating autopkgtest-
Starting autopkgtest-
Created symlink /<email address hidden> → /dev/null.
Container finished booting. Distribution Ubuntu, release groovy, architecture amd64
Running setup script /usr/share/
sh: Attempting to set up Debian/Ubuntu apt sources automatically
sh: Distribution appears to be Ubuntu
Get:1 http://
Hit:2 http://
Hit:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Fetched 21.4 MB in 4s (4957 kB/s)
Marking all tasks invalid and re-opening autopkgtest task as that's what's broken here.