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 2009742 - iptables-nft should require coreutils
Summary: iptables-nft should require coreutils
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: iptables
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 9.0
Assignee: Phil Sutter
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-01 13:16 UTC by Jan Stodola
Modified: 2022-05-17 16:17 UTC (History)
1 user (show)

Fixed In Version: iptables-1.8.7-24.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 15:52:12 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-98671 0 None None None 2021-10-01 13:22:30 UTC
Red Hat Product Errata RHBA-2022:3936 0 None None None 2022-05-17 15:52:19 UTC

Description Jan Stodola 2021-10-01 13:16:51 UTC
Description of problem:
The following error was noticed in /var/log/anaconda/packaging.log on the installed system:

...
03:50:43,447 INF packaging: Installed: iptables-nft-1.8.7-23.el9.x86_64 1628560024 10b9dccdca8aeff1bff03b9961f2495f6d951ec352ee837fac5b78359e3b1cf1
03:50:43,491 INF packaging: Configuring (running scriptlet for): iptables-nft-1.8.7-23.el9.x86_64 1628560024 10b9dccdca8aeff1bff03b9961f2495f6d951ec352ee837fac5b78359e3b1cf1
03:50:43,511 INF dnf.rpm: /var/tmp/rpm-tmp.eM9Yv2: line 14: readlink: command not found
/var/tmp/rpm-tmp.eM9Yv2: line 14: readlink: command not found
/var/tmp/rpm-tmp.eM9Yv2: line 14: readlink: command not found
/var/tmp/rpm-tmp.eM9Yv2: line 18: readlink: command not found
/var/tmp/rpm-tmp.eM9Yv2: line 31: readlink: command not found
/var/tmp/rpm-tmp.eM9Yv2: line 34: readlink: command not found
/var/tmp/rpm-tmp.eM9Yv2: line 31: readlink: command not found
/var/tmp/rpm-tmp.eM9Yv2: line 34: readlink: command not found
/var/tmp/rpm-tmp.eM9Yv2: line 31: readlink: command not found
/var/tmp/rpm-tmp.eM9Yv2: line 34: readlink: command not found
/var/tmp/rpm-tmp.eM9Yv2: line 38: readlink: command not found

03:50:43,514 INF packaging: Installed: nftables-1:0.9.8-7.el9.x86_64 1628603089 74f0c33cab96df7f4b6780f2a7e2ea73bbb600a97926221035a1a00e209d277c
.
.
.
03:50:44,754 INF packaging: Installed: coreutils-8.32-31.el9.x86_64 1628543680 4ffed4d910af3dbde23df8e080062c11ad97ef471b78f5b65911be733fe1dde4
...

iptables-nft should require coreutils if it executes readlink in rpm scriptlets.

Version-Release number of selected component (if applicable):
iptables-nft-1.8.7-23.el9

How reproducible:


Steps to Reproduce:
1. rpm -qp iptables-nft-1.8.7-23.el9.x86_64.rpm --requires | grep coreutils

Actual results:
iptables-nft scriptlets call readlink, but the package deosn't require coreutils - this leads to errors when installing the package

Expected results:
Commands used in rpm scriptlets are installed before the iptables-nft rpm scriptlets are executed.

Comment 1 Phil Sutter 2021-10-01 13:57:38 UTC
Thanks for the report. This was fixed in Fedora shortly after automatic sync was disabled.

Comment 3 Štěpán Němec 2021-10-13 10:56:47 UTC
Tested iptables-1.8.7-24.el9

RHEL 9 iptables.spec now contains the fix from Fedora:
https://src.fedoraproject.org/rpms/iptables/c/2eea62dd86d3eafe7938a922f0dca0bc722b0674

[root@ci-vm-10-0-138-102 ~]# rpm -qp --requires /mnt/redhat/brewroot/packages/iptables/1.8.7/24.el9/x86_64/iptables-nft-1.8.7-24.el9.x86_64.rpm | grep -E 'coreutils|readlink'
/usr/bin/readlink

[root@ci-vm-10-0-138-102 ~]# rpm -qp --requires /mnt/redhat/brewroot/packages/iptables/1.8.7/26.el9/x86_64/iptables-nft-1.8.7-26.el9.x86_64.rpm | grep -E 'coreutils|readlink'
/usr/bin/readlink

Comment 9 errata-xmlrpc 2022-05-17 15:52:12 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 (new packages: iptables), 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/RHBA-2022:3936


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