Bug 1301047 - Kdump local test is failing on RHEL 6.7 for rhcert tool version 2.0
Summary: Kdump local test is failing on RHEL 6.7 for rhcert tool version 2.0
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Certification Program
Classification: Red Hat
Component: redhat-certification-hardware
Version: 1.0
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: ---
Assignee: brose
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-22 12:37 UTC by sambit taria
Modified: 2016-03-15 13:49 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-15 13:49:28 UTC
Target Upstream Version:
Embargoed:


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

Description sambit taria 2016-01-22 12:37:47 UTC
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):

redhat-certification-backend-2.0-20151117.el6.noarch

redhat-certification-hardware-1.6.6-20150901.el6.noarch

redhat-certification-information-1.6.6-20150901.el6.noarch

kernel-debuginfo-2.6.32-573.12.1.el6.x86_64

kernel-debuginfo-common-x86_64-2.6.32-573.12.1.el6.x86_64

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 13:35:50 UTC
Any update on this issue? We are hitting the same issue often. Please proved the solution.

Thanks,
Praveen

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

Checking required packages:
...
kernel-debuginfo-2.6.32-573.8.1.el6.x86_64

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,

Travis

Comment 5 Travis Gummels 2016-03-14 14:21:57 UTC
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
kernel-debuginfo-2.6.32-573.18.1.el6.x86_64

# pwd
/usr/lib/debug/lib/modules/2.6.32-573.18.1.el6.x86_64

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

# rpm -q kernel-debuginfo
kernel-debuginfo-2.6.32-573.el6.x86_64

# pwd
/usr/lib/debug/lib/modules/2.6.32-573.el6.x86_64

# ls -l
...
-rwxr-xr-x.  1 root root 135375691 Jul  1  2015 vmlinux

Comment 6 Praveen 2016-03-15 06:38:32 UTC
Working after trying the above work around.

Comment 7 Travis Gummels 2016-03-15 13:49:28 UTC
Praveen,

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.

Travis


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