[pkg-lxc-devel] Bug#983422: lxc: autopkg tests always fail on qemu testbed
Ryutaroh Matsumoto
ryutaroh at ict.e.titech.ac.jp
Tue Feb 23 23:37:32 GMT 2021
Source: lxc
Version: 4.0.6-1
Severity: normal
Tags: sid bullseye
User: pkg-systemd-maintainers at lists.alioth.debian.org
Usertags: cgroupv2
Control: block -1 by 961578
Dear Maintainer,
I believe the following issue is a bug in the testsuit and
not a bug in the lxc itself.
I made my qemu testbed by debci setup -f -s sid -a amd64 -b qemu.
Then I run autopkgtest -B -U -u debci lxc -- qemu
The four tests always fail. The relevant part of the full log is as follows.
The full log is also attached.
from summary:
exercise FAIL timed out
unprivileged-containers FAIL non-zero exit status 1
from exercise-stdout:
FAIL: lxc-tests: /usr/bin/lxc-test-cgpath
---
cgpath.c:73 lxc_cmd_get_cgroup_path returned NULL
---
FAIL: lxc-tests: /usr/bin/lxc-test-no-new-privs
---
+ DONE=0
+ trap cleanup EXIT SIGHUP SIGINT SIGTERM
+ '[' '!' -d /etc/lxc ']'
+ ARCH=i386
+ type dpkg
++ dpkg --print-architecture
+ ARCH=amd64
+ lxc-create -t download -n c1 -- -d ubuntu -r xenial -a amd64
Setting up the GPG keyring
Downloading the image index
WARNING: Failed to download the file over HTTPs
The file was instead download over HTTP
A server replay attack may be possible!
Downloading the rootfs
Downloading the metadata
The image cache is now ready
Unpacking the rootfs
---
You just created an Ubuntu xenial amd64 (20210223_07:42) container.
To enable SSH, run: apt install openssh-server
No default root or user password are set by LXC.
+ echo 'lxc.no_new_privs = 1'
+ lxc-start -n c1
++ lxc-info -n c1 -p -H
+ p1=14124
+ '[' 14124 '!=' -1 ']'
+ sleep 5s
+ lxc-attach -n c1 --clear-env -- apt update -y
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Temporary failure resolving 'archive.ubuntu.com'
FAIL: lxc-tests: /usr/bin/lxc-test-usernsexec
---
as test-userns executing /usr/bin/lxc-test-usernsexec
/usr/bin/lxc-test-usernsexec: line 295: sudo: command not found
---
SUMMARY: pass=38, fail=3, ignored=0
from unprivileged-containers-stderr:
+ mkdir -p /home/debci/.config/lxc
+ tee /home/debci/.config/lxc/default.conf
+ lxc-create -t download -n mycontainer -- -d debian -r buster -a amd64
lxc-create: mycontainer: confile.c: set_config_idmaps: 1940 Invalid argument - Failed to parse id mappings
lxc-create: mycontainer: parse.c: lxc_file_for_each_line_mmap: 131 Failed to parse config file "/home/debci/.config/lxc/default.conf" at line "lxc.idmap = u 0 "
lxc-create: mycontainer: conf.c: userns_exec_mapped_root: 4489 No uid mapping for container root
lxc-create: mycontainer: lxccontainer.c: do_storage_create: 1292 Error chowning "/home/debci/.local/share/lxc/mycontainer/rootfs" to container root
lxc-create: mycontainer: conf.c: suggest_default_idmap: 4806 You do not have subuids or subgids allocated
lxc-create: mycontainer: conf.c: suggest_default_idmap: 4807 Unprivileged containers require subuids and subgids
lxc-create: mycontainer: lxccontainer.c: do_lxcapi_create: 1871 Failed to create (none) storage for mycontainer
lxc-create: mycontainer: tools/lxc_create.c: main: 319 Failed to create container mycontainer
Best regards, Ryutaroh Matsumoto
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 5.9.16-preempt (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lxc-log.tar.xz
Type: application/x-xz
Size: 30328 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-lxc-devel/attachments/20210224/94bea255/attachment-0001.xz>
More information about the Pkg-lxc-devel
mailing list