Bug 496295

Summary: kickstart installed machines do not register in spacewalk - solution included!
Product: [Community] Spacewalk Reporter: Geert G <centos.ml.gg>
Component: ServerAssignee: Justin Sherrill <jsherril>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 0.5CC: cperry, jsherril
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-10 12:05:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 456554    

Description Geert G 2009-04-17 16:32:54 UTC
Description of problem:
When kickstart installing a server with spacewalk it does not automatically register the machine with spacewalk.
In the ks-post.log on the kickstarted machine you can see that it does a wget of rhnlib into /tmp/rhn_rpms/ but afterwards tries to install /tmp/rhn_rpms/optional/rhnlib*

looking in git i saw this file:
http://git.fedorahosted.org/git/spacewalk.git?p=spacewalk.git;a=blob;f=java/code/src/com/redhat/rhn/manager/kickstart/KickstartFormatter.java;h=b0f09fa3c7ea57ff48eb04a54a349b1e91f9c9c4;hb=HEAD

you can see this is hardcoded in this file.

The output in %post of the kickstart file should look like this:


wget -P /tmp/rhn_rpms/optional http://spacewalk.example.com:80/download/package/26171069417ca55058d3a66a240880ced67d6c46/0/2/981/libxml2-python-2.6.26-2.1.2.7.i386.rpm http://spacewalk.example.com:80/download/package/2e9baaa44ea1132336e8ba9d4e53d3065ea0ccd2/0/2/2369/pyOpenSSL-0.6-1.p24.7.2.2.i386.rpm http://spacewalk.example.com:80/download/package/bcb625ead9fb059bd49e9268be3b4297fc5400f8/0/2/6052/rhnlib-2.5.10-1.el5.noarch.rpm
#
cd /tmp/rhn_rpms
#
wget -P /tmp/rhn_rpms http://spacewalk.example.com:80/download/package/a90ce621f946b068ce6ffaaa723b7f0d13162307/0/2/2783/rhnsd-4.6.1-1.el5.i386.rpm http://spacewalk.example.com:80/download/package/bf31c7591b38577a667448bdff1497a778bb0b87/0/2/6148/yum-rhn-plugin-0.5.4-1.el5.noarch.rpm http://spacewalk.example.com:80/download/package/9f577e790b643d3a94ee3aa4555a30bad0cab3d8/0/2/5975/rhn-setup-0.4.24-1.el5.noarch.rpm http://spacewalk.example.com:80/download/package/c975120e6c6a0eabed221eed7867bf9431f389c7/0/2/6161/rhn-check-0.4.24-1.el5.noarch.rpm http://spacewalk.example.com:80/download/package/2e9b0a4a1deb149c4675f22f0188343bf9a76b4d/0/2/6034/rhn-client-tools-0.4.24-1.el5.noarch.rpm
#
rpm -Uvh --replacepkgs --replacefiles /tmp/rhn_rpms/optional/pyOpenSSL* /tmp/rhn_rpms/optional/rhnlib* /tmp/rhn_rpms/optional/libxml2-python*


How reproducible:
-make a kickstart install
-this machine will not register itself inside spacewalk
-have a look inside ks-post.log
-you'll see this error:  error: File not found by glob: /tmp/rhn_rpms/optional/rhnlib*


Expected results:
when i changed the lines by hand -as pasted above- it installs rhnlib correctly and immediately registers my machine inside spacewalk.

Comment 1 Justin Sherrill 2009-05-27 15:23:18 UTC
this is probably fixed by 502853

Comment 2 Miroslav Suchý 2009-09-10 12:05:53 UTC
Spacewalk 0.6 released