Summary: | app-containers/podman-2.1.1: Error: default OCI runtime "crun" not found: invalid argument | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dennis Lamm <expeditioneer> |
Component: | Current packages | Assignee: | Zac Medico <zmedico> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gentoo, jstein |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=835818 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 835974, 835975 | ||
Bug Blocks: |
Description
Dennis Lamm
![]() It only defaults to crun if you have cgroups v2 unified hierarchy: https://github.com/containers/podman/blob/v2.2.1/libpod/runtime.go#L157 We could add a USE=cgroup-hybrid flag like the one that sys-apps/systemd uses to indicate hybrid (legacy) cgroup hierarchy. Hitting this as well. docker and snapd no longer require cgroups-hybrid (although snapd still does in portage: see bug #835818) so maybe it makes sense to have something that works with cgroups v2 as the default? The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=869ab111563d24bc8186b3dd17328cd8554b3442 commit 869ab111563d24bc8186b3dd17328cd8554b3442 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2022-03-25 02:58:09 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2022-03-25 03:01:36 +0000 app-containers/podman: add cgroup-hybrid USE flag Closes: https://bugs.gentoo.org/763267 Signed-off-by: Zac Medico <zmedico@gentoo.org> app-containers/podman/metadata.xml | 3 +++ app-containers/podman/podman-3.4.4.ebuild | 5 +++-- app-containers/podman/podman-4.0.2.ebuild | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe26469c2047f321138e5dc1f475b7fa786d37ae commit fe26469c2047f321138e5dc1f475b7fa786d37ae Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2022-03-25 03:52:51 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2022-03-25 03:53:36 +0000 Revert "app-containers/podman: add cgroup-hybrid USE flag" This reverts commit 869ab111563d24bc8186b3dd17328cd8554b3442 since crun has missing arm64 and riscv keywords. Bug: https://bugs.gentoo.org/763267 Signed-off-by: Zac Medico <zmedico@gentoo.org> app-containers/podman/metadata.xml | 3 --- app-containers/podman/podman-3.4.4.ebuild | 5 ++--- app-containers/podman/podman-4.0.2.ebuild | 5 ++--- 3 files changed, 4 insertions(+), 9 deletions(-) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1cda8d006a810818e98d7bbe64d3240bf0a67f3 commit e1cda8d006a810818e98d7bbe64d3240bf0a67f3 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2022-03-25 04:00:08 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2022-03-25 04:01:07 +0000 app-containers/podman: prefer crun over runc Closes: https://bugs.gentoo.org/763267 Signed-off-by: Zac Medico <zmedico@gentoo.org> app-containers/podman/podman-4.0.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) How exactly does this fix the problem in the description? I still have runc (needed by containerd, needed by docker), so the above does not pull in crun, so I'm still getting the error. (In reply to Kobboi from comment #6) > How exactly does this fix the problem in the description? > > I still have runc (needed by containerd, needed by docker), so the above > does not pull in crun, so I'm still getting the error. True. Maybe a cgroup-hybrid USE flag is a good solution, but we'll need to get crun keyworded for arm64 and riscv. (In reply to Zac Medico from comment #7) > (In reply to Kobboi from comment #6) > > How exactly does this fix the problem in the description? > > > > I still have runc (needed by containerd, needed by docker), so the above > > does not pull in crun, so I'm still getting the error. > > True. Maybe a cgroup-hybrid USE flag is a good solution, but we'll need to > get crun keyworded for arm64 and riscv. It's done :) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09749f23e7eb708f0f26c57a47cbb899595ffe99 commit 09749f23e7eb708f0f26c57a47cbb899595ffe99 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2022-03-26 01:39:06 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2022-03-26 01:41:50 +0000 app-containers/podman: add cgroup-hybrid USE flag Closes: https://bugs.gentoo.org/763267 Signed-off-by: Zac Medico <zmedico@gentoo.org> app-containers/podman/metadata.xml | 3 +++ app-containers/podman/podman-3.4.4.ebuild | 5 +++-- app-containers/podman/podman-4.0.2.ebuild | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) (In reply to Sam James from comment #8) > (In reply to Zac Medico from comment #7) > > (In reply to Kobboi from comment #6) > > > How exactly does this fix the problem in the description? > > > > > > I still have runc (needed by containerd, needed by docker), so the above > > > does not pull in crun, so I'm still getting the error. > > > > True. Maybe a cgroup-hybrid USE flag is a good solution, but we'll need to > > get crun keyworded for arm64 and riscv. > > It's done :) Thanks! |