Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/bin/podman version returns Error: default OCI runtime "crun" not found: invalid argument #6226

Closed
raukadah opened this issue May 14, 2020 · 4 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@raukadah
Copy link
Contributor

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description

*On Installing podman from master on fedora 31and creating the rpm using make package-install command
and then run
podman version
It returns Error: default OCI runtime "crun" not found: invalid argument
Steps to reproduce the issue:

1.git clone https://github.com/containers/libpod

  1. make package-install

  2. /usr/bin/podman version

Describe the results you received:

Error: default OCI runtime "crun" not found: invalid argument
make: *** [Makefile:698: package-install] Error 125

Describe the results you expected:
It should print the podman version.

Additional information you deem important (e.g. issue happens only occasionally):

Output of podman version:

 /usr/bin/podman version
Error: default OCI runtime "crun" not found: invalid argument
make: *** [Makefile:698: package-install] Error 125

Package info (e.g. output of rpm -q podman or apt list podman):

podman-99:2.0.0-1589455624.git150679d7.fc31.x86_64

Additional environment details (AWS, VirtualBox, physical, etc.):
It is failing on rdo ci. Here is the logs: https://logserver.rdoproject.org/27/27527/3/check/podman-package-fedora-31/7bb60b7/job-output.txt

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label May 14, 2020
@rhatdan
Copy link
Member

rhatdan commented May 14, 2020

Podman requires crun to run on cgroupV2 machines.

@vrothberg
Copy link
Member

I believe there's a slight regression when running podman version which should not error out even if crun isn't installed. @giuseppe suspected in IRC that we might be loading the config for podman version but shouldn't.

@rhatdan
Copy link
Member

rhatdan commented May 15, 2020

Config is loaded by default for every podman command, and it must be complaining that the system has no container engine. Must be in containers common that this is being checked. But removing the check will just cause systems to blow up with then attempt a podman run.

rdoproject pushed a commit to rdo-infra/rdo-jobs that referenced this issue May 18, 2020
* Install cron for fedora jobs due to
Bug: containers/podman#6226

Change-Id: I0a4eb8366a03d21e35630afdcfaf78eabdef8ff4
Bug: containers/podman#6213
@rhatdan
Copy link
Member

rhatdan commented Jun 9, 2020

I don't see an easy fix for this. The containers.conf would need to be modified.

@rhatdan rhatdan closed this as completed Jun 9, 2020
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 23, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

4 participants