Bug 1057628

Summary: firewall-config creates unloadable config; port forwarding broken
Product: Red Hat Enterprise Linux 7 Reporter: Thomas Woerner <twoerner>
Component: firewalldAssignee: Thomas Woerner <twoerner>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas Dolezal <todoleza>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.0CC: jpopelka, jscotka, pal666, twoerner
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: firewalld-0.3.9-4.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1056154 Environment:
Last Closed: 2014-06-13 12:38:38 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: 1056154    
Bug Blocks:    

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.