Crashkernel parameter is not available

Bug #1555159 reported by bugproxy
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned
makedumpfile (Ubuntu)
Invalid
Undecided
Louis Bouchard
s390-tools (Ubuntu)
Fix Released
Low
Unassigned
zipl-installer (Ubuntu)
Fix Released
High
Skipper Bug Screeners

Bug Description

== Comment: #0 - Ekaterina Teplova <email address hidden> - 2016-02-26 04:20:25 ==
Crashkernel parameter is not available after installation
Blocker for kdump on z

I do not see crashkernel:
root@boeblingen:/kate# cat /proc/iomem
00000000-ffffffff : System RAM
  00000000-007aff1d : Kernel code
  007aff1e-00b895ef : Kernel data
  00cd7000-00da5253 : Kernel bss
--------------------------------------------------------------------------------------------------------------
root@boeblingen:/usr/lib# cat /etc/zipl.conf
[defaultboot]
defaultmenu = menu

:menu
target = /boot
1 = ubuntu
2 = old
default = 1
prompt = 1
timeout = 10

[ubuntu]
target = /boot
image = /boot/vmlinuz
ramdisk = /boot/initrd.img
parameters = root=UUID=ac48e371-97e9-4261-9e5e-d1a5cdc404e1

[old]
target = /boot
image = /boot/vmlinuz.old
ramdisk = /boot/initrd.img.old
parameters = root=UUID=ac48e371-97e9-4261-9e5e-d1a5cdc404e1
optional = 1

== Comment: #5 - Ekaterina Teplova <email address hidden> - 2016-03-07 16:40:40 ==

== Comment: #7 - Gary M. Gaydos <email address hidden> - 2016-03-08 14:45:49 ==
From /var/log/kern.log

Mar 7 15:27:36 s83lp62 kernel: [ 0.340487] Linux version 4.4.0-10-generic (buildd@z13-027) (gcc version 5.3.1 20160225 (Ubuntu 5.3.1-10ubuntu2) ) #25-Ubuntu SMP Wed Mar 2 14:56:49 UTC 2016 (Ubuntu 4.4.0-10.25-generic 4.4.3)

Mar 7 15:27:36 s83lp62 kernel: [ 0.360889] Kernel command line: root=UUID=9d2bf7bc-77c4-48b8-a9b9-d99e218447aa BOOT_IMAGE=0

From /var/log/apt/history.log kexec and crash get installed

Start-Date: 2016-03-07 15:32:24
Commandline: apt-get install kexec-tools
Requested-By: kate (1000)
Install: kexec-tools:s390x (2.0.10-1ubuntu1)
End-Date: 2016-03-07 15:32:25

Start-Date: 2016-03-07 15:32:31
Commandline: apt-get install crash
Requested-By: kate (1000)
Install: binutils:s390x (2.26-5ubuntu1, automatic), crash:s390x (7.1.4-1ubuntu1)
End-Date: 2016-03-07 15:32:32

From /var/log/syslog

Mar 7 15:32:25 s83lp62 systemd[1]: Started ACPI event daemon.
Mar 7 15:32:25 s83lp62 systemd[1]: Starting LSB: Execute the kexec -e command to reboot system...
Mar 7 15:32:25 s83lp62 systemd[1]: Started LSB: Execute the kexec -e command to reboot system.
Mar 7 15:32:25 s83lp62 systemd[1]: Reloading.
Mar 7 15:32:25 s83lp62 systemd[1]: Started ACPI event daemon.
Mar 7 15:32:25 s83lp62 systemd[1]: Reloading.
Mar 7 15:32:25 s83lp62 systemd[1]: Started ACPI event daemon.
Mar 7 15:32:25 s83lp62 systemd[1]: Starting LSB: Load kernel image with kexec...
Mar 7 15:32:25 s83lp62 systemd[1]: Started LSB: Load kernel image with kexec.
Mar 7 15:32:25 s83lp62 systemd[1]: Reloading.
Mar 7 15:32:25 s83lp62 systemd[1]: Started ACPI event daemon.

Ekaterina (Kate),
As a test, please reboot and then paste the output of
a) cat /proc/iomem
b) cat /proc/cmdline
c) cat /etc/zipl.conf

Putting in needinfo state to <email address hidden> . I would like a simple test. Reboot and check crashkernel parameter again before we mirror to Canonical.

Thanks, Gary

== Comment: #8 - Ekaterina Teplova <email address hidden> - 2016-03-08 15:59:18 ==
System was rebooted
after reboot:

