Bug 457758

Summary: /sbin/mkdumprd parses comment lines of /etc/mdadm.conf
Product: Red Hat Enterprise Linux 5 Reporter: Charlotte Richardson <charlotte.richardson>
Component: kexec-toolsAssignee: Neil Horman <nhorman>
Status: CLOSED ERRATA QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2CC: cward, khalidtouati, mgahagan, qcai
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 600605 (view as bug list) Environment:
Last Closed: 2009-01-20 20:59:33 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 to correct parsing of mdadm.conf none

Description Charlotte Richardson 2008-08-04 14:10:44 UTC
Description of problem:
/sbin/mkdumprd confuses itself by parsing comment lines in /etc/mdadm.conf. A user had "level=0" instead of "level=radi0" in a commented-out line of /etc/mdadm.conf (he had been trying to set up a raid0 array). Then he made a change to /etc/kdump.conf to add a needed kdump_pre script. Then he tried to do service kdump restart. /etc/mkdumprd got:

Rebuilding /boot/initrd-2.6.18-92.el5kdump.img
No module 0 found for kernel 2.6.18-92.el5, aborting.
Failed to run mkdumprd
Starting kdump: [FAILED]


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


How reproducible:
Always

Steps to Reproduce:
1. Add a commented-out line to /etc/mdadm containg "level=0".
2. Edit /etc/kdump.conf.
3. service kdump restart
  
Actual results:
You get the error shown above. Then you spend a long time trying to figure out what module "0" is... Then you eventually find the comment line in /etc/mdadm.conf and delete it.

Expected results:
/sbin/mkdumprd should ignore comment lines.

Additional info:

Comment 1 Neil Horman 2008-08-04 17:50:26 UTC
Created attachment 313385 [details]
patch to correct parsing of mdadm.conf

Please try this patch and confirm that it fixes the problem.  Thanks!

Comment 2 Charlotte Richardson 2008-08-04 18:17:05 UTC
Looks like the patch works. The original user has already reinstalled his system; I hacked up the mdadm.conf on my system to have a comment line of the problematical sort and then edited /etc/kdump.conf and did service kdump restart. It now successfully ignores the comment.  Thanks!

Comment 3 RHEL Program Management 2008-08-04 18:52:58 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 4 Neil Horman 2008-08-04 19:48:25 UTC
Fixed in -30.el5.  Thanks!

Comment 8 errata-xmlrpc 2009-01-20 20:59:33 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-0105.html