Bug 1270676 - koan incorrectly parses s390x kernel command-line parameters whose value contains "=" sign
Summary: koan incorrectly parses s390x kernel command-line parameters whose value cont...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Client
Version: 570
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Lukáš Hellebrandt
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-12 06:21 UTC by Jan Hutař
Modified: 2015-12-10 13:22 UTC (History)
3 users (show)

Fixed In Version: cobbler-2.0.7-65
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-10 13:22:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2614 0 normal SHIPPED_LIVE Red Hat Network Tools rhncfg and koan bug fix update 2015-12-10 18:21:54 UTC

Description Jan Hutař 2015-10-12 06:21:24 UTC
Description of problem:
koan incorrectly parses s390x kernel command-line parameters whose value contains "equals" sign and creates invalid entry in /etc/zipl.conf.


Version-Release number of selected component (if applicable):
koan-2.0.7-54.el7sat.noarch


How reproducible:
always


Steps to Reproduce:
1. Create KS profile with "Kernel Options" containing something like:
   rd.znet=qeth,0.0.8000,0.0.8001,0.0.8002,layer2=1,portname=...,portno=0
2. Attempt to reprovision a system and before system goes down, check
   content of /etc/zipl.conf


Actual results:
On "parameters" line, item "rd.znet" is truncated to "qeth,0.0.8000,0.0.8001,0.0.8002,layer2" (notice that it is truncated on first "=" sign appearance)


Expected results:
Should not be truncated because that option seems to be required for RHEL7 provisioning.


Additional info:
This was found by jdobes when working on bug 1199214

Comment 5 Lukáš Hellebrandt 2015-11-10 12:00:38 UTC
Verified with koan-2.0.7-65 on s390x client with RHEL7.

Only works for sat5.7; in sat5.6, it is impossible to even fill the fields with some s390x parameters which is a separate bug.

1) Install koan-2.0.7-65 on the client
2) Register the system to a satellite
3) Assign a system a provisioning entitlement
4) Create a s390x kickstart (in my case RHEL7.1)
5) Set kernel options field to the correct parameters, including some with a "=" symbol in value.
6) Schedule a kickstart to the client
7) On client, run "rhn_check -vv && shutdown -c && vim /etc/zipl.conf" and confirm the parameters (particularly the one with "=") were parsed correctly (no part of the value is missing)
8) Reboot the client and verify it kickstarted properly

Comment 8 errata-xmlrpc 2015-12-10 13:22:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2614.html


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