Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 243297

Summary: s390utils contains a command, dbginfo.sh, during run it drops two errors - kernelversion not found.
Product: Red Hat Enterprise Linux 4 Reporter: Eric Sammons <esammons>
Component: s390utilsAssignee: Dan HorĂ¡k <dhorak>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
* the dbginfo.sh shell script contained a reference to kernelversion, a command not included in Red Hat Enterprise Linux. This would cause dbginfo to exit before running all tests and report the following errors: "kernelversion: command not found" and " [: =: unary operator expected". In this version of s390utils, the dbginfo.sh script has been modified so that it no longer calls the kernelversion command, thereby avoiding this issue. The script now works correctly.
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-05-18 20:14:17 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
Included patch, this patch also addresses a find command issue in RHEL5. This may not be the best way to address the issue but it works. none

Description Eric Sammons 2007-06-08 13:00:08 UTC
Description of problem:

During the run of dbginfo.sh the following errors will appear.

/bin/dbginfo.sh: line 323: kernelversion: command not found
/bin/dbginfo.sh: line 323: [: =: unary operator expected

How reproducible:

Very

Steps to Reproduce:
1. Run dbginfo.sh

  
Actual results:

Program completes quickly, but wit/bin/dbginfo.sh: line 323: kernelversion:
command not found
/bin/dbginfo.sh: line 323: [: =: unary operator expected
h two errors.

Expected results:
No errors, and a longer run with more complete data.

Additional info:

this command will be useful when troubleshooting RHEL issues on the s390x
platform.  Sysreport does not currently provide all the necessary information.

Comment 1 Eric Sammons 2007-06-08 13:00:08 UTC
Created attachment 156572 [details]
Included patch, this patch also addresses a find command issue in RHEL5.  This may not be the best way to address the issue but it works.

Comment 2 RHEL Program Management 2008-09-05 17:23:07 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 7 Ruediger Landmann 2009-01-16 04:31:53 UTC
Release note added. If any revisions are required, please set the 
"requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.

New Contents:
* the dbginfo.sh shell script contained a reference to kernelversion, a command not included in Red Hat Enterprise Linux. This would cause dbginfo to exit before running all tests and report the following errors: "kernelversion: command not found" and " [: =: unary operator expected". In this version of s390utils, the dbginfo.sh script has been modified so that it no longer calls the kernelversion command, thereby avoiding this issue. The script now works correctly.

Comment 9 errata-xmlrpc 2009-05-18 20:14:17 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-0973.html