kdump service fails to start on Power8
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kexec-tools (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Trusty |
Fix Released
|
High
|
Louis Bouchard |
Bug Description
[SRU justification]
Needed to avoid load failure on Power8
[Impact]
Without this fix, kexec will not load on Power8
[Fix]
Apply upstream fix present in Dev release
[Test Case]
1) sudo apt-get install linux-crashdump
2) reboot server
3) kdump-config load
As outlined in the initial description, kdump will fail to load without the fix.
[Regression]
None expected, fix is already present in the development version (Wily)
[Original description of the problem]
== Comment: #0 - SACHIN P. SANT <email address hidden> - 2015-06-01 06:39:56 ==
---Problem Description---
kdump service fails to start
Contact Information = Sachin Sant / <email address hidden>
---uname output---
3.19.0-18-generic
Machine Type = POWER8
---Debugger---
A debugger is not configured
---Steps to Reproduce---
1) Using latest daily ISO install 14.04.02 as a Power VM guest
2) Upgrade the kernel to 3.19 level (3.19.0-18-generic)
3) Configure kdump
kdump-config load command fails with following error:
root@alp9:~# cat /proc/cmdline
BOOT_IMAGE=
root@alp9:~# kdump-config show
USE_KDUMP: 1
KDUMP_SYSCTL: kernel.
KDUMP_COREDIR: /var/crash
crashkernel addr:
current state: Not ready to kdump
kexec command:
no kexec command recorded
root@alp9:~# kdump-config load
unrecoverable error: short read from"/proc/
* failed to load kdump kernel
root@alp9:~#
Userspace tool common name: kexec-tools
The userspace tool has the following bit modes: 64-bit
Userspace rpm: kdump-tools(
Userspace tool obtained from project website: na
*Additional Instructions for Sachin Sant / <email address hidden>:
-Post a private note with access information to the machine that the bug is occuring on.
-Attach ltrace and strace of userspace application.
== Comment: #2 - MAMATHA INAMDAR <email address hidden> - 2015-06-02 02:23:51 ==
root@alp9:~# /etc/init.
Starting kdump-tools: unrecoverable error: short read from"/proc/
* failed to load kdump kernel
root@alp9:~# dpkg -l | grep kexec
ii kexec-tools 1:2.0.6-0ubuntu2.1 ppc64el tools to support fast kexec reboots
root@alp9:~# dpkg -l | grep kdump
ii kdump-tools 1.5.5-2ubuntu1.2 all scripts and tools for automating kdump (Linux crash dumps)
root@alp9:~# cat /sys/kernel/
0
root@alp9:~# kdump-config status
current state : Not ready to kdump
root@alp9:~# dmesg | grep -i crash
[ 0.000000] Reserving 2048MB of memory at 128MB for crashkernel (System RAM: 102400MB)
[ 0.000000] Kernel command line: BOOT_IMAGE=
root@alp9:~#
== Comment: #3 - Hari Krishna Bathini <email address hidden> - 2015-06-02 07:29:23 ==
The following upstream commit fixes this issue:
---
commit d1932cd592e2a6a
Author: Anton Blanchard <email address hidden>
Date: Tue Dec 2 10:59:40 2014 +1100
kexec/fs2dt: Use slurp_file_len to avoid partial read of files
The OPAL firmware is going to embed its symbol map in the device tree.
The size is large enough to be more than a page, and it takes
multiple reads to get the whole file. This is because sysfs uses
the seq_file helpers which do a page at a time.
Unfortunately fs2dt has no handling for short reads and we die with:
unrecoverable error: short read from"/proc/
This patch uses the slurp_file_len helper which does the right thing.
It moves the explicit open of the file further down for
add_
We should convert both of these to use the buffer provided by
slurp_file_len at some stage.
Signed-off-by: Anton Blanchard <email address hidden>
Signed-off-by: Simon Horman <email address hidden>
---
This patch applies cleanly on the kexec-tools version 1:2.0.6-0ubuntu2.1 on Ubuntu 14.04.2.
Thanks
Hari
Related branches
tags: | added: architecture-ppc64le bugnameltc-125712 severity-critical targetmilestone-inin--- |
affects: | ubuntu → makedumpfile (Ubuntu) |
summary: |
- kdump service fails to start + kdump service fails to start on Power8 |
tags: |
added: targetmilestone-inin14043 verification-done removed: targetmilestone-inin--- verification-needed |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1461078/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]