Re: autopkgtest-build-lxd failing with bionic

2018-02-25 Thread Robie Basak
On Sun, Feb 25, 2018 at 11:08:24PM +0100, Martin Pitt wrote: > > https://anonscm.debian.org/cgit/autopkgtest/autopkgtest.git/commit/?id=563eac74595 > + if ! echo '[ ! -d /run/systemd/system ] || Note that, further to a thread here a while ago, this test is broken on Trusty (false positive).

Re: autopkgtest-build-lxd failing with bionic

2018-02-25 Thread Martin Pitt
Hello all, Steve Langasek [2018-02-22 16:36 -0800]: > > OK, so I suppose we could replace the check with > > > if running_systemd > > wait for network-online.target > > else > > wait for runlevel 2 I modified Iain's initial patch and tested/applied:

Re: autopkgtest-build-lxd failing with bionic

2018-02-22 Thread Steve Langasek
On Thu, Feb 22, 2018 at 10:49:29PM +0100, Martin Pitt wrote: > > > - it's supposed to be a SysV backwards compat shim for LSB's "network" > > > dependency, and not well-defined > > From my POV, the sane definition is: > > - DNS setup is complete > > - all "required" network interfaces

Re: autopkgtest-build-lxd failing with bionic

2018-02-22 Thread Dimitri John Ledkov
On 22 February 2018 at 20:15, Steve Langasek wrote: > On Thu, Feb 15, 2018 at 02:16:01PM -0600, Ryan Harper wrote: > >> Or, invoke wait-online directly: > >> /lib/systemd/systemd-networkd-wait-online > > That also hard-codes an implementation detail; we may be using

Re: autopkgtest-build-lxd failing with bionic

2018-02-22 Thread Steve Langasek
On Thu, Feb 15, 2018 at 02:16:01PM -0600, Ryan Harper wrote: > Or, invoke wait-online directly: > /lib/systemd/systemd-networkd-wait-online That also hard-codes an implementation detail; we may be using something other than systemd-networkd in the runners. If assuming systemd is unpalatable

Re: autopkgtest-build-lxd failing with bionic

2018-02-21 Thread Martin Pitt
Antonio Terceiro [2018-02-21 10:39 -0300]: > > Cheers! I reworked it a bit, applied the same strategy to LXC (which is > > equally affected), tested it, and landed > > > > > > https://anonscm.debian.org/cgit/autopkgtest/autopkgtest.git/commit/?id=20f479254 > > Aren't _all_ types of testbed

Re: autopkgtest-build-lxd failing with bionic

2018-02-21 Thread Ryan Harper
On Thu, Feb 15, 2018 at 2:00 PM, Steve Langasek wrote: > On Thu, Feb 15, 2018 at 06:48:31PM +, Iain Lane wrote: > > [ autopkgtest-devel, this is > > https://lists.ubuntu.com/archives/ubuntu-devel/2018- > February/040138.html > > and thread FYI - Reply-To /

Re: autopkgtest-build-lxd failing with bionic

2018-02-20 Thread Scott Kitterman
On Tuesday, February 20, 2018 10:44:42 PM Martin Pitt wrote: > Steve Langasek [2018-02-16 11:12 -0800]: ... > > I think the network-online.target is the better thing to key on. > > I still don't like that much, though: > - there is no requirement that this actually gets "implemented" or even >

Re: autopkgtest-build-lxd failing with bionic

2018-02-20 Thread Martin Pitt
Steve Langasek [2018-02-16 11:12 -0800]: > > > [ -n "$(ip route show to 0/0)" ] > > > This is better though, and works too. Please take a look at the attached > > patch. Thanks! :-) > > Actually no, this is racy, because the route comes up before DNS resolution > is in place. I'm not actually

Re: autopkgtest-build-lxd failing with bionic

2018-02-20 Thread Martin Pitt
Hello all, Iain Lane [2018-02-16 11:52 +]: > > I wouldn't pick on any of these: network-online.target is a sloppily defined > > shim for SysV init backwards compatibility, and may not ever get started (in > > fact, that's the goal ☺); and the container might not use networkd, so I > >

Re: autopkgtest-build-lxd failing with bionic

2018-02-16 Thread Robie Basak
On Fri, Feb 16, 2018 at 08:15:35PM +0100, Julian Andres Klode wrote: > > I think the network-online.target is the better thing to key on. > > I think we should just grep the apt output and retry if it fails with > connection error messages. The problem is a general one though. It's not specific

Re: autopkgtest-build-lxd failing with bionic

