cgexec fails on impish, group2 support seems lacking

Bug #1945972 reported by Colin Ian King
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
libcgroup (Ubuntu)
Confirmed
Critical
Unassigned

Bug Description

I can't get cgexec to work in impish

impish using cgroup2 fs semantics:

# mkdir /sys/fs/cgroup/test
# echo 1000000000 > /sys/fs/cgroup/test/memory.low
# cgexec -g memory:test /bin/true
libcroup initialization failed: Cgroup is not mounted
# echo $?
81

hirsute, using cgroup1 fs semantics this works OK:
# mkdir /sys/fs/cgroup/memory/test
# echo 1000000000 > /sys/fs/cgroup/memory/test/memory.limit_in_bytes
# cgexec -g memory:test /bin/true
# echo $?
0

Tags: impish
Changed in libcgroup (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Colin Ian King (colin-king) wrote (last edit ):

This is *not* a 5.13 kernel issue in Impish. I booted Hirsute with the Impish 5.13.0-14-generic kernel and the cgexec works fine in Hirsute with the 5.13 kernel.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libcgroup (Ubuntu):
status: New → Confirmed
Revision history for this message
Alex DeLorenzo (alex-delorenzo) wrote :

Impish is using libcgroup v0.44. Support for cgroup v2 in cgexec, cgcreate, etc was added to libcgroup v2.0 on May 6, 2021 as per the release notes here[1].

I can confirm that cgcreate, cgexec, etc and other tools do not work on Impish, and fail upon execution with the same error that the OP reported.

I installed the libcgroup 2.0-2 deb from Jammy found here[2], and cgcreate, cgexec, etc now all work on Impish.

[1] https://github.com/libcgroup/libcgroup/releases/tag/v2.0

[2] https://launchpad.net/ubuntu/+source/libcgroup/2.0-2

Ken Sharp (kennybobs)
tags: added: impish
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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