lxc-test-apparmor-mount / lxc-test-unpriv in ubuntu_lxc failed with Permission denied with operation under /sys/fs/cgroup/ on Impish

Bug #1959364 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned

Bug Description

This is not a regression, the ubuntu_lxc test used to get killed with timeout on api_test.py test (bug 1952036) and result in an `I` state on our test result matrix.

After we have changed how we nuke our thread (https://git.launchpad.net/~canonical-kernel-team/+git/autotest/commit/?id=bfd31f0055b881f3cb31f286fe33de2fa39aeef2) the ubuntu_lxc can be reviewed on the matrix now.

Test log - lxc-test-apparmor-mount:
 Running '/tmp/lxc-pkg-ubuntu/src/tests/lxc-test-apparmor-mount'
 /usr/sbin/deluser: The user `lxcunpriv' does not exist.
 /tmp/lxc-pkg-ubuntu/src/tests/lxc-test-apparmor-mount: 152: cannot create /sys/fs/cgroup/-.mount/lxctest/tasks: Permission denied
 lxc-destroy: tmp.Be06aQwmft: tools/lxc_destroy.c: main: 242 Container is not defined
 umount: /sys/kernel/security/apparmor/features/mount: not mounted.
 sed: can't read /run/lxc/nics: No such file or directory

Test log - lxc-test-unpriv:
 Running '/tmp/lxc-pkg-ubuntu/src/tests/lxc-test-unpriv'
 /tmp/lxc-pkg-ubuntu/src/tests/lxc-test-unpriv: line 163: /sys/fs/cgroup/-.mount/lxctest/tasks: Permission denied
 cat: /tmp/tmp.wSJrdfCb6N: No such file or directory

Po-Hsu Lin (cypressyew)
tags: added: 5.13 impish sru-20220103 ubuntu-lxc
Po-Hsu Lin (cypressyew)
summary: - lxc-test-apparmor-mount in ubuntu_lxc failed with Permission denied when
- trying to create file under /sys/fs/cgroup/ on Impish
+ lxc-test-apparmor-mount / lxc-test-unpriv in ubuntu_lxc failed with
+ Permission denied when trying to create file under /sys/fs/cgroup/ on
+ Impish
description: updated
summary: lxc-test-apparmor-mount / lxc-test-unpriv in ubuntu_lxc failed with
- Permission denied when trying to create file under /sys/fs/cgroup/ on
- Impish
+ Permission denied with operation under /sys/fs/cgroup/ on Impish
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.