Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1321638

Summary: kickstart installation will not accept special 'crashkernel' parameters in bootloader line
Product: Red Hat Enterprise Linux 7 Reporter: Abhijeet Sadawarte <asadawar>
Component: kexec-toolsAssignee: kdump team <kdump-team-bugs>
Status: CLOSED NOTABUG QA Contact: Kernel General QE <kernel-general-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: alexander.strachan, ruyang
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-29 08:44:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
installation logs from reproducer system
none
ifcfg.log extracted from anaconda_logs.tar.gz
none
journal.log extracted from anaconda_logs.tar.gz
none
X.log extracted from anaconda_logs.tar.gz
none
packaging.log extracted from anaconda_logs.tar.gz
none
anaconda.log extracted from anaconda_logs.tar.gz
none
storage.log extracted from anaconda_logs.tar.gz
none
syslog extracted from anaconda_logs.tar.gz
none
program.log extracted from anaconda_logs.tar.gz none

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