RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2161682 - Podman v4.4RC1 can't find /etc/cni/net.d
Summary: Podman v4.4RC1 can't find /etc/cni/net.d
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: podman
Version: 8.8
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Jindrich Novy
QA Contact: Alex Jia
URL:
Whiteboard:
: 2161693 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-17 15:04 UTC by Tom Sweeney
Modified: 2023-05-16 09:13 UTC (History)
11 users (show)

Fixed In Version: podman-4.4.0-0.3.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-16 08:23:27 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github containers common pull 1294 0 None Merged libnetwork/cni: mkdir network config dir 2023-01-17 18:00:42 UTC
Red Hat Issue Tracker RHELPLAN-145359 0 None None None 2023-01-17 15:08:42 UTC
Red Hat Product Errata RHSA-2023:2758 0 None None None 2023-05-16 08:25:15 UTC

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


Note You need to log in before you can comment on or make changes to this bug.