Bug 2222238 - Traceback after invoking firewall-cmd with disabled firewalld
Summary: Traceback after invoking firewall-cmd with disabled firewalld
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: firewalld
Version: 38
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Eric Garver
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-12 11:23 UTC by Robin Hack
Modified: 2023-07-12 11:23 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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