ISST-LTE:Ubuntu 15.04: "Cannot open `/boot/vmlinuz'" error message on reboot after kdump is enabled

Bug #1416515 reported by bugproxy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kexec-tools (Ubuntu)
Fix Released
Medium
Chris J Arges

Bug Description

== Comment: #0 - Sowmya G. Parvathi <email address hidden> - 2015-01-29 12:43:30 ==
I have a lpar installed with ubuntu 15.04.I enabled kdump and on reboot getting error message "Cannot open `/boot/vmlinuz`".

Steps to recreate:

1. Install ubuntu 15.04 (netboot)
2. sudo passwd root
3. apt-get update, apt-get install openssh-server, apt-get nfs-common
4. service ssh restart
5. apt-get install linux-crashdump:

 ??????????????????????????? Configuring kexec-tools ??????????????????????????
 ? ?
 ? If you choose this option, a system reboot will trigger a restart into a ?
 ? kernel loaded by kexec instead of going through the full system boot ?
 ? loader process. ?
 ? ?
 ? Should kexec-tools handle reboots? ?
 ? ?
 ? <Yes> <No> ?
 ? ?
 ?????????????????????????????????????????????????????????????????????????????

Selected "Yes"

6. vi /etc/default/grub.d/kexec-tools.cfg (set crashkernel=1024M)
7. update-grub
8. reboot

 .wait-for-state stop/waiting
 * Starting userspace bootsplash utility [ OK ]
Cannot open `/boot/vmlinuz': No such file or directory
 * Loading new kernel image into memory... [fail]
 * Stopping uuidd generator uuidd [ OK ]
 * Asking all remaining processes to terminate... [ OK ]
 * All processes ended within 1 seconds... [ OK ]
 * Stopping NSM status monitor [ OK ]
rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"
 * Stopping RPC portmapper replacement [ OK ]
 * Stopping D-Bus system message bus [ OK ]
 * Stopping NFSv4 id <-> name mapper [ OK ]
 * Stopping configure virtual network devices [ OK ]
 * Stopping configure network device security [ OK ]
 * Deactivating swap... [ OK ]
 * Will now restart
[ 20.328664] reboot: Restarting system

lpar will be up, but i am not sure of this error.

uname -a
Linux pole2lp3 3.18.0-11-generic #12-Ubuntu SMP Fri Jan 23 22:45:52 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux

Contact Info: <email address hidden>

== Comment: #2 - David Heller <email address hidden> - 2015-01-29 14:19:43 ==
On ppc, it should be looking for a file "vmlinux", not "vmlinuz". The former is the filename on the ppc distributions, the latter on amd64.

Can you try editing the grub.cfg to see if that fixes it?

if so, it's possible that whichever package modified the grub.cfg here, cannot handle the ppc case and need to be patched

== Comment: #3 - Sowmya G. Parvathi <email address hidden> - 2015-01-30 05:50:32 ==
I think the issue is with /etc/default/kexec file and not grub.cfg.
----------------------------------------------------------------------------------------------------
kexec:

# Defaults for kexec initscript
# sourced by /etc/init.d/kexec and /etc/init.d/kexec-load

# Load a kexec kernel (true/false)
LOAD_KEXEC=true

# Kernel and initrd image
KERNEL_IMAGE="/boot/vmlinuz"
INITRD="/boot/initrd.img"

# If empty, use current /proc/cmdline
APPEND=""

# Load the default kernel from grub config (true/false)
USE_GRUB_CONFIG=false

----------------------------------------------------------------------------------------------------

Here KERNEL_IMAGE="/boot/vmlinuz" instead of "/boot/vmlinux". I changed vmlinuz to vmlinux, did a reboot and issue did not occur.

bugproxy (bugproxy)
tags: added: architecture-ppc64le bugnameltc-121224 severity-medium targetmilestone-inin---
Dave Heller (hellerda)
affects: ubuntu → linux-meta (Ubuntu)
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2015-01-30 19:21 EDT-------
Looks like the kexec package needs some tweaks for ppc. Thx.

Brad Figg (brad-figg)
affects: linux-meta (Ubuntu) → linux (Ubuntu)
tags: added: kernel-da-key
Chris J Arges (arges)
Changed in kexec-tools (Ubuntu):
assignee: nobody → Chris J Arges (arges)
no longer affects: linux (Ubuntu)
Changed in kexec-tools (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
Chris J Arges (arges) wrote :
Revision history for this message
Chris J Arges (arges) wrote :

The following patch works for me, and I tested on a ppc64el system. I'll upload into vivid, soon. Should this be fixed for Trusty/Utopic as well?

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

This bug was fixed in the package kexec-tools - 1:2.0.7-5ubuntu2

---------------
kexec-tools (1:2.0.7-5ubuntu2) vivid; urgency=medium

  * Adjust kexec-tools for systems that use vmlinux. (LP: #1416515)
 -- Chris J Arges <email address hidden> Fri, 30 Jan 2015 14:31:10 -0600

Changed in kexec-tools (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2015-02-02 16:28 EDT-------
(In reply to comment #9)
>
> The following patch works for me, and I tested on a ppc64el system. I'll
> upload into vivid, soon. Should this be fixed for Trusty/Utopic as well?

Yes, please! Since the kernel filename is the same there, I expect the same problem exists in previous releases.

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2015-02-27 13:52 EDT-------
Looks like it is fixed in the daily build now, please give a retest:

$ wget -qO- http://ports.ubuntu.com/dists/vivid/main/binary-ppc64el/Packages.bz2 | bunzip2 | grep kexec| grep Filename
Filename: pool/main/k/kexec-tools/kexec-tools_2.0.7-5ubuntu2_ppc64el.deb

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2015-03-11 17:57 EDT-------
(In reply to comment #15)
> Tested with Ubuntu 15.04 daily build 20150311 and problem is fixed now

Thanks, Krishnaja (and Sowmya)!

(and Canonical ;- )

Closing.

tags: added: targetmilestone-inin1504
removed: targetmilestone-inin---
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.