The autopkgtest script in the Ubuntu package has:

    # 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


And it did clear autopkgtest very recently in jammy. Closing this issue.

I think a lot of the recent issues we've been getting with kernel
testing of LXC is because you're not actually running the same
autopkgtest and packages that we are in the main archive.

This caused library/binary mismatches in a recent issue and now is
causing issues because of the difference in test script (the on in lxc-
ci is lagging behind in this case which isn't a problem as the LXC CI
environment runs hybrid cgroupv1 on purpose).

** Changed in: lxc (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1960847

Title:
  lxc autopkgtests failures with cgroupv2 on jammy

Status in ubuntu-kernel-tests:
  New
Status in lxc package in Ubuntu:
  Invalid

Bug description:
  Some lxc autotests (like lxc-test-apparmor-mount for example) are
  still expecting to find cgroupv1 or a hybrid hierarchy and they just
  fail on jammy, because systemd is now using a full cgroupv2 hierarchy.

  Running these tests in a cgroupv2 system is pointless, because it's
  just going to trigger lots of errors and it's not really stress-
  testing anything.

  We should consider to create a new test based on this:
  https://github.com/lxc/lxc-ci and enable it only on those systems that
  are using cgroupv2 (for example checking if
  /sys/fs/cgroup/cgroup.procs exists as a regular file).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1960847/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to