autopkgtest fails sometimes with adt-virt-lxc
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopkgtest (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
# set up vars, install packages
# Note, haveged is just to stop gpg gen-key from blocking.
$ release=utopic; cname="
$ sudo apt-get install --assume-yes --quiet lxc autopkgtest haveged
# set up container
$ sudo lxc-create --template=
--stream=daily --release=$release
# get some .dsc to build
$ apt-get source python-boto
$ dsc=$(echo *.dsc)
$ dpkg-query --show lxc autopkgtest
autopkgtest 3.3
lxc 1.1.0~alpha1-
# try to build the dsc. Sometimes this will work fine.
# sometimes it will fail. Heres an example failed output.
$ adt-run --output-dir=out.d "$dsc" --- lxc --ephemeral --sudo "$cname"
adt-run --debug --output-dir=out.d "$dsc" --- lxc --ephemeral --sudo $cname
adt-run: DBG: Parsed options: Namespace(
adt-run: DBG: Remaining arguments: ['python-
adt-run: DBG: Interpreted actions: ['--source', 'python-
adt-run: DBG: Virt runner arguments: ['lxc', '--ephemeral', '--sudo', 'source-utopic']
adt-run: DBG: / tmp(specified) rmtree out.d
adt-run: DBG: testbed init
adt-run [18:04:20]: version 3.3
adt-run: DBG: $ vserver: adt-virt-lxc --ephemeral --sudo source-utopic
adt-run: DBG: got reply from testbed: ok
adt-run: DBG: testbed open, scratch=None
adt-run: DBG: sending command to testbed: open
<VirtSubproc>: failure: (down) ['mkdir', '-m', '777', '/tmp/adt-
Sometimes it will succeed. For this failure case, the next lines after
sending command to testbed would have been somethin glike:
adt-run: DBG: got reply from testbed: ok /tmp/adt-
adt-run: DBG: sending command to testbed: print-execute-
adt-run: DBG: got reply from testbed: ok sudo,-E,
ll%3B%20exec%
adt-run: DBG: sending command to testbed: capabilities
...
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: autopkgtest 3.3
ProcVersionSign
Uname: Linux 3.16.0-5-generic x86_64
ApportVersion: 2.14.4-0ubuntu2
Architecture: amd64
Date: Fri Jul 25 17:39:18 2014
Ec2AMI: ami-00000039
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: m1.small
Ec2Kernel: aki-00000002
Ec2Ramdisk: ari-00000002
PackageArchitec
ProcEnviron:
TERM=screen
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: autopkgtest
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
tags: | added: patch |
/usr/bin/ adt-virt- lxc --help says:
might cause errors in some corner cases)
-e, --ephemeral Use ephemeral overlays instead of cloning (much faster, but
so i suspect that what this really is is a race condition due to overlayfs.