Red Hat Bugzilla – Bug 1506596
redhat.py:67:__init__:KeyError: 'filesystem'
Last modified: 2018-06-19 01:24:18 EDT
The same issue is present on RHEL 6.9 - sos-3.2-54.el6.noarch +++ This bug was initially created as a clone of Bug #1393961 +++ The above message happens when running sosreport. I believe the condition may be caused by either not having a PATH defined, or a timeout. For either case, I would suggest the pseudo patch to /usr/lib/python2.7/site-packages/sos/policies/redhat.py: - _rpmq_cmd = 'rpm -qa --queryformat "%{NAME}|%{VERSION}\\n"' + _rpmq_cmd = '/bin/rpm -qa --queryformat "%{NAME}|%{VERSION}\\n"' - if pkgs['filesystem']['version'][0] == '3': + if pkgs.has_key('filesystem') and pkgs['filesystem']['version'][0] == '3':
*** Bug 1441155 has been marked as a duplicate of this bug. ***
I'll add pull/942 as suggested in duplicate Bug 1441155#c0 and https://github.com/sosreport/sos/commit/4df4897146d4f2a0589a8b32532f912f1ea2ed8c so both timeout and missing filesystem pkg issues are addressed.
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:1920