Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
+++ This bug was initially created as a clone of Bug #2081834 +++
Description of problem:
Building containers with buildah does not work because it chokes on missing container networking dependencies that exist with podman. That is, if you *just* install buildah and never install podman, buildah will not work because it cannot correctly set up networking.
This is because the package is missing the following dependencies that podman has:
Suggests: containernetworking-plugins >= 0.9.1-1
Requires: netavark
Requires: iptables
Requires: nftables
Version-Release number of selected component (if applicable):
1.25.1-1.el9
How reproducible:
Always
Steps to Reproduce:
1. Install *only* buildah
2. Use "buildah bud" with containerfiles from https://pagure.io/nginx-vts-container
Actual results:
[root@097500dd2fd6 nginx-vts-container]# buildah bud -t nginx-vts-fedora -f Containerfile.fedora
STEP 1/9: FROM registry.fedoraproject.org/fedora:latest
Trying to pull registry.fedoraproject.org/fedora:latest...
Getting image source signatures
Copying blob 9c6cc3463716 done
Copying config 750037c05c done
Writing manifest to image destination
Storing signatures
STEP 2/9: RUN dnf -y install nginx nginx-mod-vts && dnf clean all
WARN[0006] Failed to load cached network config: network podman not found in CNI cache, falling back to loading network podman from disk
WARN[0006] 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 building at STEP "RUN dnf -y install nginx nginx-mod-vts && dnf clean all": 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]
[root@097500dd2fd6 nginx-vts-container]# WARN[0000] pkg/bind: error detaching "/var/tmp/buildah231551455/mnt/buildah-bind-target-3": no such file or directory
WARN[0000] pkg/bind: error removing "/var/tmp/buildah231551455/mnt/buildah-bind-target-3": no such file or directory
WARN[0000] pkg/bind: error detaching "/var/tmp/buildah231551455/mnt/rootfs": no such file or directory
WARN[0000] pkg/bind: error removing "/var/tmp/buildah231551455/mnt/rootfs": no such file or directory
WARN[0000] pkg/bind: error detaching "/var/tmp/buildah231551455/mnt": no such file or directory
WARN[0000] pkg/bind: error removing "/var/tmp/buildah231551455/mnt": no such file or directory
ERRO[0000] no such file or directory
error running container: did not get container start message from parent: EOF
Expected results:
Successful build of an image.
Additional info:
This also affects Fedora, since those packages are similarly configured.
Checked with buildah-1:1.26.1-3.el9.x86_64 and it is already fit the request. So set this to verified.
# yum deplist buildah |grep -e netavark -e iptables -e nftables -e buildah
Last metadata expiration check: 0:19:11 ago on Mon 23 May 2022 05:07:28 AM EDT.
package: buildah-1:1.26.1-3.el9.x86_64
dependency: iptables
provider: iptables-nft-1.8.7-28.el9.x86_64
dependency: netavark
provider: netavark-2:1.0.1-34.el9.x86_64
dependency: nftables
provider: nftables-1:0.9.8-12.el9.i686
provider: nftables-1:0.9.8-12.el9.x86_64
And the from the source code:
[root@kvm-06-guest17 ~]# cat rpmbuild/SPECS/buildah.spec |grep -e netavark -e iptables -e nftables -e containernetworking-plugins
Suggests: containernetworking-plugins >= 0.9.1-1
Requires: netavark
Requires: iptables
Requires: nftables
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: buildah 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:8008