Improve sysctl handling on kdump-tools
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
kdump-tools (Debian) |
New
|
Unknown
|
||||
kdump-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | |||
makedumpfile (Ubuntu) | ||||||
Xenial |
Opinion
|
Medium
|
Guilherme G. Piccoli | |||
Bionic |
In Progress
|
Medium
|
Guilherme G. Piccoli | |||
Eoan |
Won't Fix
|
Medium
|
Guilherme G. Piccoli | |||
Focal |
In Progress
|
Medium
|
Guilherme G. Piccoli | |||
Groovy |
Fix Released
|
Medium
|
Guilherme G. Piccoli |
Bug Description
[impact]
Documentation, and past behavior, for kdump-tools was that the KDUMP_SYSCTL variable in the /etc/default/
[test case]
install linux-crashdump (and kdump-tools).
Edit the /etc/default/
KDUMP_SYSCTL=
reboot, or unload/reload kdump, to pick up the changes to the file.
Check if the panic_on_warn param is set:
$ cat /proc/sys/
0
the problem does not seem to be with sysctl, as manually calling it does work:
$ KDUMP_SYSCTL=
$ cat /proc/sys/
0
$ sudo sysctl -w $KDUMP_SYSCTL
kernel.
kernel.
$ cat /proc/sys/
1
[regression potential]
TBD
Changed in makedumpfile (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in makedumpfile (Ubuntu Xenial): | |
assignee: | nobody → Guilherme G. Piccoli (gpiccoli) |
Changed in makedumpfile (Ubuntu Bionic): | |
assignee: | nobody → Guilherme G. Piccoli (gpiccoli) |
Changed in makedumpfile (Ubuntu Eoan): | |
assignee: | nobody → Guilherme G. Piccoli (gpiccoli) |
Changed in makedumpfile (Ubuntu Focal): | |
assignee: | nobody → Guilherme G. Piccoli (gpiccoli) |
importance: | Low → Medium |
Changed in makedumpfile (Ubuntu Eoan): | |
importance: | Undecided → Medium |
Changed in makedumpfile (Ubuntu Bionic): | |
importance: | Undecided → Medium |
Changed in makedumpfile (Ubuntu Xenial): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in makedumpfile (Ubuntu Bionic): | |
status: | New → Confirmed |
Changed in makedumpfile (Ubuntu Eoan): | |
status: | New → Confirmed |
Changed in makedumpfile (Ubuntu Focal): | |
status: | Triaged → Confirmed |
Changed in makedumpfile (Debian): | |
status: | Unknown → New |
Changed in makedumpfile (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in makedumpfile (Ubuntu Xenial): | |
status: | Confirmed → Opinion |
Changed in makedumpfile (Ubuntu Bionic): | |
status: | Confirmed → In Progress |
Changed in makedumpfile (Ubuntu Eoan): | |
status: | Confirmed → In Progress |
Changed in makedumpfile (Ubuntu Focal): | |
status: | Confirmed → In Progress |
tags: | added: sts |
affects: | makedumpfile (Debian) → kdump-tools (Debian) |
no longer affects: | kdump-tools (Ubuntu Xenial) |
no longer affects: | kdump-tools (Ubuntu Bionic) |
no longer affects: | kdump-tools (Ubuntu Eoan) |
no longer affects: | kdump-tools (Ubuntu Focal) |
no longer affects: | kdump-tools (Ubuntu Groovy) |
no longer affects: | makedumpfile (Ubuntu) |
Also to clarify, manually unloading/reloading kdump doesn't set the params properly:
ubuntu@ makedumpfile- e:~$ grep . /proc/sys/ kernel/ panic_on_ warn makedumpfile- e:~$ sudo kdump-config show panic_on_ oops=1 kernel. panic_on_ warn=1 lib/kdump/ vmlinuz: symbolic link to /boot/vmlinuz- 5.3.0-10- generic lib/kdump/ initrd. img: symbolic link to /var/lib/ kdump/initrd. img-5.3. 0-10-generic
0
ubuntu@
DUMP_MODE: kdump
USE_KDUMP: 1
KDUMP_SYSCTL: kernel.
KDUMP_COREDIR: /var/crash
crashkernel addr: 0xaa000000
/var/
kdump initrd:
/var/
current state: ready to kdump
kexec command: line="BOOT_ IMAGE=/ boot/vmlinuz- 5.3.0-10- generic root=PARTUUID= 7975ae09- 1bd6-4c5f- b460-5f5218cc23 27 ro console=tty1 console=ttyS0 systemd. unit=kdump- tools-dump. service nr_cpus=1 irqpoll nousb ata_piix. prefer_ ms_hyperv= 0" --initrd= /var/lib/ kdump/initrd. img /var/lib/ kdump/vmlinuz makedumpfile- e:~$ sudo kdump-config unload makedumpfile- e:~$ sudo kdump-config load kdump/vmlinuz kdump/initrd. img makedumpfile- e:~$ grep . /proc/sys/ kernel/ panic_on_ warn
/sbin/kexec -p --command-
ubuntu@
* unloaded kdump kernel
ubuntu@
* Creating symlink /var/lib/
* Creating symlink /var/lib/
* loaded kdump kernel
ubuntu@
0