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 1936896 - Adding an ipset of type "hash:net,net" breaks firewalld (firewall-cmd)
Summary: Adding an ipset of type "hash:net,net" breaks firewalld (firewall-cmd)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: firewalld
Version: ---
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Eric Garver
QA Contact: Štěpán Němec
URL:
Whiteboard:
Depends On:
Blocks: 1935910
TreeView+ depends on / blocked
 
Reported: 2021-03-09 12:39 UTC by Štěpán Němec
Modified: 2021-11-10 02:19 UTC (History)
3 users (show)

Fixed In Version: firewalld-0.9.3-5.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 18:55:58 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
firewall-cmd --reload output after adding hash:net,net ipset (14.32 KB, text/plain)
2021-03-09 12:39 UTC, Štěpán Němec
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1419058 1 None None None 2021-03-09 12:48:52 UTC
Red Hat Bugzilla 1685256 1 None None None 2023-03-31 12:21:34 UTC
Red Hat Product Errata RHBA-2021:4355 0 None None None 2021-11-09 18:56:24 UTC

Description Štěpán Němec 2021-03-09 12:39:10 UTC
Created attachment 1761992 [details]
firewall-cmd --reload output after adding hash:net,net ipset

Description of problem:
Adding an ipset of type "hash:net,net" (using `firewall-cmd --permanent --new-ipset`) reports success, but subsequent `firewall-cmd --reload` fails and firewall-cmd continues to exhibit strange behavior.

Version-Release number of selected component (if applicable):
firewalld-0.8.2-6.el8

How reproducible:
always

Steps to Reproduce:
# systemctl start firewalld
# firewall-cmd --permanent --new-ipset testset --type hash:net,net
success
# firewall-cmd --reload

Actual results:
Error: COMMAND_FAILED: 'python-nftables' failed: internal:0:0-0: Error: No such file or directory

[
NB: Afterwards, `firewall-cmd --state` reports "not running" despite some commands working as expected (e.g. firewall-cmd --version) and systemctl reporting the firewalld service status as "active (running)". Only after restarting the service using systemctl does `firewall-cmd --state` report "failed" and the following line appears in the journal:

ERROR: COMMAND_FAILED: INVALID_TYPE: ipset type name 'hash:net,net' is not valid
]

Expected results:
success

Additional info:
Full command output attached.

tested with 1MT-RHEL-8.4.0-20210304.2

# dnf list installed | grep nftables
nftables.x86_64                               1:0.9.3-17.el8                           @anaconda
python3-nftables.x86_64                       1:0.9.3-17.el8                           @anaconda

# dnf list installed | grep firewall
firewalld.noarch                              0.8.2-6.el8                              @anaconda
firewalld-filesystem.noarch                   0.8.2-6.el8                              @anaconda
python3-firewall.noarch                       0.8.2-6.el8                              @anaconda

Comment 6 Eric Garver 2021-04-16 16:18:38 UTC
Upstream commits:

f3bd1297f656 ("test(ipset): add test to verify hash:net,net")
36f3d50d729d ("fix(ipset): fix hash:net,net functionality")

Comment 20 errata-xmlrpc 2021-11-09 18:55:58 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-2021:4355


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