<font size=2 face="sans-serif">We ran into issues where "yum update"
updated the centos-release RPM, which in turn would push updated .repos
to /etc/yum.repos.d/.  This would cause a similar issue to the errors
described.</font><br><br><font size=2 face="sans-serif">The solution we came up with, was to
put the following in the post section of the default kickstart:  If
there is a better idea, I am all ears.<br><br>mkdir -p /some/where/</font><br><font size=2 face="sans-serif">echo "reposdir=" /some/where/"
>> /etc/yum.conf</font><br><br><br><font size=2 face="sans-serif">Some benefits, by doing this has been
that 3rd party vendor apps that install their own /etc/yum.repos.d/ will
not cause any delays or issues with running yum commands (if they cannot
reach the site).  If the client is able to reach the site, then a
request process will move the 3rd party .repo in /some/where. </font><br><br><font size=2 face="sans-serif">- Thanks</font><br><br><br><br><br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">Jan Hutař <jhutar@redhat.com></font><br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">Emmett Hogan <ehogan@gmail.com></font><br><font size=1 color=#5f5f5f face="sans-serif">Cc:      
 </font><font size=1 face="sans-serif">spacewalk-list@redhat.com</font><br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">02/24/2016 01:29 AM</font><br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">Re: [Spacewalk-list]
rhn_check fails</font><br><font size=1 color=#5f5f5f face="sans-serif">Sent by:    
   </font><font size=1 face="sans-serif">spacewalk-list-bounces@redhat.com</font><br><hr noshade><br><br><br><tt><font size=2>This email originated from outside of the company.
 Please use discretion if opening attachments or clicking on links.<br><br>On 2016-02-23 22:45 -0800, Emmett Hogan wrote:<br>>   Forgive me if this is a silly question, but I finally got a
bare metal<br>>   system to build from my Spacewalk server and wanted to push
some extra<br>>   packages to it.  The request queued up like it should,
then eventually<br>>   failed with a python error.  In doing some digging, it
was trying to<br>>   resolve [1]mirrorlist.centos.org.  I don't understand
why it would be<br>>   trying to go back to centos for the packages....I thought that
it would<br>>   go to my Spacewalk server for all it's updates.<br>>   I even tried running:<br>>   # rhn_check<br>>   Could not retrieve mirrorlist<br>>   [2]</font></tt><a href="http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=st"><tt><font size=2>http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=st</font></tt></a><tt><font size=2><br>>   ock error was<br>>   14: curl#6 - "Could not resolve host: [3]mirrorlist.centos.org;
Unknown<br>>   error"<br>>   I checked /etc/sysconfig/rhn/up2date and it references my spacewalk<br>>   host:<br>>   serverURL=[4]</font></tt><a href=https://192.168.67.5/XMLRPC><tt><font size=2>https://192.168.67.5/XMLRPC</font></tt></a><tt><font size=2><br>>   I know I've apparently screwed up something, somewhere, but
I cannot<br>>   seem to find the answer anywhere.<br>>   Any help would be greatly appreciated.<br>>   -Emmett<br>><br>>References<br>><br>>   1. </font></tt><a href=http://mirrorlist.centos.org/><tt><font size=2>http://mirrorlist.centos.org/</font></tt></a><tt><font size=2><br>>   2. </font></tt><a href="http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock"><tt><font size=2>http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock</font></tt></a><tt><font size=2><br>>   3. </font></tt><a href=http://mirrorlist.centos.org/><tt><font size=2>http://mirrorlist.centos.org/</font></tt></a><tt><font size=2><br>>   4. </font></tt><a href=https://192.168.67.5/XMLRPC><tt><font size=2>https://192.168.67.5/XMLRPC</font></tt></a><tt><font size=2><br><br>Hello,<br>to view the actual traceback:<br><br>  # less /var/log/up2date<br><br>And if you see client trying to reach mirrorlist.centos.org, check<br>if you did not left some repos behind on the client:<br><br>  # yum repolist<br>  # cat /etc/yum.repos.d/*.repo<br><br>Regards,<br>Jan<br><br><br><br>-- <br>Jan Hutar     Systems Management QA<br>jhutar@redhat.com     Red Hat, Inc.<br><br>_______________________________________________<br>Spacewalk-list mailing list<br>Spacewalk-list@redhat.com<br></font></tt><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><tt><font size=2>https://www.redhat.com/mailman/listinfo/spacewalk-list</font></tt></a><tt><font size=2><br></font></tt><br><BR>
<BR>
<BR>
**<BR>
<BR>
<BR>
<BR>
This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient.  Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law.  If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.<BR>
<BR>
**<BR>