makedumpfile: kdump-config load fails with vmlinux kernel (vs. vmlinuz)

Bug #1324544 reported by Mauricio Faria de Oliveira
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
makedumpfile (Debian)
Fix Released
Unknown
makedumpfile (Ubuntu)
Fix Released
High
Chris J Arges
Trusty
Fix Released
High
Chris J Arges
Utopic
Fix Released
High
Chris J Arges

Bug Description

SRU Justification:

[Impact]
Users of ppc64el hardware need the ability to use crashdumps to do kernel debugging.

[Test Case]
1) apt-get install kdump-tools
2) kdump-config load
3) this should pass but fails because it expects vmlinuz

[Regression Potential]
This fix allows the existing case to work, but only checks for vmlinux if vmlinuz is missing.

--

On ppc64el, there's no vmlinu/z/, only vmlinu/x/.

Thus, kdump-config load fails as follows:

# kdump-config load
Cannot open `/boot/vmlinuz-3.13.0-27-generic': No such file or directory
 * failed to load kdump kernel

This small patch (attached) fixes the issue.
It defaults KDUMP_KERNEL to vmlinux if vmlinuz is not found.

# cd /usr/sbin && patch -p1 < ~/kdump-config-vmlinux.patch
patching file kdump-config

# kdump-config load
[...]
 * loaded kdump kernel

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "kdump-config-vmlinux.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Attaching debdiffs for Utopic and Trusty.

The patch fixes this issue:

 $ sudo kdump-config load
 Cannot open `/boot/vmlinuz-3.16.0-14-generic': No such file or directory
  * failed to load kdump kernel

Test OK on Utopic:

 $ sudo kdump-config load
 Modified cmdline:BOOT_IMAGE=/boot/vmlinux-3.16.0-14-generic root=UUID=780a7cc8-faf1-4613-bc3b-9b9fda9f0862 ro quiet splash vt.handoff=7 irqpoll maxcpus=1 nousb elfcorehdr=154688K
 segment[0].mem:0x8000000 memsz:24117248
 segment[1].mem:0x9700000 memsz:65536
 segment[2].mem:0x9710000 memsz:65536
 segment[3].mem:0x9720000 memsz:65536
 segment[4].mem:0x9730000 memsz:21692416
 segment[5].mem:0xfff0000 memsz:65536
  * loaded kdump kernel

 $ sudo kdump-config test | grep -A1 'kdump kernel:'
 kdump kernel:
    /boot/vmlinux-3.16.0-14-generic

 $ sudo kdump-config status
 current state : ready to kdump

Test OK on Trusty:

 $ sudo kdump-config load
 Modified cmdline:BOOT_IMAGE=/boot/vmlinux-3.13.0-35-generic root=UUID=742d5ea0-2a70-4a5a-a8eb-7215d36a4caa ro quiet splash vt.handoff=7 irqpoll maxcpus=1 nousb elfcorehdr=157440K
 segment[0].mem:0x8000000 memsz:26935296
 segment[1].mem:0x99b0000 memsz:65536
 segment[2].mem:0x99c0000 memsz:65536
 segment[3].mem:0x99d0000 memsz:65536
 segment[4].mem:0x99e0000 memsz:20054016
 segment[5].mem:0xfff0000 memsz:65536
  * loaded kdump kernel

 $ sudo kdump-config test | grep -A1 'kdump kernel:'
 kdump kernel:
    /boot/vmlinux-3.13.0-35-generic

 $ sudo kdump-config status
 current state : ready to kdump

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Marking as confirmed since this is hit / mentioned as part of LP #1352056 and LP #1350443

Changed in makedumpfile (Ubuntu):
status: New → Confirmed
Steve Langasek (vorlon)
Changed in makedumpfile (Ubuntu):
assignee: nobody → Adam Conrad (adconrad)
status: Confirmed → In Progress
Chris J Arges (arges)
Changed in makedumpfile (Ubuntu):
assignee: Adam Conrad (adconrad) → Chris J Arges (arges)
Chris J Arges (arges)
Changed in makedumpfile (Ubuntu Trusty):
assignee: nobody → Chris J Arges (arges)
status: New → In Progress
importance: Undecided → High
Changed in makedumpfile (Ubuntu Utopic):
importance: Undecided → High
summary: - kdump-config load fails with vmlinux kernel (vs. vmlinuz)
+ makedumpfile: kdump-config load fails with vmlinux kernel (vs. vmlinuz)
Revision history for this message
Chris J Arges (arges) wrote :

@mauricfo:
Uploaded fix in comment #5 to utopic with slight modification to version number.
Thanks!

description: updated
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Thanks, Chris!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package makedumpfile - 1.5.6-2ubuntu1

---------------
makedumpfile (1.5.6-2ubuntu1) utopic; urgency=medium

  * kdump-config: load kdump kernel from vmlinux too (LP: #1324544)
 -- Mauricio Faria de Oliveira <email address hidden> Sat, 13 Sep 2014 13:34:02 -0300

Changed in makedumpfile (Ubuntu Utopic):
status: In Progress → Fix Released
Changed in makedumpfile (Debian):
status: Unknown → New
Revision history for this message
Chris J Arges (arges) wrote :
Revision history for this message
Chris J Arges (arges) wrote : Please test proposed package

Hello Mauricio, or anyone else affected,

Accepted makedumpfile into trusty-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/makedumpfile/1.5.5-2ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in makedumpfile (Ubuntu Trusty):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Chris J Arges (arges) wrote :

Verified for Trusty.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package makedumpfile - 1.5.5-2ubuntu1.1

---------------
makedumpfile (1.5.5-2ubuntu1.1) trusty; urgency=medium

  * kdump-config: load kdump kernel from vmlinux too. (LP: #1324544)
 -- Mauricio Faria de Oliveira <email address hidden> Fri, 03 Oct 2014 11:46:27 +0200

Changed in makedumpfile (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Chris J Arges (arges) wrote : Update Released

The verification of the Stable Release Update for makedumpfile has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Changed in makedumpfile (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.