login as: root
root@9.152.162.62's password:
Welcome to Ubuntu Xenial Xerus (development branch) (GNU/Linux 4.4.0-11-generic s390x)

 * Documentation: https://help.ubuntu.com/

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

root@s83lp62:~# cat /proc/iomem
00000000-ffffffff : System RAM
  00000000-007b8bf5 : Kernel code
  007b8bf6-00b9561f : Kernel data
  00ce1000-00daf253 : Kernel bss
root@s83lp62:~# cat /proc/cmdline
root=UUID=3b36e951-4843-419a-8a92-f985d70ec5b0 BOOT_IMAGE=0
root@s83lp62:~# cat /etc/zipl.conf
[defaultboot]
defaultmenu = menu

:menu
target = /boot
1 = ubuntu
2 = old
default = 1
prompt = 1
timeout = 10

[ubuntu]
target = /boot
image = /boot/vmlinuz
ramdisk = /boot/initrd.img
parameters = root=UUID=3b36e951-4843-419a-8a92-f985d70ec5b0

[old]
target = /boot
image = /boot/vmlinuz.old
ramdisk = /boot/initrd.img.old
parameters = root=UUID=3b36e951-4843-419a-8a92-f985d70ec5b0
optional = 1

Revision history for this message
bugproxy (bugproxy) wrote : sosreport - no crashkernel in zipl.conf

Default Comment by Bridge

tags: added: architecture-s39064 bugnameltc-137974 severity-critical targetmilestone-inin1604
Changed in ubuntu:
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
Gary Gaydos (gmgaydos)
affects: ubuntu → kexec-tools (Ubuntu)
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

I presume you mean that "parameters =" in /etc/zipl.conf should have crashkernel=auto set.

Note that on ubuntu, we do not enable crashkernel by default, but we do enable it upon installing kdump packages.

On the other hand, unlike other architectures we do not actually re-generate /etc/zipl.conf from e.g. configs and kernels on disk. Thus I am inclined to add crashkernel=auto by default. Louis Bouchard, what do you think?

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

@Gary Gaydos

Please do not assign skipper screener bugs to packages, instead please let canonical / skeeper screeners to assign them to the correct packages.

affects: kexec-tools (Ubuntu) → zipl-installer (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in makedumpfile (Ubuntu):
status: New → Confirmed
Changed in s390-tools (Ubuntu):
status: New → Confirmed
Changed in zipl-installer (Ubuntu):
status: New → Confirmed
Revision history for this message
Louis Bouchard (louis) wrote :

Hi,

The crashkernel parameter is added when the "linux-crashdump" metapackage is install.

linux-crashdump depends on kdump-tools which in turns depends on kexec-tools.

Maybe this should be adapted to z as I don't know how the linux kernel is brought in and linux-crashdump is a metapackage of the linux kernel package.

Kind regards,

...Louis

Changed in linux-meta (Ubuntu):
status: New → Confirmed
Brad Figg (brad-figg)
affects: linux-meta (Ubuntu) → linux (Ubuntu)
Changed in makedumpfile (Ubuntu):
assignee: nobody → Louis Bouchard (louis-bouchard)
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

New d-i based installations will receive crash-kernel parameter by default, via zipl-installer changes.

Changed in zipl-installer (Ubuntu):
status: Confirmed → Fix Committed
Changed in linux (Ubuntu):
status: Confirmed → Invalid
Changed in makedumpfile (Ubuntu):
status: Confirmed → Invalid
Changed in s390-tools (Ubuntu):
importance: Undecided → Low
Changed in zipl-installer (Ubuntu):
importance: Undecided → High
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

s390-tools package will upgrade existing installs to gain the crashkernel parameter, as a one time upgrade only. E.g. subsequently a system administrator is free to add/remove/modify the parameter to their liking.

Changed in s390-tools (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package zipl-installer - 0.0.32ubuntu2

---------------
zipl-installer (0.0.32ubuntu2) xenial; urgency=medium

  * Enable crashkernel=128M paramemter for d-i installs by default. LP:
    #1555159

 -- Dimitri John Ledkov <email address hidden> Fri, 18 Mar 2016 17:45:45 +0000

Changed in zipl-installer (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package s390-tools - 1.34.0-0ubuntu2

---------------
s390-tools (1.34.0-0ubuntu2) xenial; urgency=medium

  * Upgrade /etc/zipl.conf to include crashkernel parameter by default
    (LP: #1555159)

 -- Dimitri John Ledkov <email address hidden> Fri, 18 Mar 2016 17:58:20 +0000

Changed in s390-tools (Ubuntu):
status: Fix Committed → 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.