Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1506596 - redhat.py:67:__init__:KeyError: 'filesystem'
redhat.py:67:__init__:KeyError: 'filesystem'
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sos (Show other bugs)
6.9
All All
unspecified Severity medium
: rc
: ---
Assigned To: Filip Krska
Miroslav Hradílek
https://github.com/sosreport/sos/pull...
:
: 1441155 (view as bug list)
Depends On: 1393961
Blocks: 1374441 1461138 1506659
  Show dependency treegraph
 
Reported: 2017-10-26 07:50 EDT by Miroslav Hradílek
Modified: 2018-06-19 01:24 EDT (History)
17 users (show)

See Also:
Fixed In Version: sos-3.2-62.el6
Doc Type: Bug Fix
Doc Text:
Cause: Short timeout when retrieving list of packages. Consequence: Sosreport collection fails. Fix: Retrieve list of packages without timeout. Handle missing `filesystem` package gracefully. Result: Sosreport collection proceeds without `__init__:KeyError: 'filesystem'` error.
Story Points: ---
Clone Of: 1393961
Environment:
Last Closed: 2018-06-19 01:23:14 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2938181 None None None 2017-10-26 07:50 EDT
Github sosreport/sos/pull/942 None None None 2017-12-17 09:05 EST
Red Hat Product Errata RHBA-2018:1920 None None None 2018-06-19 01:24 EDT

  None (edit)
Description Miroslav Hradílek 2017-10-26 07:50:10 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':
Comment 2 Miroslav Hradílek 2017-11-13 10:02:08 EST
*** Bug 1441155 has been marked as a duplicate of this bug. ***
Comment 3 Filip Krska 2017-12-17 09:05:04 EST
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.
Comment 15 errata-xmlrpc 2018-06-19 01:23:14 EDT
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

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