Bug 1958353

Summary: "rootless-cni-infra": executable file not found in $PATH: OCI not found
Product: Red Hat Enterprise Linux 8 Reporter: Rodrique Heron <rheron>
Component: podmanAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Yuhui Jiang <yujiang>
Severity: low Docs Contact:
Priority: unspecified    
Version: ---CC: bbaude, dwalsh, gscrivan, jligon, jnovy, lsm5, mheon, pthomas, tsweeney, umohnani, ypu
Target Milestone: beta   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: podman-3.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 17:37:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rodrique Heron 2021-05-07 17:24:58 UTC
Running rootless-cni fails with the below error.

"rootless-cni-infra": executable file not found in $PATH: OCI not found



Version-Release number of selected component (if applicable): podman-2.2.1-7.module+el8.3.1+9857+68fb1526.x86_64



Steps to Reproduce:

1. Clone and build the rootless-cni-infra image

git clone https://github.com/containers/podman.git
git checkout v2.2.1-rhel, cd contrib/rootless-cni-infra/, podman build . -t rootless-cni-infra

2. Create rootless cni network
podman network create labnet --subnet 172.21.0.0/24

3. Run a container using the cni network
podman network create labnet --subnet 172.21.0.0/24


Actual results:

podman run -d --name nginx --net labnet -p 80:80 -p 443:443 nginx
Error: exec failed: container_linux.go:370: starting container process caused: exec: "rootless-cni-infra": executable file not found in $PATH: OCI not found


Expected results:

Container to start using the cni network.

Additional info:

Comment 1 Tom Sweeney 2021-05-11 01:44:03 UTC
Rodrique,

Were you running an installed version of Podman or one that you created after cloning from upstream?  If you were not running a version that was installed with RHEL, please close this bugzilla and open an issue upstream here: https://github.com/containers/podman.

Giuseppe, this seems familiar, do you recall this issue?

Comment 2 Giuseppe Scrivano 2021-05-12 07:12:04 UTC
What happens if you try to run manually the image: podman run --rm rootless-cni-infra?  Do you see the same error?

the sleep process in the Containerfile is coming from the alpine base image.

It might be an issue in the storage and the alpine image could be corrupted.

Could you try again with a fresh storage?

Comment 3 Matthew Heon 2021-06-02 13:29:54 UTC
I think we can close this as NEXTRELEASE. RHEL 8.4.0.2 will ship Podman 3.2.0, which revamps the rootless CNI process to no longer require a sidecar container. Since no container is required, this bug with creating and running the container will be completely removed.

Comment 11 errata-xmlrpc 2021-11-09 17:37:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: container-tools:rhel8 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:4154

Comment 12 Red Hat Bugzilla 2023-09-15 01:06:17 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days