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 2123210 - podman network backend does not switch to netavark when embedding container in image
Summary: podman network backend does not switch to netavark when embedding container i...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: osbuild-composer
Version: 9.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Achilleas Koutsou
QA Contact: Xiaofeng Wang
URL:
Whiteboard:
Depends On:
Blocks: 2125249
TreeView+ depends on / blocked
 
Reported: 2022-09-01 04:30 UTC by Xiaofeng Wang
Modified: 2022-11-15 10:08 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2125249 (view as bug list)
Environment:
Last Closed: 2022-11-15 09:50:43 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github osbuild osbuild-composer pull 2951 0 None open rhel9: explicitly add containernetworking-plugins to edge 2022-09-01 16:50:53 UTC
Red Hat Issue Tracker RHELPLAN-132937 0 None None None 2022-09-01 04:40:08 UTC
Red Hat Product Errata RHSA-2022:7950 0 None None None 2022-11-15 09:50:47 UTC

Description Xiaofeng Wang 2022-09-01 04:30:16 UTC
Description of problem:
Enable embedding container in image, then install the image in to VM. Connect to VM, then run "sudo podman run ubi8-minimal:latest cat /etc/redhat-release" failed with the following error:

WARN[0005] Failed to load cached network config: network podman not found in CNI cache, falling back to loading network podman from disk
WARN[0005] 1 error occurred:
    * plugin type="tuning" failed (delete): failed to find plugin "tuning" in path [/usr/local/libexec/cni /usr/libexec/cni /usr/local/lib/cni /usr/lib/cni /opt/cni/bin]

Error: plugin type="bridge" failed (add): failed to find plugin "bridge" in path [/usr/local/libexec/cni /usr/libexec/cni /usr/local/lib/cni /usr/lib/cni /opt/cni/bin]

But run "podman run ubi8-minimal:latest cat /etc/redhat-release" without any error.

Get network backend info:
podman info -> networkBackend: netavark
sudo podman info -> networkBackend: cni
In root mode, the podman keeps using cni not netavark.

Do not have this issue if embedding container does not enabled.

Version-Release number of selected component (if applicable):
podman version
Client:       Podman Engine
Version:      4.2.0
API Version:  4.2.0
Go Version:   go1.18.4
Built:        Mon Aug 22 08:37:10 2022
OS/Arch:      linux/amd64

How reproducible:

Steps to Reproduce:
1. git clone https://github.com/virt-s1/rhel-edge.git
2. cd rhel-edge
3. ./ostree.sh

Actual results:
run "sudo podman run ubi8-minimal:latest cat /etc/redhat-release" failed

Expected results:
no error found

Additional info:

Comment 1 Achilleas Koutsou 2022-09-01 10:42:29 UTC
In podman 4.2.0 the default network is netavark but it falls back to CNI in some cases

From the default config file (/usr/share/containers/containers.conf)

> # The default value is empty which means that it will automatically choose CNI or netavark. If there are
> # already containers/images or CNI networks preset it will choose CNI.

When we embed a container in the image, podman uses CNI, but this requires containernetworking-plugins which we do not install in our images.

We should add containernetworking-plugins whenever we add podman to cover all use cases.

Comment 2 Achilleas Koutsou 2022-09-01 10:47:44 UTC
(In reply to Achilleas Koutsou from comment #1)
> In podman 4.2.0 the default network is netavark but it falls back to CNI in
> some cases

Correction: this change happened in v4.0.0 https://github.com/containers/podman/releases/tag/v4.0.0

Comment 12 Xiaofeng Wang 2022-09-21 08:57:33 UTC
Verified on osbuild-composer-62.1-1.el9.x86_64.rpm

Comment 14 errata-xmlrpc 2022-11-15 09:50:43 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 (Low: Image Builder 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-2022:7950


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