Bug 506627

Summary: Complete kexec/kdump failure with encrypted root
Product: [Fedora] Fedora Reporter: Chuck Ebbert <cebbert>
Component: kexec-toolsAssignee: Neil Horman <nhorman>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: nhorman, qcai
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-04 12:49:00 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
crypttab
none
patch to avoid starting kdump if dump target is encrypted
none
updated patch none

Description Chuck Ebbert 2009-06-18 02:30:23 UTC
Description of problem:

Set up the kdump service and rebooted, then forced a panic. The kdump kernel loads, then just sits there after printing "Waiting for dm-..."

Comment 1 Neil Horman 2009-06-18 10:48:43 UTC
yeah, unfortunately this isn't likely to get fixed, since kdump is meant to be an automatic process, and dumping to an encrypted partition is by definition interactive (you need to enter the password to capture the dump).  What we should probably do is fail to start the kdump service on encrypted root filesystmes, and tell the user that they have to configure kdump to write the dump elsewhere.

Comment 2 Neil Horman 2009-06-18 19:16:12 UTC
hey, do me a favor, attach your enctab and/or crypttab files if you would please.  Thanks!

Comment 3 Chuck Ebbert 2009-06-20 10:28:24 UTC
Created attachment 348739 [details]
crypttab

I can't find an enctab, just crypttab

Comment 4 Neil Horman 2009-06-22 19:29:50 UTC
Created attachment 348984 [details]
patch to avoid starting kdump if dump target is encrypted

Hey, can you give this patch a shot.  I've not tested it yet, and its doesn't allow encrypted partitions to work, but it should stop kdump from starting if you try to dump to such a partition.  Thanks!

Comment 5 Chuck Ebbert 2009-06-24 02:10:41 UTC
(In reply to comment #4)

The patch doesn't change anything. (My kdump.conf has nothing but comments in it. Root is on ext4, but I added ext4 to the list. Is kdump taking some kind of defaults when kdump.conf is empty?)

Comment 6 Chuck Ebbert 2009-06-24 02:11:46 UTC
Created attachment 349180 [details]
updated patch

Comment 7 Neil Horman 2009-06-24 10:58:11 UTC
Yes, if there is nothing in kdump.conf, kdump mounts the root filesystem and runs /sbin/init like a normal bootup.  Thats why this patch defaults the DUMP_TARGET id to that of the / file system.

Just for clarity, does the patch you updated for RHEL4 work, or does it still not detect your root file system as being encrypted.  If not, could you please add a set -x to the top of your kdump initscript, and send me the output from when you attempt to start the service?  That will help me figure out whats going on.  Thanks

Comment 8 Neil Horman 2009-07-10 10:38:13 UTC
ping?

Comment 9 Neil Horman 2009-09-04 12:49:00 UTC
closing due to lack of response