[Spacewalk-list] spacewalk cobbler issue

Johnny Mirza JMirza at fairfaxdigital.com.au
Fri Feb 26 00:03:06 UTC 2010


Thanks Jeremy,

when you mean at the beginning of the %post, I can't figure out how to do that via the spacealk gui.
I can manually edit the kickstart file in /var/lib/cobbler... but it gets overwritten everytime a change is made to the profile.

Any help would be great..

Thanks again


From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Jeremy Mueller
Sent: Friday, 26 February 2010 9:59 AM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] spacewalk cobbler issue

We had the same problem with a proxy and the CentOS mirrors.  At the beginning of our %post section we put in this sed statement:

sed -i 's/^\[\([^]]*\)\]/[\1]\nenabled=0/g' /etc/yum.repos.d/CentOS-*

Good luck,

Jeremy

From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Johnny Mirza
Sent: Thursday, February 25, 2010 3:46 PM
To: watts at jayhawks.net; spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] spacewalk cobbler issue

Thanks Jeffrey, I didn't' think to look there.

But I think I found the issue and I am hoping someone has a simple solution.
It looks like the 10 min delay at the post section is because yum is trying to access the Centos default mirrors (created in the /etc/yum.repos.d/* directory as part of yum). Access will not be allowed because the server is behind a proxy.

Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=addons error was
[Errno 4] IOError: <urlopen error (110, 'Connection timed out')>
Loaded plugins: fastestmirror, kmod, rhnplugin
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=addons error was
[Errno 4] IOError: <urlopen error (110, 'Connection timed out')>

Do you have any idea how to disable this?

thanks


The information contained in this e-mail message and any accompanying files is or may be confidential. If you are not the intended recipient, any use, dissemination, reliance, forwarding, printing or copying of this e-mail or any attached files is unauthorised. This e-mail is subject to copyright. No part of it should be reproduced, adapted or communicated without the written consent of the copyright owner. If you have received this e-mail in error please advise the sender immediately by return e-mail or telephone and delete all copies. Fairfax does not guarantee the accuracy or completeness of any information contained in this e-mail or attached files. Internet communications are not secure, therefore Fairfax does not accept legal responsibility for the contents of this message or attached files.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20100226/2b0b3595/attachment.htm>


More information about the Spacewalk-list mailing list