Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 717480 - Fix problems hidden by __raisePlugins__ = 0, create logging for plugin errors
Fix problems hidden by __raisePlugins__ = 0, create logging for plugin errors
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: sos (Show other bugs)
5.7
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Bryn M. Reeves
David Kutálek
:
Depends On:
Blocks: 782064
  Show dependency treegraph
 
Reported: 2011-06-28 18:27 EDT by David Kutálek
Modified: 2012-02-20 22:25 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Older versions of sos use a mechanism to suppress exceptions raised by plugins. This mechanism is intended to prevent a bug in one plugin preventing generation of a complete sosreport. Consequence: Since plugin exceptions are caught internally and not reported to the user or logged this mechanism may conceal genuine problems in the default plugin set. Fix: The sosreport command has been modified to report any exceptions raised during plugin processing to the sos log or to the terminal when run in verbose mode. Result: Plugin exceptions can now be discovered via the normal sos logging mechanisms while retaining the previous behavior of not permitting such exceptions to prematurely terminate the sos process
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-02-20 22:25:20 EST
Type: ---
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 Product Errata RHSA-2012:0153 normal SHIPPED_LIVE Low: sos security, bug fix, and enhancement update 2012-02-21 02:25:08 EST

  None (edit)
Description David Kutálek 2011-06-28 18:27:34 EDT
Description of problem:

There is a strange policy that unknown errors raised from plugins are silenced without any notice or logging. Therefore some existing problems were hidden:

 - error in cluster diagnostics
 - unhandled exception in sar plugin when /var/log/sa is not present
 - there may be more

I propose logging any tracebacks into separate file and make it part of sosreport.

Version-Release number of selected component (if applicable):

sos-1.7-9.54.el5

How reproducible:

edit /usr/sbin/sosreport and set __raisePlugins__ to 1

Steps to Reproduce:
1. run sosreport -o cluster
2. run sosreport -o sar
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Bryn M. Reeves 2011-06-29 06:33:13 EDT
Thanks for the bug report David - we'll address these cases in 5.8 - this is an unfortunate aspect of RHEL5's sos behaviour (this has been changed upstream and can be controlled by a command-line option).

Unfortunately we are somewhat constrained in what we can change in this release but we can at least address all the cases in the shipped plugin set that we know of.
Comment 13 Bryn M. Reeves 2012-01-26 07:05:29 EST
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause: Older versions of sos use a mechanism to suppress exceptions raised by plugins. This mechanism is intended to prevent a bug in one plugin preventing generation of a complete sosreport.

Consequence: Since plugin exceptions are caught internally and not reported to the user or logged this mechanism may conceal genuine problems in the default plugin set.

Fix: The sosreport command has been modified to report any exceptions raised during plugin processing to the sos log or to the terminal when run in verbose mode.

Result: Plugin exceptions can now be discovered via the normal sos logging mechanisms while retaining the previous behavior of not permitting such exceptions to prematurely terminate the sos process
Comment 14 errata-xmlrpc 2012-02-20 22:25:20 EST
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.

http://rhn.redhat.com/errata/RHSA-2012-0153.html

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