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.

Bug 1945179

Summary: iptables/arptables/ebtables/ipset: kernel: add deprecation notice on module load.
Product: Red Hat Enterprise Linux 9 Reporter: Eric Garver <egarver>
Component: kernelAssignee: Phil Sutter <psutter>
kernel sub component: Netfilter QA Contact: yiche <yiche>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: egarver, jiji, network-qe, psutter, pvlasin, todoleza, yiche
Version: 9.0Keywords: Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kernel-5.14.0-21.el9 Doc Type: No Doc Update
Doc Text:
Release Note: See BZ#1945151.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 15:38:02 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 Eric Garver 2021-03-31 13:11:20 UTC
This includes iptables-nft and iptables-legacy. For -legacy we can trigger when the iptables_<table> modules are loaded. For -nft, it may be a bit trickier because it'll have to be from the nftables code.

Don't forget ip6tables!!

Comment 1 Phil Sutter 2021-07-05 16:58:14 UTC
I'll submit a single patch doing it all at once.

The kernel messages are created upon module load. To trigger them all, call:

| arptables-legacy -vnL
| ebtables-legacy -L
| ipset create testset hash:ip
| iptables-legacy -vnL
| ip6tables-legacy -vnL
| iptables-nft -A FORWARD -m conntrack --conntrack-state NEW -j ACCEPT

Note the last one: We deprecate nft_compat.ko which is used only if
iptables-nft calls xtables extensions. Regular listing or use of e.g. IP
address matches and/or standard targets does not require it and therefore won't
trigger the warning.

Comment 2 Phil Sutter 2021-07-05 16:59:15 UTC
*** Bug 1945181 has been marked as a duplicate of this bug. ***

Comment 3 Phil Sutter 2021-07-05 16:59:24 UTC
*** Bug 1945185 has been marked as a duplicate of this bug. ***

Comment 4 Phil Sutter 2021-07-05 16:59:35 UTC
*** Bug 1945193 has been marked as a duplicate of this bug. ***

Comment 6 Phil Sutter 2021-07-09 15:01:42 UTC
Yiche, please consider this ticket for qa_ack+. Feel free to set ITM as you see fit. Thanks!

Comment 7 yiche 2021-07-12 09:32:48 UTC
Hi Phil,
Would you provide test advice about this change?

Comment 8 Phil Sutter 2021-07-12 12:22:14 UTC
(In reply to yiche from comment #7)
> Hi Phil,
> Would you provide test advice about this change?

Run each command from comment 1, make sure it causes a kernel log message upon
first invocation (and not second). No message should appear multiple times
unless a kernel module is unloaded.

Is this sufficient or do you need more data?

Thanks, Phil

Comment 9 yiche 2021-07-13 07:43:45 UTC
> make sure it causes a kernel log message upon
> first invocation (and not second). No message should appear multiple times
I think this is enough, thank you.

Comment 11 Phil Sutter 2021-07-23 15:18:04 UTC
Discussion ongoing, hence bumping ITM.

Comment 28 Phil Sutter 2021-10-01 16:30:40 UTC
Rebased the MR and changed its target from 9.0-beta to main.

Comment 30 Phil Sutter 2021-10-05 16:13:20 UTC
New MR, turns out I have to aim at centos-stream-9. Sorry for the inconvenience!

Yiche, could you please give the new MR's build another try?

Comment 35 Phil Sutter 2021-11-11 15:53:02 UTC
MR was missed for LNST testing, needs more time for CI.

Comment 47 Marc Muehlfeld 2022-02-17 14:09:14 UTC
The KCS article has been published: https://access.redhat.com/solutions/6739041

Comment 49 errata-xmlrpc 2022-05-17 15:38:02 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: kernel), 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:3907