Something to point out about this cgcreate bug is that cgcreate tries to remove an existing "foo" before creating the new one. If there is no "foo" to remove, we see the bogus error about "foo: No such file or directory":
$ cgcreate -g pids:user.slice/user-1000.slice/[email protected]/app.slice/run-p111634-i112142.scope/foo Error: Failed to delete user.slice/user-1000.slice/[email protected]/app.slice/run-p111634-i112142.scope/foo: No such file or directory cgcreate: can't create cgroup user.slice/user-1000.slice/[email protected]/app.slice/run-p111634-i112142.scope/foo: Cgroup, requested group parameter does not exist If I create "foo" using mkdir, then cgcreate removes it and there is no bogus "foo: No such file or directory" error: $ mkdir /sys/fs/cgroup/user.slice/user-1000.slice/[email protected]/app.slice/run-p111634-i112142.scope/foo $ cgcreate -g pids:user.slice/user-1000.slice/[email protected]/app.slice/run-p111634-i112142.scope/foo cgcreate: can't create cgroup user.slice/user-1000.slice/[email protected]/app.slice/run-p111634-i112142.scope/foo: Cgroup, requested group parameter does not exist Clearly my command line is accurate enough for cgreate to remove "foo", why won't it recreate it? If there is some problem with my command line, surely that error should be detected first and the old group should not be removed. Don't delete the old one if you can't create the new one. And the "foo: No such file or directory" is not an error we need to see. Most of the time, there will be nothing there to delete and that's expected. Don't yell at me about it. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2099883 Title: cgroups V2: unprivileged cgcreate fails with nsdelegate mount To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libcgroup/+bug/2099883/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
