Bug 1393488

Summary: firewall-cmd logs errors in absence of polkitd
Product: Red Hat Enterprise Linux 7 Reporter: jigar <jraising>
Component: python-slipAssignee: Charalampos Stratakis <cstratak>
Status: CLOSED ERRATA QA Contact: Vaclav Danek <vdanek>
Severity: high Docs Contact:
Priority: high    
Version: 7.2CC: cplummer+bz, cstratak, lpol, mailinglists35, pportant, pviktori, tkatarki, todoleza, twoerner
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-slip-0.4.0-3.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 11:44:07 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:    
Bug Blocks: 1420851, 1465891, 1466363    

Description jigar 2016-11-09 16:37:09 UTC
Description of problem: firewall-cmd commands log errors in /var/log/messages in absence of polkitd :

Nov  2 17:46:06 localhost dbus-daemon: dbus[608]: [system] Rejected send message, 3 matched rules; type="error", sender=":1.3" (uid=0 pid=618 comm="/usr/bin/python -Es /usr/sbin/firewalld --nofork -") interface="(unset)" member="(unset)" error name="org.freedesktop.DBus.Error.ServiceUnknown" requested_reply="0" destination=":1.8" (uid=0 pid=2408 comm="/usr/bin/python -Es /usr/bin/firewall-cmd --list-a")

firewalld does not have a dependency on polkitd, so in absence of polkitd , errors should not be logged when running commands as root.

Version-Release number of selected component (if applicable): firewalld-0.4.3.2-8.el7


How reproducible: Always


Steps to Reproduce:
1. On RHEL 7, remove polkitd ( if installed )
2. Run following firewalld command as root/sudo :

$ firewall-cmd --list-all

3. Check /var/log/messages

Actual results: dbus error messages are logged in /var/log/messages


Expected results: Either polkitd should be a dependency of firewalld or the error messages should not appear in absence of polkitd

Comment 5 Thomas Woerner 2017-05-15 16:49:45 UTC
This is a python-slip issue.

Here is the upstream pull request for the fix: https://github.com/nphilipp/python-slip/pull/4

Here is the proposed fix: https://github.com/t-woerner/python-slip/commit/7ad888e7f92ea3fd6b5c003f3fd7b540d913045e

Comment 16 errata-xmlrpc 2018-04-10 11:44:07 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, 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-2018:0728

Comment 17 Mai Ling 2022-04-19 13:28:37 UTC
issue has been somehow propagated to EL8 where it still occurs.
filed https://bugzilla.redhat.com/show_bug.cgi?id=2076606