Description of problem:
The lxc-containers that used to work fine with F31, no longer start when trying with F32 (beta).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
sudo lxc-start -n mycontainer -F
[sudo] password for user:
Failed to mount cgroup at /sys/fs/cgroup/systemd: Operation not permitted
[!!!!!!] Failed to mount API filesystems.
Exiting PID 1...
If I disable the unified cgroup hierarchy, i.e.,
sudo grub2-editenv - set "$(grub2-editenv - list | grep kernelopts) systemd.unified_cgroup_hierarchy=0"
lxc-start: mycontainer: cgroups/cgfsng.c: __do_cgroup_enter: 1500 No space left on device - Failed to enter cgroup "/sys/fs/cgroup/cpuset//lxc.monitor/mycontainer/cgroup.procs"
Oh, but after the above change and downgrading to lxc 3.0.3, things work again.
see this related discussion:
There is a patch mentioned: https://github.com/lxc/lxc/pull/3109/files
in the lxc.spec changelog I see:
* Mon Sep 9 2019 Thomas Moschny <firstname.lastname@example.org> - 3.0.4-2
- Add patches to fix cgroups cpuset initialization (rhbz#1750031).
Yes, the patch was dropped for 3.2.1 in https://src.fedoraproject.org/rpms/lxc/c/a47399361c68e7818883bb4fe13cf923814e588a?branch=master
Ok, the patch was probably dropped because part of it was already in the upstream tarball. But some of it is still missing.
I have built a copr of 3.2.1 plus the patch a47399361c68e7818883bb4fe13cf923814e588a, and it works again to start the container: https://copr.fedorainfracloud.org/coprs/tpokorra/lxc3/
Here is a pull request on pagure:
sorry, my comment was wrong, I did not apply patch a47399361c68e7818883bb4fe13cf923814e588a, but the patch from the upstream pull request:
An update to 4.0.5 has been created for F32: https://bodhi.fedoraproject.org/updates/FEDORA-2020-f44601cdfd .
Please retry with that version.
This message is a reminder that Fedora 32 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 32 on 2021-05-25.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '32'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 32 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
Fedora 32 changed to end-of-life (EOL) status on 2021-05-25. Fedora 32 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
Thank you for reporting this bug and we are sorry it could not be fixed.