2018-02-16 Thread Julian Andres Klode
On Fri, Feb 16, 2018 at 11:12:32AM -0800, Steve Langasek wrote: > On Fri, Feb 16, 2018 at 11:52:05AM +, Iain Lane wrote: > > On Thu, Feb 15, 2018 at 09:55:47PM +0100, Martin Pitt wrote: > > > Hello Iain, all, > > > > Iain Lane [2018-02-15 18:48 +]: > > > > There's a patch attached here

Re: autopkgtest-build-lxd failing with bionic

2018-02-16 Thread Steve Langasek
On Fri, Feb 16, 2018 at 11:52:05AM +, Iain Lane wrote: > On Thu, Feb 15, 2018 at 09:55:47PM +0100, Martin Pitt wrote: > > Hello Iain, all, > > Iain Lane [2018-02-15 18:48 +]: > > > There's a patch attached here which fixes the problem for me. I'm not > > > sure if there's a better way to

Re: autopkgtest-build-lxd failing with bionic

2018-02-16 Thread Iain Lane
On Thu, Feb 15, 2018 at 12:00:41PM -0800, Steve Langasek wrote: > It's a bit odd to be "start"ing a target in this manner. Is it even > necessary to start the target, or would it be sufficient to just check > is-active in a loop? Yeah, it is - it needs to be pulled in by something to get

Re: autopkgtest-build-lxd failing with bionic

2018-02-15 Thread Steve Langasek
On Thu, Feb 15, 2018 at 06:48:31PM +, Iain Lane wrote: > [ autopkgtest-devel, this is > https://lists.ubuntu.com/archives/ubuntu-devel/2018-February/040138.html > and thread FYI - Reply-To / Mail-Followup-To set to exclude > ubuntu-devel from this subthread so reviews go to the right

Re: autopkgtest-build-lxd failing with bionic

2018-02-15 Thread Iain Lane
[ autopkgtest-devel, this is https://lists.ubuntu.com/archives/ubuntu-devel/2018-February/040138.html and thread FYI - Reply-To / Mail-Followup-To set to exclude ubuntu-devel from this subthread so reviews go to the right place ] On Thu, Feb 15, 2018 at 10:28:05AM -0500, Stéphane Graber

Re: autopkgtest-build-lxd failing with bionic

2018-02-15 Thread Julian Andres Klode
On Thu, Feb 15, 2018 at 04:10:01PM +0100, Martin Pitt wrote: > Hello Timo, > > Timo Aaltonen [2018-02-15 16:50 +0200]: > > On 14.02.2018 22:03, Dimitri John Ledkov wrote: > > > Hi, > > > > > > I am on bionic and managed to build bionic container for testing using: > > > > > > $

Re: autopkgtest-build-lxd failing with bionic

2018-02-15 Thread Stéphane Graber
On Thu, Feb 15, 2018 at 04:10:01PM +0100, Martin Pitt wrote: > Hello Timo, > > Timo Aaltonen [2018-02-15 16:50 +0200]: > > On 14.02.2018 22:03, Dimitri John Ledkov wrote: > > > Hi, > > > > > > I am on bionic and managed to build bionic container for testing using: > > > > > > $

Re: autopkgtest-build-lxd failing with bionic

2018-02-15 Thread Martin Pitt
Hello Timo, Timo Aaltonen [2018-02-15 16:50 +0200]: > On 14.02.2018 22:03, Dimitri John Ledkov wrote: > > Hi, > > > > I am on bionic and managed to build bionic container for testing using: > > > > $ autopkgtest-build-lxd ubuntu-daily:bionic/amd64 > > > > Note this uses Ubuntu Foundations

Re: autopkgtest-build-lxd failing with bionic

2018-02-15 Thread Timo Aaltonen
On 14.02.2018 22:03, Dimitri John Ledkov wrote: > Hi, > > I am on bionic and managed to build bionic container for testing using: > > $ autopkgtest-build-lxd ubuntu-daily:bionic/amd64 > > Note this uses Ubuntu Foundations provided container as the base, > rather than the third-party image that

Re: autopkgtest-build-lxd failing with bionic

2018-02-14 Thread Dimitri John Ledkov
Hi, On 14 February 2018 at 12:01, Timo Aaltonen wrote: > > Hi > > I'm not able to build a bionic container: > > autopkgtest-build-lxd images:ubuntu/bionic/amd64 > Creating autopkgtest-prepare-1ay > Starting autopkgtest-prepare-1ay > Container finished booting.

autopkgtest-build-lxd failing with bionic

2018-02-14 Thread Timo Aaltonen
Hi I'm not able to build a bionic container: autopkgtest-build-lxd images:ubuntu/bionic/amd64 Creating autopkgtest-prepare-1ay Starting autopkgtest-prepare-1ay Container finished booting. Distribution Ubuntu, release bionic, architecture amd64 Running setup script