Bug 399321

Summary: sos does not warn if invalid plugins are passed to -n/--skip-plugins
Product: Red Hat Enterprise Linux 4 Reporter: Bryn M. Reeves <bmr>
Component: sosAssignee: Adam Stokes <astokes>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: urgent    
Version: 4.6CC: agk, bmr, jplans, rbiba
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2008-0663 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-24 19:30:50 UTC Type: ---
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: 443397    

Description Bryn M. Reeves 2007-11-26 10:47:28 UTC
Description of problem:
Users of the legacy sysreport tool often wanted to disable "rpm -Va" data
gathering due to the amount of time it consumes. The "-norpm" option was
provided to allow this.

This option has been removed from sosreport in favour of the plugin interface,
e.g. "sysreport -norpm" now becomes "sosreport -k rpm.rpmva=off".

The sosreport tool now also accepts a list of plugins to disable via the
-n/--skip-plugins options. If a user is unaware of this and passes "-norpm"
sosreport skips the non-existant "orpm" plugin and does not alert the user to
the fact they have passed an invalid option.

For users transitioning from sysreport this is confusing. It would be preferable
to emit either a general warning about a non-existant plugin or special-case the
legacy sysreport options (-norpm seems to be the only one that could cause
confusion as sysreport does not currently use -d (-dmidecode in sysreport)).

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

How reproducible:
100%

Steps to Reproduce:
1. # sosreport -norpm
2. ps ax | grep rpm

  
Actual results:
See sosreport running "rpm -Va"

Expected results:
A warning that the -norpm option from sysreport is not supported in sosreport.

Additional info:

Comment 2 Navid Sheikhol-Eslami 2007-12-10 10:42:09 UTC
Fixed in upstream repository. Thanks.

-- Navid

Comment 19 errata-xmlrpc 2008-07-24 19:30:50 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0663.html