Bug 2161682

Summary: Podman v4.4RC1 can't find /etc/cni/net.d
Product: Red Hat Enterprise Linux 8 Reporter: Tom Sweeney <tsweeney>
Component: podmanAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Alex Jia <ajia>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.8CC: bbaude, dwalsh, jligon, jnovy, lsm5, mboddu, mheon, pthomas, tsweeney, umohnani, ypu
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: podman-4.4.0-0.3.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-16 08:23:27 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 Tom Sweeney 2023-01-17 15:04:37 UTC
Description of problem: As reported by Yiqiao Pu in email, Podman v4.4 RC1 can not find the /etc/cni/net.d file as it should be able to. This works in Podman v4.3 and earlier.


Version-Release number of selected component (if applicable):
Podman v4.4 RC1

How reproducible:

Creating a container or a pod fails.

Steps to Reproduce:
Checked our CI jobs for it. Seems there is something wrong with the podman 4.4 to work with the cni network backend in the build. When I try to create a container or pod, it always reports that it can not find dir /etc/cni/net.d. Here is some output from my test machine:

# podman create --name test_cni_dir quay.io/libpod/busybox top



Actual results:
Error: stat /etc/cni/net.d/: no such file or directory

[root@kvm-06-guest34 ~]# ls /etc/cni/

[root@kvm-06-guest34 ~]# 


Expected results:
Expect this to work without error.

Additional info:

Comment 1 Paul Holzinger 2023-01-17 15:28:55 UTC
Upstream fix: https://github.com/containers/common/pull/1294

Comment 2 Brent Baude 2023-01-17 15:50:46 UTC
upstream fix merged ... should be vendored in for 4.4 rc2.

Comment 3 Joy Pu 2023-01-17 16:10:10 UTC
*** Bug 2161693 has been marked as a duplicate of this bug. ***

Comment 5 Alex Jia 2023-01-31 08:35:38 UTC
This bug has been verified on podman-4.4.0-0.3.module+el8.8.0+17861+b7c74e21.

[root@kvm-04-guest17 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.8 Beta (Ootpa)

[root@kvm-04-guest17 ~]# rpm -q podman runc systemd kernel
podman-4.4.0-0.3.module+el8.8.0+17861+b7c74e21.x86_64
runc-1.1.4-1.module+el8.8.0+17823+c4e3c815.x86_64
systemd-239-69.el8.x86_64
kernel-4.18.0-449.el8.x86_64

[root@kvm-04-guest17 ~]# podman create --name test_cni_dir quay.io/libpod/busybox top
Trying to pull quay.io/libpod/busybox:latest...
Getting image source signatures
Copying blob 9758c28807f2 done  
Copying config f0b02e9d09 done  
Writing manifest to image destination
Storing signatures
74e6cbe3600dff3d29ad518fdf390263bb95799be188078611e92dd914cc8630

[root@kvm-04-guest17 ~]# podman ps -a
CONTAINER ID  IMAGE                          COMMAND     CREATED         STATUS      PORTS       NAMES
74e6cbe3600d  quay.io/libpod/busybox:latest  top         10 seconds ago  Created                 test_cni_dir

[root@kvm-04-guest17 ~]# ls /etc/cni/ -lah
total 12K
drwxr-xr-x.   2 root root    6 Jan 31 03:28 .
drwxr-xr-x. 102 root root 8.0K Jan 31 03:28 ..

Comment 9 Alex Jia 2023-02-13 06:45:06 UTC
This bug has been verified on podman-4.4.0-1.module+el8.8.0+18060+3f21f2cc.x86_64.

[root@kvm-02-guest12 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.8 Beta (Ootpa)

[root@kvm-02-guest12 ~]# rpm -q podman runc systemd kernel
podman-4.4.0-1.module+el8.8.0+18060+3f21f2cc.x86_64
runc-1.1.4-1.module+el8.8.0+18060+3f21f2cc.x86_64
systemd-239-71.el8.x86_64
kernel-4.18.0-458.el8.x86_64

[root@kvm-02-guest12 ~]# podman create --name test_cni_dir quay.io/libpod/busybox top
Trying to pull quay.io/libpod/busybox:latest...
Getting image source signatures
Copying blob 9758c28807f2 done  
Copying config f0b02e9d09 done  
Writing manifest to image destination
Storing signatures
6c81e85a7c23efa78c66279f049adf86fb2a1b264ba889b2f2b4a6df2be8c78d

[root@kvm-02-guest12 ~]# podman ps -a
CONTAINER ID  IMAGE                          COMMAND     CREATED        STATUS      PORTS       NAMES
6c81e85a7c23  quay.io/libpod/busybox:latest  top         6 seconds ago  Created                 test_cni_dir

[root@kvm-02-guest12 ~]# ls /etc/cni/ -lah
total 12K
drwxr-xr-x.   2 root root    6 Feb 12 21:20 .
drwxr-xr-x. 105 root root 8.0K Feb 13 01:39 ..

Comment 11 errata-xmlrpc 2023-05-16 08:23:27 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-2023:2758