Have you looked in your ks-post.log in the root directory of the system?  That would be the first place to look.  Make sure you have that logging enabled in the kickstart.<br><br>Jeffrey.<br><br><div class="gmail_quote">On Tue, Feb 23, 2010 at 10:53 PM, Johnny Mirza <span dir="ltr"><<a href="mailto:JMirza@fairfaxdigital.com.au">JMirza@fairfaxdigital.com.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-AU">

<div>

<p class="MsoNormal">Hi,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I have successfully been using spacewalk for a few months
now but have recently started using cobbler/kickstart.</p>

<p class="MsoNormal">The profiles have been setup to the correct group/activation
keys and a boot iso has been created, I have created several installs on vmware
and the install goes through fine, up until the post script part.</p>

<p class="MsoNormal">For some reason it is hanging on the post section for about
10 mins, then it looks like what ever it was trying to do times out and it
continues on and the guest is built successfully. </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I want to know how I can fix that 10-15 min post delay,
doing some investigation I noticed that there are two processes that seem to
stick out. They are the “rhn_register …. “ and the “rhn_check”
processes.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I have a feeling that my gpg keys are not setup correctly
and this may  be what kickstart is timing out on. Below a copy of the
kickstart file that is running and I have a section in there to disable gpg checking,
but that is after the rhn_check part of the install</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;">rhnreg_ks --serverUrl=<a href="https://server/XMLRPC--sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT--activationkey=1-e0cc1b592eb4611c5ca6cb774aab27ed,1-67e122a4439b70a9518a1dfe40682036" target="_blank">https://server/XMLRPC
--sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
--activationkey=1-e0cc1b592eb4611c5ca6cb774aab27ed,1-67e122a4439b70a9518a1dfe40682036</a></span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;"># end Red Hat management server registration</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;"># end cobbler snippet</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;">rhn_check</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; color: red;">                                                                </span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;">) >> /root/ks-post.log 2>&1</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;"># MOTD</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;">echo >> /etc/motd</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;">echo "Spacewalk kickstart on $(date +'%Y-%m-%d')" >>
/etc/motd</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;">echo >> /etc/motd</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;"> </span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;"># end of generated kickstart file</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;"> </span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;">%post --interpreter /bin/bash</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;">(</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;">if [ -d "/etc/yum.repos.d" ]; then</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;"> for file in $(find /etc/yum.repos.d/ -type f -iname
'CentOS*.repo')</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;"> do</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;">  sed -i '/^gpgcheck=.*$/aenabled=0' ${file}</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;">  sed -i 'x; G; /^\(.*\)\n\1$/ d; g; p; d' ${file} # to clean
up those pesky duplicate lines</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;"> done</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;">fi</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 9pt; color: red;">[ -f "/etc/yum/pluginconf.d/rhnplugin.conf" ] &&
sed -i -e 's/^gpgcheck = 1$/gpgcheck = 0/g'
/etc/yum/pluginconf.d/rhnplugin.conf</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"> </p>

<p class="MsoNormal">Is there a way to turn off gpg checking from the spacewalk
server, rather than from the client?</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Thanks for your help</p><br clear="all"></div></div></blockquote></div><br>-- <br><br>"He that would make his own liberty secure must guard even his enemy from oppression; for if he violates this duty he establishes a precedent that will reach to himself." -- Thomas Paine<br>