Bug 959802 - Under kernel-rt, mkdumprd hangs in depsolve_modlist function due to different dependencies
Summary: Under kernel-rt, mkdumprd hangs in depsolve_modlist function due to different...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: realtime-utilities
Version: 2.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Luis Claudio R. Goncalves
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-05 21:58 UTC by Mikhail Kulemin
Modified: 2018-12-01 15:02 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-03 20:33:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 626606 0 high CLOSED mkdumprd does not complete and hangs forever 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 719105 0 high CLOSED mkdumprd hang in depsolve_modlist when running kernel is not target kernel 2021-02-22 00:41:40 UTC
Red Hat Knowledge Base (Solution) 365853 0 None None None Never

Internal Links: 626606 719105

Description Mikhail Kulemin 2013-05-05 21:58:58 UTC
Description of problem:
mkdumprd utility hangs due to different dependencies in realtime and kdump kernel


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

Kdump kernel: 2.6.32-358.el6.x86_64 RHEL6.4
Current kernel: 3.2.33-rt50.66.el6rt.x86_64
kexec-tools-2.0.0-258.el6.x86_64


How reproducible:
Always

Steps to Reproduce:
1. Configure kdump as described in documentation. (+ use --builtin option if needed)
2. Execute 'service kdump start' to make kdump image.

Actual results:
Command hangs at mkdumprd script.


Expected results:
Successfully build image for kdump.

Additional info:
mkdumprd script hangs on resolving dependences in function depsolve_modlist. This function use list of current loaded kernel modules (and explicitly defined in mkdumprd options) to resolve dependencies. The problem is that in realtime and kdump kernel one module can have different dependencies.

For example in kdump kernel two modules 'scsi_transport_fc' and 'qla2xxx' has 'scsi_tgt' module as dependency, but in realtime kernel there is no one. So in the list of loaded modules with realtime kernel there is no 'scsi_tgt' module and function depsolve_modlist hangs.

There is a workaround: one can explicitly add needed module to list in option in /etc/sysconfig/kdump wit option '--preload':
MKDUMPRD_ARGS="-v --builtin=acpi-power-meter --builtin=joydev --preload=scsi_tgt"

It should be noted that there are  two similar bugs (719105 and 626606) with hangs but all patches from bugs are also applied to affected versions on mkdumprd.

Comment 2 J.H.M. Dassen (Ray) 2013-05-06 08:51:55 UTC
I'm reassigning this to kexec-tools in RHEL6 (just like bug #719105 and bug #626606) as this is a problem of mkdumprd, not of the realtime kernel.

Comment 3 Mikhail Kulemin 2013-05-06 09:29:42 UTC
(In reply to comment #2)
> I'm reassigning this to kexec-tools in RHEL6 (just like bug #719105 and bug
> #626606) as this is a problem of mkdumprd, not of the realtime kernel.

Ok, thanks, It is my mistake to assign it to kernel-rt.

Comment 5 Luis Claudio R. Goncalves 2013-05-06 13:28:42 UTC
Since MRG-2.1 the MRG realtime kernel can be used as the kdump kernel. We also provide a script to simplify kdump configuration, /usr/bin/rt-setup-kdump, part of the rt-setup package.

As the MRG realtime kernel versions change rather drastically when compared to RHEL, it is expected that from time to time kernel module names may change and and new modules are introduced. The current mkdumprd tool in RHEL6 sometimes has problems to deal with modules present in the running kernel that are not available (either unavailable or built-in) in the requested kdump kernel. A request for enhancement has already been filled but due to the possible impact, this process requires a very thorough testing on all supported platforms and may take some time to be finished.

Meanwhile, the suggestion is to boot the MRG realtime kernel and run /usr/bin/rt-setup-kdump. Please make sure you have the latest rt-setup version installed.

Comment 8 Mikhail Kulemin 2013-05-06 18:03:24 UTC
Thank you for information.
I just follow instructions from doc:

https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_MRG/2/html-single/Realtime_Tuning_Guide/index.html#sect-Realtime_Tuning_Guide-Realtime_Specific_Tuning-Using_kdump_and_kexec_with_the_RT_kernel

There is statement that "MRG Realtime uses the stock Red Hat Enterprise Linux 6 kernel as the kdump kernel" so I use stock kernel. Is rt kernel officially supported for kdump since MRG 2.1?

Comment 9 Luis Claudio R. Goncalves 2013-05-07 05:30:57 UTC
Please have a look at this URL:

https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_MRG/2/html/Technical_Notes/RHBA-2012-1492.html

These are the Technical Notes for Errata RHBA-2012-1492. I had the impression the notes were already on the guides but I was wrong. The Documentation Team is already looking at the necessary changes.

Comment 10 Mikhail Kulemin 2013-05-07 09:52:04 UTC
Good, Thanks.

Comment 11 Beth Uptagrafft 2013-05-31 14:47:57 UTC
The MRG Realtime Tuning Guide has been updated to reflect that the Realtime kernel is now the preferred kdump crash kernel on MRG 2.1 and later. 

https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_MRG/2/html-single/Realtime_Tuning_Guide/index.html#sect-Realtime_Tuning_Guide-Realtime_Specific_Tuning-Using_kdump_and_kexec_with_the_RT_kernel

Comment 12 Beth Uptagrafft 2013-06-03 19:48:54 UTC
Mikhail, can we close this issue now that the Tuning Guide has been correctly updated?

Comment 13 Mikhail Kulemin 2013-06-03 20:28:03 UTC
Yes, I think we can close this issue. Thank you.

Comment 14 Beth Uptagrafft 2013-06-03 20:33:16 UTC
Thank you for your confirmation!


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