Package: autopkgtest Version: 5.17 Severity: normal Tags: patch lxd is not packaged for Debian at the moment (ITP #768073), so the common way to install it on Debian is through snapd.
Unfortunately executing any confined snapped binaries outputs a line on stderr: > WARNING: cgroup v2 is not fully supported yet, proceeding with partial > confinement autopkgtest's VirtSubProc will (by default) fail if anything is emitted to stderr, breaking the build immediately: > <VirtSubproc>: failure: ['lxc', 'launch', '--ephemeral', > 'autopkgtest/debian/unstable/amd64', 'autopkgtest-lxd-uqbaqs'] unexpectedly > produced stderr output `WARNING: cgroup v2 is not fully supported yet, > proceeding with partial confinement > ' > Undefined return value after 'open' > E: Error creating chroot session: skipping python3.10 This message can't be suppressed, as far as I am aware, so the easiest is to just not fail when we see them. I've been using sbuild + autopkgtest + snapped lxd successfully with this patch for several months. There are probably prettier ways of dealing with the problem (and even filtering these messages from the output), but this has the benefit of being simple. SR -- System Information: Debian Release: bookworm/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-8-amd64 (SMP w/16 CPU threads) Kernel taint flags: TAINT_WARN Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages autopkgtest depends on: ii apt-utils 2.3.9 ii libdpkg-perl 1.20.9 ii procps 2:3.3.17-5 ii python3 3.9.2-3 ii python3-debian 0.1.39 Versions of packages autopkgtest recommends: ii autodep8 0.25 Versions of packages autopkgtest suggests: pn fakemachine <none> pn lxc <none> pn lxd <none> ii ovmf 2020.11-5 pn ovmf-ia32 <none> pn qemu-efi-aarch64 <none> pn qemu-efi-arm <none> pn qemu-system <none> ii qemu-utils 1:6.1+dfsg-6 ii schroot 1.6.10-12 pn vmdb2 <none> -- no debconf information
From d420aa1953b891778b57a96a53cb58774a76c6a2 Mon Sep 17 00:00:00 2001 From: Stefano Rivera <[email protected]> Date: Sun, 10 Oct 2021 10:58:37 -0700 Subject: [PATCH] Ignore innoccuous warnings from snapped lxd They don't mean that the command has failed --- lib/VirtSubproc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/VirtSubproc.py b/lib/VirtSubproc.py index bf948e6..01acdaa 100644 --- a/lib/VirtSubproc.py +++ b/lib/VirtSubproc.py @@ -186,6 +186,10 @@ def check_exec(argv, downp=False, outp=False, timeout=0, fail_on_stderr=True): if status: bomb("%s%s failed (exit status %d, stderr %r)" % ((downp and "(down) " or ""), argv, status, err)) + # Ignore innoccuous warnings from snapped lxd + if (err == 'WARNING: cgroup v2 is not fully supported yet, proceeding with ' + 'partial confinement\n'): + err = '' if fail_on_stderr and err: bomb("%s unexpectedly produced stderr output `%s'" % (argv, err)) -- 2.33.0

