Bug 243299

Summary: dbginfo.sh exits before running all tests and drops two errors, kernelversion not found and find
Product: Red Hat Enterprise Linux 5 Reporter: Eric Sammons <esammons>
Component: s390utilsAssignee: Dan HorĂ¡k <dhorak>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0   
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-20 21:49:38 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:
Attachments:
Description Flags
Patch addresses kernelversion by using uname -r, may not be pretty but it works, and the find -noleaf line is rewritten none

Description Eric Sammons 2007-06-08 13:07:47 UTC
Description of problem:
When running dbginfo.sh two errors are reported by the script.  

/bin/dbginfo.sh: line 348: kernelversion: command not found
/bin/dbginfo.sh: line 348: [: =: unary operator expected
find: warning: you have specified the -noleaf option after a non-option argument
-type, but options are not positional (-noleaf affects tests specified before it
as well as those specified after it).  Please specify options before other
arguments.

How reproducible:

Very

Steps to Reproduce:
1. dbginfo.sh
  
Actual results:

/bin/dbginfo.sh: line 348: kernelversion: command not found
/bin/dbginfo.sh: line 348: [: =: unary operator expected
find: warning: you have specified the -noleaf option after a non-option argument
-type, but options are not positional (-noleaf affects tests specified before it
as well as those specified after it).  Please specify options before other
arguments.

Expected results:

No errors, and a complete dbginfo report.

Additional info:

dbginfo will prove valuable when trying to determine issues within the s390x
environment.  current sysreport tools do not provide all s390x specific data.

Comment 1 Eric Sammons 2007-06-08 13:07:48 UTC
Created attachment 156573 [details]
Patch addresses kernelversion by using uname -r, may not be pretty but it works, and the find -noleaf line is rewritten

Comment 2 Phil Knirsch 2008-01-21 13:33:21 UTC
Reviewed from devel side, perfect fix for those 2 problems. Flagging for
RHEL-5.3 and giving Devel ACK.

Read ya, Phil

Comment 3 RHEL Program Management 2008-06-04 22:49:21 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 8 errata-xmlrpc 2009-01-20 21:49:38 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-2009-0188.html