[Bug 2059550] Re: autopkgtest failures on 1:5.0.3-2ubuntu2 (Noble)
Aleksandr Mikhalitsyn
2059550 at bugs.launchpad.net
Wed Apr 10 08:58:31 UTC 2024
It's worth mentioning that this debdiff includes not only tests
disabling but also fix that allows to build source package on Ubuntu.
If you do:
pull-lp-source liblxc-dev noble-proposed
cd lxc-5.0.3
debuild -S -d
you will see something like this:
dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building lxc using existing ./lxc_5.0.3.orig.tar.gz
dpkg-source: info: building lxc using existing ./lxc_5.0.3.orig.tar.gz.asc
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: local changes detected, the modified files are:
lxc-5.0.3/config/apparmor/abstractions/start-container.in
lxc-5.0.3/config/apparmor/usr.bin.lxc-copy
lxc-5.0.3/config/apparmor/usr.bin.lxc-start
dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/lxc_5.0.3-2ubuntu3.diff.21HvOc
dpkg-source: info: Hint: make sure the version in debian/changelog matches the unpacked source tree
dpkg-source: info: you can integrate the local changes with dpkg-source --commit
dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -S -d failed
It's because of the way how we apply custom Ubuntu patches.
This debian diff file contains fix for this too.
** Summary changed:
- autopkgtest failures on 1:5.0.3-2ubuntu2 (Noble)
+ autopkgtest failures on 1:5.0.3-2ubuntu3 (Noble)
--
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2059550
Title:
autopkgtest failures on 1:5.0.3-2ubuntu3 (Noble)
Status in lxc package in Ubuntu:
New
Bug description:
We can see autopkgtest failures on Noble:
https://autopkgtest.ubuntu.com/packages/lxc
1:5.0.3-2ubuntu2 from noble-proposed/universe
Details from log (https://autopkgtest.ubuntu.com/results/autopkgtest-noble/noble/amd64/l/lxc/20240327_203000_ce7d4@/log.gz):
=====================
3266s Removing autopkgtest-satdep (0) ...
3269s autopkgtest [20:29:48]: test no-devel: [-----------------------
3269s + grep LXC_DEVEL /usr/include/lxc/version.h
3269s + grep 0
3269s #define LXC_DEVEL 0
3269s autopkgtest [20:29:48]: test no-devel: -----------------------]
3269s autopkgtest [20:29:48]: test no-devel: - - - - - - - - - - results - - - - - - - - - -
3269s no-devel PASS
3269s autopkgtest [20:29:48]: @@@@@@@@@@@@@@@@@@@@ summary
3269s exercise FAIL non-zero exit status 1
3269s unprivileged-containers FAIL non-zero exit status 1
3269s basics-create-destroy PASS (superficial)
3269s no-devel PASS
=====================
unprivileged-containers
=====================
1896s Unpacking the rootfs
1900s
1900s ---
1900s You just created an Ubuntu mantic amd64 (20240326_07:42) container.
1900s
1900s To enable SSH, run: apt install openssh-server
1900s No default root or user password are set by LXC.
1900s + systemd-run --scope --quiet --user --property=Delegate=yes lxc-start -n mycontainer
1900s Failed to connect to bus: No medium found
=====================
exercise
=====================
1113s FAIL: lxc-tests: /usr/bin/lxc-test-unpriv
1113s ---
1113s Name: c1
1113s State: RUNNING
1113s PID: 52927
1113s Link: veth1001_HZ75
1113s TX bytes: 0 bytes
1113s RX bytes: 0 bytes
1113s Total bytes: 0 bytes
1113s Name: c1
1113s State: RUNNING
1113s PID: 52994
1113s Link: veth1001_ujGT
1113s TX bytes: 0 bytes
1113s RX bytes: 0 bytes
1113s Total bytes: 0 bytes
1113s lxc-copy: c1: ../src/lxc/utils.c: lxc_drop_groups: 1365 Operation not permitted - Failed to drop supplimentary groups
<...>
1113s info: Removing crontab ...
1113s info: Removing user `lxcunpriv' ...
1113s FAIL
1113s ---
1114s PASS: lxc-tests: /usr/bin/lxc-test-usernic
1114s PASS: lxc-tests: /usr/bin/lxc-test-usernsexec
1114s PASS: lxc-tests: /usr/bin/lxc-test-utils
1114s
1114s SUMMARY: pass=55, fail=1, ignored=0
1115s autopkgtest [19:53:54]: test exercise: -----------------------]
1115s autopkgtest [19:53:54]: test exercise: - - - - - - - - - - results - - - - - - - - - -
1115s exercise FAIL non-zero exit status 1
=====================
In the previous version we had no unprivileged-containers testsuite because it was inherited from Debian.
lxc-test-unpriv was a skipped test too because we had this piece of code:
https://git.launchpad.net/ubuntu/+source/lxc/tree/debian/tests/exercise?h=applied/ubuntu/noble#n129
=====================
# Skip some tests due to cgroup v2 incompatibility
if [ -e /sys/fs/cgroup/system.slice/memory.current ]; then
[ "$testbin" = "lxc-test-apparmor-mount" ] && \
ignore "$STRING" && continue
[ "$testbin" = "lxc-test-autostart" ] && \
ignore "$STRING" && continue
[ "$testbin" = "lxc-test-no-new-privs" ] && \
ignore "$STRING" && continue
[ "$testbin" = "lxc-test-unpriv" ] && \
ignore "$STRING" && continue
fi
=====================
Just compare:
https://git.launchpad.net/ubuntu/+source/lxc/tree/debian/tests/control?h=applied/ubuntu/noble
and
https://git.launchpad.net/ubuntu/+source/lxc/tree/debian/tests/control?h=applied/ubuntu/noble-devel
We want to fix all of this for sure, but it would be awesome to get an
updated and actual version of LXC in the upcoming Ubuntu Noble release
too. So, may be it makes sense to skip this tests for the sake of
having LXC updated.
What I found in Debian, is that autopkgtests are skipped too:
https://ci.debian.net/packages/l/lxc/unstable/amd64/
Taking this into account it (probably) reasonable to skip this tests
too for now.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/2059550/+subscriptions
More information about the Ubuntu-sponsors
mailing list