[pkg-lxc-devel] Bug#978425: autopkgtest reboot functionality is broken with cgroupv2

Christian Brauner christian.brauner at canonical.com
Sun Dec 27 11:05:13 GMT 2020


On Sun, Dec 27, 2020 at 11:17:18AM +0100, Michael Biebl wrote:
> Package: lxc
> Version: 1:4.0.5-1
> Severity: important
> User: pkg-systemd-maintainers at lists.alioth.debian.org
> Usertags: cgroupv2
> X-Debbugs-Cc: Christian Brauner <christian.brauner at ubuntu.com>
> 
> 
> Hi,
> 
> since systemd 247.2-2, we default to the unified (i.e. cgroupv2 only)
> cgroup hierarchy in Debian.
> 
> This switch broke the boot-smoke and boot-and-services autopkgtest in
> systemd.
> 
> If you want to reproduce the issue, run the following commands on a
> Debian sid system:
> 
> $ sudo autopkgtest-build-lxc
> $ autopkgtest -o logs-lxc --test-name=boot-smoke systemd -- lxc -s autopkgtest-sid
> 
> This results in:
> 
> autopkgtest [11:04:42]: test boot-smoke: [-----------------------
> reboot #0
> bash: line 1:  5918 Killed                  /tmp/autopkgtest-lxc.8f5ls0o4/downtmp/build.7vt/src/debian/tests/boot-smoke 2> >(tee -a /tmp/autopkgtest-lxc.8f5ls0o4/downtmp/boot-smoke-stderr >&2) > >(tee -a /tmp/autopkgtest-lxc.8f5ls0o4/downtmp/boot-smoke-stdout)
> autopkgtest [11:04:42]: test process requested reboot with marker 1
> lxc-attach: autopkgtest-lxc-pweqwc: attach.c: lxc_attach: 981 Failed to get init pid
> ...
> lxc-attach: autopkgtest-lxc-pweqwc: attach.c: lxc_attach: 981 Failed to get init pid
> <VirtSubproc>: failure: ['sudo', 'timeout', '600', 'lxc-stop', '--quiet', '--kill', '--name', 'autopkgtest-lxc-pweqwc'] failed (exit status 2, stderr '')
> while cleaning up because of another error:
> <VirtSubproc>: failure: timed out waiting for container autopkgtest-lxc-pweqwc to start; last runlevel ""
> autopkgtest [11:06:49]: ERROR: testbed failure: cannot send to testbed: [Errno 32] Broken pipe
> 
> A full build log is attached.
> 
> 
> Since I remember that this worked in the past, I ran git bisect on lxc
> and found the first faulty commit to be
> 
> https://github.com/lxc/lxc/commit/6001872d082dffce5e328049788c7f1ae0864789
> 
> From: Christian Brauner <christian.brauner at ubuntu.com>
> Date: Sun, 3 May 2020 12:01:44 +0200
> Subject: [PATCH] common.conf: add cgroup2 default device limits
> 
> 
> Reverting that patch fixes the systemd autopkgtest suite.
> 
> I'm filing this with severity important, but this should really be fixed
> for bullseye, so should probably be RC.

I'm trying to reproduce this. Let's see how far I get.

Christian



More information about the Pkg-lxc-devel mailing list