Bug 617445

Summary: errors with minimal install
Product: Red Hat Enterprise Linux 6 Reporter: Qian Cai <qcai>
Component: kexec-toolsAssignee: Neil Horman <nhorman>
Status: CLOSED CURRENTRELEASE QA Contact: Chao Ye <cye>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: amwang, cye, phan
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kexec-tools-2.0.0-128 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-10 21:00:44 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
spec file patch to add missing depends
none
correct spec file patch none

Description Qian Cai 2010-07-23 03:48:31 UTC
Description of problem:
mkdumprd makes assumption that all the commands it needed are present in the system without make those required in the rpm spec. After installed from the minimal install and then install kexec-tools alone, the mkdumprd could generate wrong logic due missing of several utilities.

# service  kdump restart
Stopping kdump:                                            [  OK  ]
No kdump initial ramdisk found.                            [WARNING]
Rebuilding /boot/initrd-2.6.32-52.el6.x86_64kdump.img
cp: cannot stat `/sbin/mdadm': No such file or directory
cp: cannot stat `/sbin/kpartx': No such file or directory
/etc/init.d/kdump: line 209: dc: command not found
/etc/init.d/kdump: line 212: dc: command not found
/etc/init.d/kdump: line 219: [: 101496: unary operator expected
Starting kdump:

Version-Release number of selected component (if applicable):
kexec-tools-2.0.0-116.el6

How reproducible:
always

Comment 1 Neil Horman 2010-07-23 10:51:45 UTC
Created attachment 433916 [details]
spec file patch to add missing depends

Comment 2 Neil Horman 2010-07-23 10:54:29 UTC
Created attachment 433918 [details]
correct spec file patch

Comment 3 Neil Horman 2010-07-23 10:55:10 UTC
Here you go, please try installing with this rpm:
http://brewweb.devel.redhat.com/brew/taskinfo?taskID=2620470

it should pull in the missing depends

Comment 4 Han Pingtian 2010-07-26 00:22:59 UTC
The problem has been fixed with the testing RPM.

Comment 6 Chao Ye 2010-08-12 02:32:45 UTC
Reproduced with RHEL6.0-20100722.0, kernel-2.6.32-52.el6, kexec-tools-2.0.0-116.el6:
================================================================================
[root@ibm-x3655-05 ~]# service kdump restart
Stopping kdump:                                            [  OK  ]
Detected change(s) the following file(s):
  
  /etc/kdump.conf
Rebuilding /boot/initrd-2.6.32-52.el6.x86_64kdump.img
cp: cannot stat `/sbin/mdadm': No such file or directory
cp: cannot stat `/sbin/kpartx': No such file or directory
/etc/init.d/kdump: line 209: dc: command not found
/etc/init.d/kdump: line 212: dc: command not found
/etc/init.d/kdump: line 219: [: 646900: unary operator expected
Starting kdump:
......

Verified with RHEL6.0-20100807.0, kernel-2.6.32-59.el6, kexec-tools-2.0.0-133.el6:
================================================================================

Comment 7 releng-rhel@redhat.com 2010-11-10 21:00:44 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.