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):
edit /usr/sbin/sosreport and set __raisePlugins__ to 1
Steps to Reproduce:
1. run sosreport -o cluster
2. run sosreport -o sar
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.
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.
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
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.