Bug 2081349

Summary: podman defaults to old network stack on RHEL9
Product: Red Hat Enterprise Linux 9 Reporter: Paul Holzinger <pholzing>
Component: podmanAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Joy Pu <ypu>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 9.0CC: bbaude, dwalsh, jnovy, lsm5, mheon, pthomas, tsweeney, umohnani, ypu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: podman-4.0.3-2.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 09:51:14 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 Paul Holzinger 2022-05-03 13:47:39 UTC
Description of problem:

When installing podman it will default to the old CNI network stack instead of the new netavark stack because netavark is not installed.

Version-Release number of selected component (if applicable):
# rpm -q podman containers-common
podman-4.0.2-6.el9_0.x86_64
containers-common-1-34.el9_0.x86_64

How reproducible:
always

Steps to Reproduce:
1. dnf install podman

Actual results:

containernetworking-plugins is installed as dependency

Expected results:

netavark is installed as dependency


Additional info:

# dnf install podman 
Dependencies resolved.
======================================================================================================================================================================================================
 Package                                                    Architecture                         Version                                           Repository                                    Size
======================================================================================================================================================================================================
Installing:
 podman                                                     x86_64                               2:4.0.2-6.el9_0                                   rhel-AppStream                                13 M
Installing dependencies:
 conmon                                                     x86_64                               2:2.1.0-1.el9                                     rhel-AppStream                                59 k
 container-selinux                                          noarch                               3:2.179.1-1.el9_0                                 rhel-AppStream                                51 k
 containernetworking-plugins                                x86_64                               1.0.1-3.el9                                       rhel-AppStream                               8.4 M
 containers-common                                          x86_64                               2:1-34.el9_0                                      rhel-AppStream                               101 k
 criu                                                       x86_64                               3.15-13.el9                                       rhel-AppStream                               512 k
 criu-libs                                                  x86_64                               3.15-13.el9                                       rhel-AppStream                                33 k
 crun                                                       x86_64                               1.4.4-2.el9_0                                     rhel-AppStream                               188 k
 fuse-common                                                x86_64                               3.10.2-5.el9                                      rhel                                         9.3 k
 fuse-overlayfs                                             x86_64                               1.8.2-1.el9                                       rhel-AppStream                                74 k
 fuse3                                                      x86_64                               3.10.2-5.el9                                      rhel-AppStream                                58 k
 fuse3-libs                                                 x86_64                               3.10.2-5.el9                                      rhel-AppStream                                94 k
 libnet                                                     x86_64                               1.2-6.el9                                         rhel-AppStream                                61 k
 libslirp                                                   x86_64                               4.4.0-7.el9                                       rhel-AppStream                                72 k
 podman-catatonit                                           x86_64                               2:4.0.2-6.el9_0                                   rhel-AppStream                               353 k
 policycoreutils-python-utils                               noarch                               3.3-6.el9_0                                       rhel-AppStream                                78 k
 protobuf-c                                                 x86_64                               1.3.3-12.el9                                      rhel                                          38 k
 runc                                                       x86_64                               3:1.1.0-2.el9                                     rhel-AppStream                               3.0 M
 shadow-utils-subid                                         x86_64                               2:4.9-3.el9                                       rhel                                          91 k
 slirp4netns                                                x86_64                               1.1.12-4.el9                                      rhel-AppStream                                47 k
 yajl                                                       x86_64                               2.1.0-20.el9                                      rhel-AppStream                                42 k

Comment 1 Jindrich Novy 2022-05-03 14:17:41 UTC
Confirming, I'm about to amend podman dependencies as following:

--- a/podman.spec
+++ b/podman.spec
@@ -67,7 +67,8 @@ BuildRequires: file
 BuildRequires: gcc
 BuildRequires: libtool
 Requires: containers-common >= 2:1-27
-Requires: containernetworking-plugins >= 0.9.1-1
+Suggests: containernetworking-plugins >= 0.9.1-1
+Requires: netavark
 Requires: iptables
 Requires: nftables
 Obsoletes: oci-systemd-hook < 1

Comment 3 Paul Holzinger 2022-05-03 14:55:27 UTC
Can you check the same for buildah? Buildah should also use netavark by default.

Comment 4 Joy Pu 2022-05-13 08:40:38 UTC
checked with podman-4.1.0-2.el9.x86_64.rpm. The netavark already can be install by dependence. So set the Tested flag.
# yum install podman-4.1.0-2.el9.x86_64.rpm podman-catatonit-4.1.0-2.el9.x86_64.rpm
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 2:44:34 ago on Fri 13 May 2022 07:54:37 AM CEST.
Dependencies resolved.
==================================================================================================================================================
 Package                                Architecture               Version                             Repository                            Size
==================================================================================================================================================
Installing:
 podman                                 x86_64                     2:4.1.0-2.el9                       @commandline                          12 M
 podman-catatonit                       x86_64                     2:4.1.0-2.el9                       @commandline                         349 k
Installing dependencies:
 conmon                                 x86_64                     2:2.1.0-1.el9                       beaker-AppStream                      59 k
 container-selinux                      noarch                     3:2.183.0-1.el9                     beaker-AppStream                      51 k
 containers-common                      x86_64                     2:1-34.el9                          beaker-AppStream                     101 k
 criu                                   x86_64                     3.15-13.el9                         beaker-AppStream                     512 k
 criu-libs                              x86_64                     3.15-13.el9                         beaker-AppStream                      33 k
 crun                                   x86_64                     1.4.5-1.el9                         beaker-AppStream                     189 k
 fuse-overlayfs                         x86_64                     1.8.2-1.el9                         beaker-AppStream                      74 k
 fuse3                                  x86_64                     3.10.2-5.el9                        beaker-AppStream                      58 k
 fuse3-libs                             x86_64                     3.10.2-5.el9                        beaker-AppStream                      94 k
 libnet                                 x86_64                     1.2-6.el9                           beaker-AppStream                      61 k
 libslirp                               x86_64                     4.4.0-7.el9                         beaker-AppStream                      72 k
 netavark                               x86_64                     2:1.0.1-34.el9                      beaker-AppStream                     1.9 M
 protobuf-c                             x86_64                     1.3.3-12.el9                        beaker-BaseOS                         38 k
 runc                                   x86_64                     3:1.1.0-2.el9                       beaker-AppStream                     3.0 M
 shadow-utils-subid                     x86_64                     2:4.9-4.el9                         beaker-BaseOS                         90 k
 slirp4netns                            x86_64                     1.2.0-1.el9                         beaker-AppStream                      49 k
 yajl                                   x86_64                     2.1.0-20.el9                        beaker-AppStream                      42 k
Installing weak dependencies:
 aardvark-dns                           x86_64                     2:1.0.1-34.el9                      beaker-AppStream                     1.0 M
 tar                                    x86_64                     2:1.34-3.el9                        beaker-BaseOS                        894 k

Transaction Summary
==================================================================================================================================================
Install  21 Packages

Total size: 21 M
Total download size: 8.3 M
Installed size: 75 M
Is this ok [y/N]:

Comment 9 errata-xmlrpc 2022-11-15 09:51:14 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: podman security and bug fix 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:7954