Bug 1321638 - kickstart installation will not accept special 'crashkernel' parameters in bootloader line
Summary: kickstart installation will not accept special 'crashkernel' parameters in bo...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kexec-tools
Version: 7.3
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: kdump team
QA Contact: Kernel General QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-28 17:42 UTC by Abhijeet Sadawarte
Modified: 2019-10-10 11:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-29 08:44:21 UTC
Target Upstream Version:


Attachments (Terms of Use)
installation logs from reproducer system (1.92 MB, application/x-tar)
2016-03-28 17:54 UTC, Abhijeet Sadawarte
no flags Details
ifcfg.log extracted from anaconda_logs.tar.gz (1.09 KB, text/plain)
2016-03-28 19:35 UTC, David Shea
no flags Details
journal.log extracted from anaconda_logs.tar.gz (1.38 MB, text/plain)
2016-03-28 19:35 UTC, David Shea
no flags Details
X.log extracted from anaconda_logs.tar.gz (16.85 KB, text/plain)
2016-03-28 19:35 UTC, David Shea
no flags Details
packaging.log extracted from anaconda_logs.tar.gz (250.17 KB, text/plain)
2016-03-28 19:35 UTC, David Shea
no flags Details
anaconda.log extracted from anaconda_logs.tar.gz (15.96 KB, text/plain)
2016-03-28 19:35 UTC, David Shea
no flags Details
storage.log extracted from anaconda_logs.tar.gz (135.49 KB, text/plain)
2016-03-28 19:35 UTC, David Shea
no flags Details
syslog extracted from anaconda_logs.tar.gz (76.05 KB, text/plain)
2016-03-28 19:35 UTC, David Shea
no flags Details
program.log extracted from anaconda_logs.tar.gz (45.39 KB, text/plain)
2016-03-28 19:35 UTC, David Shea
no flags Details

Description Abhijeet Sadawarte 2016-03-28 17:42:21 UTC
Description of problem:

During the RHEL 7.2 kickstart installation, anaconda installer will not take special crashkernel parameter into account. 
e.g 'bootloader --location=mbr --append="crashkernel=512M-2G:64M,2G-:128M"'

And the resulted system will have 'crashkernel=auto' in '/proc/cmdline'. Also kdump service will be in failed status.

Version-Release number of selected component (if applicable):
RHEL 7.2

How reproducible:
100%, 'crashkernel=512M-2G:64M,2G-:128M' parameter will not taken into account by anaconda installer 

Steps to Reproduce:
1. install RHEL 7.2 using below kickstart file:

~~~~~~
[root@kickstart pub]# egrep -v "^$|^#" rhel7.cfg 
lang en_US
graphical
cdrom
keyboard us
network  --bootproto=dhcp --device=eth0
timezone America/New_York --isUtc
rootpw redhat
bootloader --append="rhgb quiet crashkernel=512M-2G:64M,2G-:128M" --location=mbr --boot-drive=sda --driveorder=sda
zerombr
clearpart --all --initlabel
autopart
auth --passalgo=sha512 --useshadow
selinux --enforcing
firewall --disabled
firstboot --disable
%packages
@base
@gnome-desktop
@input-methods
@legacy-x
@remote-desktop-clients
@fonts
@desktop-debugging
@x11
%end
~~~~~~


Actual results: 

- installed system should take crashkernel value as mentioned in the kickstart file but it takes 'auto' instead 

- outputs from reproducer system:

~~~
[root@localhost ~]# cat /proc/cmdline 
BOOT_IMAGE=/vmlinuz-3.10.0-327.el7.x86_64 root=/dev/mapper/rhel-root ro crashkernel=auto rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet LANG=en_US.UTF-8

[root@localhost ~]# egrep -v "^$|^#" /etc/kdump.conf
path /var/crash
core_collector makedumpfile -l --message-level 1 -d 31

[root@localhost ~]# systemctl status kdump.service 
● kdump.service - Crash recovery kernel arming
   Loaded: loaded (/usr/lib/systemd/system/kdump.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2016-03-28 22:06:59 IST; 2h 2min ago
  Process: 983 ExecStart=/usr/bin/kdumpctl start (code=exited, status=1/FAILURE)
 Main PID: 983 (code=exited, status=1/FAILURE)

Mar 28 22:06:59 localhost.localdomain dracut[3858]: drwxr-xr-x   2 root     root            0 Mar 28 22:06 var/lib/lldpad
Mar 28 22:06:59 localhost.localdomain dracut[3858]: lrwxrwxrwx   1 root     root           11 Mar 28 22:06 var/lock -> ../run/lock
Mar 28 22:06:59 localhost.localdomain dracut[3858]: lrwxrwxrwx   1 root     root            6 Mar 28 22:06 var/run -> ../run
Mar 28 22:06:59 localhost.localdomain dracut[3858]: ========================================================================
Mar 28 22:06:59 localhost.localdomain kdumpctl[983]: No memory reserved for crash kernel.
Mar 28 22:06:59 localhost.localdomain kdumpctl[983]: Starting kdump: [FAILED]
Mar 28 22:06:59 localhost.localdomain systemd[1]: kdump.service: main process exited, code=exited, status=1/FAILURE
Mar 28 22:06:59 localhost.localdomain systemd[1]: Failed to start Crash recovery kernel arming.
Mar 28 22:06:59 localhost.localdomain systemd[1]: Unit kdump.service entered failed state.
Mar 28 22:06:59 localhost.localdomain systemd[1]: kdump.service failed.
~~~


Expected results:

- installed system should take crashkernel value as 'crashkernel=512M-2G:64M,2G-:128M'


Additional info:

Attaching installation logs from reproducer system

Comment 3 Abhijeet Sadawarte 2016-03-28 17:54:07 UTC
Created attachment 1140957 [details]
installation logs from reproducer system

Comment 4 David Shea 2016-03-28 19:35:32 UTC
Created attachment 1141001 [details]
ifcfg.log extracted from anaconda_logs.tar.gz

Comment 5 David Shea 2016-03-28 19:35:38 UTC
Created attachment 1141002 [details]
journal.log extracted from anaconda_logs.tar.gz

Comment 6 David Shea 2016-03-28 19:35:40 UTC
Created attachment 1141003 [details]
X.log extracted from anaconda_logs.tar.gz

Comment 7 David Shea 2016-03-28 19:35:43 UTC
Created attachment 1141004 [details]
packaging.log extracted from anaconda_logs.tar.gz

Comment 8 David Shea 2016-03-28 19:35:45 UTC
Created attachment 1141005 [details]
anaconda.log extracted from anaconda_logs.tar.gz

Comment 9 David Shea 2016-03-28 19:35:48 UTC
Created attachment 1141006 [details]
storage.log extracted from anaconda_logs.tar.gz

Comment 10 David Shea 2016-03-28 19:35:51 UTC
Created attachment 1141007 [details]
syslog extracted from anaconda_logs.tar.gz

Comment 11 David Shea 2016-03-28 19:35:53 UTC
Created attachment 1141008 [details]
program.log extracted from anaconda_logs.tar.gz

Comment 12 David Shea 2016-03-28 19:43:24 UTC
The kdump anaconda addon handles the crashkernel parameter, reassigning

Comment 13 Dave Young 2016-03-29 08:43:43 UTC
Hi,

The addon only support below crashkernel= params:
crashkernel=auto
crashkernel=Xm

For the complicated format, we recomend to set after installation finished.

BTW, any special reason to use the format you mentioned?

Xm means X mb

Thanks
Dave


Note You need to log in before you can comment on or make changes to this bug.