Hi Paul, thanks for the notification! On Thu, Dec 19, 2019 at 12:28:34PM +0100, Paul Gevers wrote: > Source: libvirt > Version: 5.6.0-3 > X-Debbugs-CC: debian...@lists.debian.org > Severity: serious > User: debian...@lists.debian.org > Usertags: timeout flaky > > Dear maintainers, > > Your package has an autopkgtest, great. However, I noticed that it > always fails, which nowadays is considered RC. However, on top of that, > with version 5.6.0-3 your package started to time out regularly on > ci.debian.net (after 2:50 h). > > I wonder if the smoke-lxc test is suitable to test *inside* an lxc as > your using virsh. I am not enough into this, but it smells a bit like > you want an "isolation-machine" restriction for that test. > > Can you please investigate the situation? Don't hesitate to ask for help > from the Debian CI team (in X-Debbugs-CC) if you need help solving this > issue. > > To avoid wasting lots of time on the ci.debian.net infrastructure, I > have blacklisted your package. If needed, please ping me to try any > uploads you make that should fix the issue if you are unsure and don't > want to close this bug until verified.
What would be the right way to detect that the test should be skipped - just checking we're running inside lxc? virt-what uses this ``` # Check for LXC containers # http://www.freedesktop.org/wiki/Software/systemd/ContainerInterface # Added by Marc Fournier if [ -e "${root}/proc/1/environ" ] && cat "${root}/proc/1/environ" | tr '\000' '\n' | grep -Eiq '^container='; then echo lxc fi ``` Cheers, -- Guido > > Paul > > https://ci.debian.net/data/autopkgtest/unstable/amd64/libv/libvirt/3677408/log.gz > > autopkgtest [18:02:42]: test smoke-lxc: [----------------------- > + virt-host-validate lxc > LXC: Checking for Linux >= 2.6.26 > : PASS > LXC: Checking for namespace ipc > : PASS > LXC: Checking for namespace mnt > : PASS > LXC: Checking for namespace pid > : PASS > LXC: Checking for namespace uts > : PASS > LXC: Checking for namespace net > : PASS > LXC: Checking for namespace user > : PASS > LXC: Checking for cgroup 'cpu' controller support > : PASS > LXC: Checking for cgroup 'cpuacct' controller support > : PASS > LXC: Checking for cgroup 'cpuset' controller support > : PASS > LXC: Checking for cgroup 'memory' controller support > : PASS > LXC: Checking for cgroup 'devices' controller support > : PASS > LXC: Checking for cgroup 'freezer' controller support > : PASS > LXC: Checking for cgroup 'blkio' controller support > : PASS > LXC: Checking if device /sys/fs/fuse/connections exists > : PASS > + virsh capabilities > autopkgtest [20:49:22]: ERROR: timed out on command "su -s /bin/bash > root -c set -e; export USER=`id -nu`; . /etc/profile >/dev/null 2>&1 || > true; . ~/.profile >/dev/null 2>&1 || true; > buildtree="/tmp/autopkgtest-lxc.g55a6fi0/downtmp/build.mXC/src"; mkdir > -p -m 1777 -- > "/tmp/autopkgtest-lxc.g55a6fi0/downtmp/smoke-lxc-artifacts"; export > AUTOPKGTEST_ARTIFACTS="/tmp/autopkgtest-lxc.g55a6fi0/downtmp/smoke-lxc-artifacts"; > export ADT_ARTIFACTS="$AUTOPKGTEST_ARTIFACTS"; mkdir -p -m 755 > "/tmp/autopkgtest-lxc.g55a6fi0/downtmp/autopkgtest_tmp"; export > AUTOPKGTEST_TMP="/tmp/autopkgtest-lxc.g55a6fi0/downtmp/autopkgtest_tmp"; > export ADTTMP="$AUTOPKGTEST_TMP"; export DEBIAN_FRONTEND=noninteractive; > export LANG=C.UTF-8; export DEB_BUILD_OPTIONS=parallel=2; unset LANGUAGE > LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES > LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT > LC_IDENTIFICATION LC_ALL;rm -f /tmp/autopkgtest_script_pid; set -C; echo > $$ > /tmp/autopkgtest_script_pid; set +C; trap "rm -f > /tmp/autopkgtest_script_pid" EXIT INT QUIT PIPE; cd "$buildtree"; export > AUTOPKGTEST_NORMAL_USER=debci; export ADT_NORMAL_USER=debci; chmod +x > /tmp/autopkgtest-lxc.g55a6fi0/downtmp/build.mXC/src/debian/tests/smoke-lxc; > touch /tmp/autopkgtest-lxc.g55a6fi0/downtmp/smoke-lxc-stdout > /tmp/autopkgtest-lxc.g55a6fi0/downtmp/smoke-lxc-stderr; > /tmp/autopkgtest-lxc.g55a6fi0/downtmp/build.mXC/src/debian/tests/smoke-lxc > 2> >(tee -a /tmp/autopkgtest-lxc.g55a6fi0/downtmp/smoke-lxc-stderr >&2) > > >(tee -a /tmp/autopkgtest-lxc.g55a6fi0/downtmp/smoke-lxc-stdout);" > (kind: test) > autopkgtest [20:49:22]: test smoke-lxc: -----------------------] > > _______________________________________________ > Pkg-libvirt-maintainers mailing list > pkg-libvirt-maintain...@alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-libvirt-maintainers