Bug 710744

Summary: mkdumprd fails in handleraid
Product: [Fedora] Fedora Reporter: Sam Varshavchik <mrsam>
Component: kexec-toolsAssignee: Américo Wang <xiyou.wangcong>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: nhorman, qcai
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kexec-tools-2.0.0-44.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-18 22:28:30 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
Looks like findstoragedriverinsys is broken none

Description Sam Varshavchik 2011-06-04 13:09:21 UTC
Created attachment 502985 [details]
Looks like findstoragedriverinsys is broken

Description of problem:

mkdumprd fails to decipher raid.

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

kexec-tools-2.0.0-41.fc15.x86_64

How reproducible:

always

Steps to Reproduce:

fstab:

UUID=04714034-15fb-4346-98ea-ebbf4fcd50dd /                       ext4    defaults        1 1
UUID=1be2bf7e-48f1-40d1-82fd-163f18e41779 /boot                   ext3    defaults        1 2
UUID=22bb2f43-9465-448a-b18b-198989a488cb /home                   ext3    defaults        1 2
UUID=925bafc6-1182-4f93-a969-7d2d3af800bf /tmp                    ext3    defaults,noexec 1 2
UUID=47d6942b-7646-4dbd-8404-e96a43af3190 swap                    swap    defaults        0 0

/proc/mdstat:

md4 : active raid1 sda2[0] sdb2[1]
      425982844 blocks super 1.1 [2/2] [UU]
      bitmap: 0/4 pages [0KB], 65536KB chunk

md3 : active raid1 sda5[0] sdb5[1]
      8190968 blocks super 1.1 [2/2] [UU]
      bitmap: 0/1 pages [0KB], 65536KB chunk

md2 : active raid1 sda3[0] sdb3[1]
      51198908 blocks super 1.1 [2/2] [UU]
      bitmap: 1/1 pages [4KB], 65536KB chunk

md1 : active raid1 sda6[0] sdb6[1]
      1023992 blocks super 1.1 [2/2] [UU]
      
md0 : active raid1 sda1[0] sdb1[1]
      1023988 blocks super 1.0 [2/2] [UU]

kdump.conf:

ext4 UUID=04714034-15fb-4346-98ea-ebbf4fcd50dd
path /

# /sbin/mkdumprd -d -v /tmp/img 2.6.38.6-27.fc15.x86_64



Actual results:

Creating initramfs


Found root device md for UUID=04714034-15fb-4346-98ea-ebbf4fcd50dd
Using modules:
Found RAID component md2
IN HANDLERAID
basename: missing operand
Try `basename --help' for more information.
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.

No module Listing found for kernel 2.6.38.6-27.fc15.x86_64, aborting.


Expected results:

mkdumprd

Additional info:

The attached patch appears to fix this problem.

Comment 1 Neil Horman 2011-06-04 17:41:17 UTC
Thanks, I think we have a simmilar patch in RHEL already that I've been meaning to forward port.

Comment 2 Fedora Update System 2011-06-07 10:57:06 UTC
kexec-tools-2.0.0-44.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/kexec-tools-2.0.0-44.fc15

Comment 3 Fedora Update System 2011-06-09 00:05:15 UTC
Package kexec-tools-2.0.0-44.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing kexec-tools-2.0.0-44.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/kexec-tools-2.0.0-44.fc15
then log in and leave karma (feedback).

Comment 4 Sam Varshavchik 2011-06-09 11:37:21 UTC
This update does not work:

    modalias=$(cat $(find /sys/devices -name modalias | grep grep $(basename $devname)))


Two greps are not better than one.

Comment 5 Fedora Admin XMLRPC Client 2011-07-15 15:02:30 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Fedora Update System 2011-07-18 22:28:20 UTC
kexec-tools-2.0.0-44.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.