Bug 673388 - When provisioning a RHEL6 using static network interface, kickstart is not included in initrd.img
Summary: When provisioning a RHEL6 using static network interface, kickstart is not in...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Provisioning
Version: 540
Hardware: All
OS: All
medium
medium
Target Milestone: ---
Assignee: Milan Zázrivec
QA Contact: Tomas Lestach
URL:
Whiteboard:
Depends On:
Blocks: sat541-blockers 703385
TreeView+ depends on / blocked
 
Reported: 2011-01-28 00:12 UTC by Marcelo Moreira de Mello
Modified: 2018-11-14 15:07 UTC (History)
9 users (show)

Fixed In Version: cobbler-2.0.7-8
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 703385 (view as bug list)
Environment:
Last Closed: 2011-06-17 02:43:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Marcelo Moreira de Mello 2011-01-28 00:12:03 UTC
Description of problem:

When provisioning a RHEL6 using static network interface, kickstart is not included in initrd.img

Version-Release number of selected component (if applicable):
Red Hat Network Satellite 5.4

How reproducible:
100%

Steps to Reproduce:

1.) kickstart rhel6 x86_64 system with @Base, add provisioning entitlement and rhn tools child channel.

2.) from the satellite web ui, schedule a kickstart with same kickstart, selecting the "Use static interface" option from the "Advanced Configuration" button.

3.) rhn_check -vvv on the client system. See that the kickstart file is "ks.cfg" in /boot/grub/grub.conf:

title kick1296004684
	kernel /vmlinuz ks=file:ks.cfg ksdevice=link kssendmac lang= text 
	initrd /initrd.img

4.) Reboot the system, and see error message, "Error opening kickstart file ks.cfg: No such file or directory."

  
Actual results:

As kickstart were not present in initrd.img, anaconda shows error message 

Expected results:

Anaconda finish the installation normally

Additional info:

==> running rhn_check -v 

[root@localhost boot]# rhn_check  -v
Preserve files! : ['/etc/hosts', '/etc/motd', '/root/.ssh/authorized_keys']
- looking for Cobbler at http://satellite-server.example.com/cobbler_api
- reading URL: http://satellite-server.example.com/cblr/svc/op/ks/system/satellite-server.example.com:2:guest6-ks
install_tree: http://satellite-server.example.com/ty/5wV8dTlf
downloading initrd initrd.img to /boot/initrd.img
url=http://satellite-server.example.com/cobbler/images/ks-rhel-x86_64-server-6-60/initrd.img
- reading URL: http://satellite-server.example.com/cobbler/images/ks-rhel-x86_64-server-6-60/initrd.img
downloading kernel vmlinuz to /boot/vmlinuz
url=http://satellite-server.example.com/cobbler/images/ks-rhel-x86_64-server-6-60/vmlinuz
- reading URL: http://satellite-server.example.com/cobbler/images/ks-rhel-x86_64-server-6-60/vmlinuz
- ['/sbin/grubby', '--add-kernel', '/boot/vmlinuz', '--initrd', '/boot/initrd.img', '--args', '"ksdevice=link lang= console=ttyS0,115200 text ks=file:ks.cfg kssendmac "', '--make-default', '--title=kick1296190211']
- reboot to apply changes
CMD: ['/usr/sbin/merge-rd.sh', '/boot/initrd.img', '/boot/initrd.img', '/tmp/ks-tree-shadow'] 
/usr/share/rhn/spacewalkkoan/spacewalkkoan.py:282: DeprecationWarning: The popen2 module is deprecated.  Use the subprocess module.
  import popen2


==> /etc/grub.conf

title kick1296190211
	kernel /vmlinuz ksdevice=link lang= console=ttyS0,115200 text ks=file:ks.cfg kssendmac 
	initrd /initrd.img


==> looking initrd file 

[root@localhost boot]# zcat  initrd.img  | file -
/dev/stdin: ASCII cpio archive (SVR4 with no CRC)
[root@localhost boot]# 

 No kickstart found!! 

[root@localhost lala]# zcat  /boot/initrd.img  | cpio -itv | grep ks.cfg
110590 blocks

Comment 1 Marcelo Moreira de Mello 2011-01-28 14:33:08 UTC
Hello, 

Just to share that commit c6aa4ccd2a0212e1d41949064ea577087d1c1cac in upstream spacewalk git fixed the typo when importing subprocess python module. 

/usr/share/rhn/spacewalkkoan/spacewalkkoan.py:282: DeprecationWarning: The
popen2 module is deprecated.  Use the subprocess module.
  import popen2


PS: the commit c6aa4ccd2a0212e1d41949064ea577087d1c1cac not fix the BZ

Comment 3 Milan Zázrivec 2011-03-08 12:18:26 UTC
This problem is reproducible if you're re-provisioning a RHEL-6 system only
(i.e. not RHEL-5 and earlier) and using a static network interface.

See http://git.fedorahosted.org/git/?p=cobbler;a=commitdiff;h=370b79c9

Comment 13 Dimitar Yordanov 2011-06-08 08:28:13 UTC
VERIFIED on Stage.
cobbler-2.0.7-11.el6sat.noarch
spacewalk-koan-0.2.7-7.el6sat

Comment 14 Clifford Perry 2011-06-17 02:43:26 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

https://rhn.redhat.com/errata/RHEA-2011-0875.html


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