[Spacewalk-list] spacewalk cobbler issue

Jeffrey Watts jeffrey.w.watts at gmail.com
Wed Feb 24 17:18:20 UTC 2010


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.

Jeffrey.

On Tue, Feb 23, 2010 at 10:53 PM, Johnny Mirza <JMirza at fairfaxdigital.com.au
> wrote:

>  Hi,
>
>
>
> I have successfully been using spacewalk for a few months now but have
> recently started using cobbler/kickstart.
>
> 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.
>
> 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.
>
>
>
> 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.
>
>
>
> 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
>
>
>
> rhnreg_ks --serverUrl=https://server/XMLRPC
> --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
> --activationkey=1-e0cc1b592eb4611c5ca6cb774aab27ed,1-67e122a4439b70a9518a1dfe40682036<https://server/XMLRPC--sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT--activationkey=1-e0cc1b592eb4611c5ca6cb774aab27ed,1-67e122a4439b70a9518a1dfe40682036>
>
> # end Red Hat management server registration
>
> # end cobbler snippet
>
> rhn_check
>
>
>
> ) >> /root/ks-post.log 2>&1
>
> # MOTD
>
> echo >> /etc/motd
>
> echo "Spacewalk kickstart on $(date +'%Y-%m-%d')" >> /etc/motd
>
> echo >> /etc/motd
>
>
>
> # end of generated kickstart file
>
>
>
> %post --interpreter /bin/bash
>
> (
>
> if [ -d "/etc/yum.repos.d" ]; then
>
>  for file in $(find /etc/yum.repos.d/ -type f -iname 'CentOS*.repo')
>
>  do
>
>   sed -i '/^gpgcheck=.*$/aenabled=0' ${file}
>
>   sed -i 'x; G; /^\(.*\)\n\1$/ d; g; p; d' ${file} # to clean up those
> pesky duplicate lines
>
>  done
>
> fi
>
> [ -f "/etc/yum/pluginconf.d/rhnplugin.conf" ] && sed -i -e 's/^gpgcheck =
> 1$/gpgcheck = 0/g' /etc/yum/pluginconf.d/rhnplugin.conf
>
>
>
> Is there a way to turn off gpg checking from the spacewalk server, rather
> than from the client?
>
>
>
> Thanks for your help
>
>
-- 

"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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20100224/64b7b123/attachment.htm>


More information about the Spacewalk-list mailing list