Bug 2222238

Summary: Traceback after invoking firewall-cmd with disabled firewalld
Product: [Fedora] Fedora Reporter: Robin Hack <rhack>
Component: firewalldAssignee: Eric Garver <egarver>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 38CC: egarver, psutter
Target Milestone: ---Keywords: RFE
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-28 13:26:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robin Hack 2023-07-12 11:23:39 UTC
firewall-cmd returns traceback when firewalld is disabled.

Reproducer:



# systemctl stop  firewalld.service

# firewall-cmd
Error: Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/firewall/client.py", line 50, in _impl
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/firewall/client.py", line 3145, in get_property
    return dbus_to_python(self.fw_properties.Get(
                          ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'Get'

Proposal: Maybe no traceback when firewalld is disabled?

Reproducible: Always

Steps to Reproduce:
1. systemctl stop  firewalld.service
2. firewall-cmd
Actual Results:  
Error: Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/firewall/client.py", line 50, in _impl
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/firewall/client.py", line 3145, in get_property
    return dbus_to_python(self.fw_properties.Get(
                          ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'Get'

Expected Results:  
Something beautiful and more user friendly.

Comment 1 Aoife Moloney 2024-05-28 13:26:55 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.