Bug 1301047 - Kdump local test is failing on RHEL 6.7 for rhcert tool version 2.0
Kdump local test is failing on RHEL 6.7 for rhcert tool version 2.0
Product: Red Hat Certification Program
Classification: Red Hat
Component: redhat-certification-hardware (Show other bugs)
x86_64 Linux
urgent Severity urgent
: ---
: ---
Assigned To: brose
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2016-01-22 07:37 EST by sambit taria
Modified: 2016-03-15 09:49 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-03-15 09:49:28 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
rhcert test log for kdump (2.10 KB, text/plain)
2016-01-22 07:37 EST, sambit taria
no flags Details

  None (edit)
Description sambit taria 2016-01-22 07:37:47 EST
Created attachment 1117180 [details]
rhcert test log for kdump

Description of problem:

The rhcert tool is not able to verify kdump image.The rhcert tool is not able to find actual path of the vmlinux file.

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






How reproducible:

Steps to Reproduce:
1.Install the rhcert tool on RHEL6.7
2.Install kernel-debuginfo and and kernel-debuginfo-common rpm
2.Run the Kdump local test
3.Check the result in /var/log/rhcert/run/x/...

Actual results:
The test script is not able to find the actual path of vmlinux file and hence not able to verify the vmcore file

Expected results:

The test should be able to identify the path of vmlinux file and be able to verify the vmcore file

Additional info:
Comment 1 Praveen 2016-03-10 08:35:50 EST
Any update on this issue? We are hitting the same issue often. Please proved the solution.

Comment 2 Travis Gummels 2016-03-11 20:31:11 EST
It looks like you have a mismatch going on.  From your log file:

Checking required packages:

Rebuilding /boot/initrd-2.6.32-573.el6.x86_64kdump.img
The test will now cause a kernel panic to exercise kdump
method: panic
kernel: 2.6.32-573.el6.x86_64
crash: /usr/lib/debug/lib/modules/2.6.32-573.el6.x86_64/vmlinux: No such file or directory

It seems that you might have multiple kernels installed but not corresponding kernel-debuginfo.  There is a version mismatch between what the script reports finding installed for kernel-debuginfo (2.6.32-573.8.1.el6) and the kernel the remaining code executes against (2.6.32-573.el6).  Please sanity check your system.  Make sure that for the kernels that are installed there is a corresponding kernel-debuginfo installed.  Let us know the outcome.

Thank you,

Comment 5 Travis Gummels 2016-03-14 10:21:57 EDT
I tried this out on my system, you are going to need to install the matching kernel-debuginfo for the kernel the system has booted otherwise you get the crash error not being able to find vmlinux.  Note that the installed version of kernel-debuginfo has a kernel version specific directory hence the error.

# rpm -q kernel-debuginfo

# pwd

# ls -l
-rwxr-xr-x.  1 root root 135624055 Jan  6 13:09 vmlinux

# rpm -q kernel-debuginfo

# pwd

# ls -l
-rwxr-xr-x.  1 root root 135375691 Jul  1  2015 vmlinux
Comment 6 Praveen 2016-03-15 02:38:32 EDT
Working after trying the above work around.
Comment 7 Travis Gummels 2016-03-15 09:49:28 EDT

It is necessary that for the version of the kernel running on the system that will have the kdump test performed that a matching version of kernel-debuginfo be installed.  There needs to be version parity between the two packages, kernel and kernel-debuginfo, for the test to work properly.


Note You need to log in before you can comment on or make changes to this bug.