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 2122678

Summary: firewalld ipsets trigger kernel deprecation notice
Product: Red Hat Enterprise Linux 9 Reporter: Eric Garver <egarver>
Component: firewalldAssignee: Eric Garver <egarver>
Status: CLOSED ERRATA QA Contact: Jiri Peska <jpeska>
Severity: medium Docs Contact: Marc Muehlfeld <mmuehlfe>
Priority: high    
Version: 9.1CC: jmaxwell, jpeska, todoleza
Target Milestone: rcKeywords: TestCaseProvided, Triaged, Upstream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: firewalld-1.2.1-1.el9 Doc Type: Bug Fix
Doc Text:
.The `firewalld` service now triggers the `ipset` deprecation warning only when using direct rules Previously, the `firewalld` service used the deprecated `ipset` kernel module when it was not necessary. Consequently, RHEL logged the module's deprecation warning which could be misleading because the `ipset` feature of `firewalld` is not deprecated. With this update, `firewalld` only uses the deprecated `ipset` module and logs the warning if the user explicitly uses `ipsets` with the `--direct` option.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 08:24:12 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:
Bug Depends On: 2125371    
Bug Blocks:    

Description Eric Garver 2022-08-30 14:59:07 UTC
As noted in bug 2122421, if a user creates a firewalld "ipset" a kernel log will be generated:

   Warning: Deprecated Driver is detected: ipset will not be maintained in a future major release and may be disabled

This is confusing for users. The log may cause them to think firewalld's "ipset" feature is deprecated. It is not.

Firewalld creates native ipsets (i.e. ipset command) and nftables sets. The native ipset is only needed for --direct rules. This is what triggers the above log. nftables sets are used for all firewalld primitives, e.g. --zone foo --add-source ipset:bar.

The kernel log can be avoided by only creating native ipsets if a --direct rule is in use.

Comment 2 Eric Garver 2022-09-08 18:35:05 UTC
Upstream commits:

f510855ae501 ("test(ipset): verify native ipset creation is deferred")
cdd015475e83 ("fix(ipset): defer native ipset creation if nftables")
4cff68200be9 ("test(functions): add IPSET_LIST_SET_ALWAYS")
79032494e1e9 ("fix(failsafe): log exception on fatal failure")

Comment 4 sushil kulkarni 2022-11-15 14:43:18 UTC
Dropping from the RPL..Not enough votes..

Comment 15 errata-xmlrpc 2023-05-09 08:24: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 (firewalld 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/RHBA-2023:2546