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 1057628 - firewall-config creates unloadable config; port forwarding broken
Summary: firewall-config creates unloadable config; port forwarding broken
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: firewalld
Version: 7.0
Hardware: i686
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Thomas Woerner
QA Contact: Tomas Dolezal
URL:
Whiteboard:
Depends On: 1056154
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-24 13:57 UTC by Thomas Woerner
Modified: 2014-06-18 03:10 UTC (History)
4 users (show)

Fixed In Version: firewalld-0.3.9-4.el7
Doc Type: Bug Fix
Doc Text:
Clone Of: 1056154
Environment:
Last Closed: 2014-06-13 12:38:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Thomas Woerner 2014-01-24 13:57:51 UTC
+++ This bug was initially created as a clone of Bug #1056154 +++

Description of problem: After setting basic port forwarding, firewalld-cmd dies with a python exception.


Version-Release number of selected component (if applicable):
firewall-config-0.3.9.2-1.fc20.noarch
firewalld-0.3.9.2-1.fc20.noarch


How reproducible: always


Steps to Reproduce:
1. yum erase firewalld ; rm -rf /etc/firewalld
2. yum install firewalld ; systemctl start firewalld
3. run firewall-config to set port forwarding
3. (fail to) run firewall-cmd --complete-reload

Actual results:
(in red:) Error: %x format: a number is required, not NoneType

Expected results:
Firewall loaded with port forwarding

Additional info:
attachment contains a tarball of the unloadable /etc/firewalld tree.

--- Additional comment from Jiri Popelka on 2014-01-22 06:53:20 EST ---

Backtrace:

  File "/home/jpopelka/git/firewalld/src/firewall/server/decorators.py", line 53, in dbus_handle_exceptions
    return func(*args, **kwargs)
  File "/home/jpopelka/git/firewalld/src/firewall/server/firewalld.py", line 771, in addInterface
    _zone = self.fw.zone.add_interface(zone, interface, sender)
  File "/home/jpopelka/git/firewalld/src/firewall/core/fw_zone.py", line 471, in add_interface
    self.apply_zone_settings(zone)
  File "/home/jpopelka/git/firewalld/src/firewall/core/fw_zone.py", line 360, in apply_zone_settings
    self.__zone_settings(True, zone)
  File "/home/jpopelka/git/firewalld/src/firewall/core/fw_zone.py", line 337, in __zone_settings
    self.__forward_port(enable, zone, *args)
  File "/home/jpopelka/git/firewalld/src/firewall/core/fw_zone.py", line 1325, in __forward_port
    mark_str = "0x%x" % mark_id
TypeError: %x format: a number is required, not NoneType

--- Additional comment from Thomas Woerner on 2014-01-23 05:49:58 EST ---

Fixed in upstream GIT: https://git.fedorahosted.org/cgit/firewalld.git/commit/?id=c01ec3dba00cb6f780f240a5afba4b9a61798317

--- Additional comment from Jiri Popelka on 2014-01-24 04:11:28 EST ---

Comment 6 Ludek Smid 2014-06-13 12:38:38 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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