<div dir="ltr"><div><div><div>Hi,<br><br></div>    I have the same problem with my ubuntu 12.04 LTS clients and Centos 6.6/6.7 clients they still attempting to download from the public repos.<br></div>So what should I do to disable the public repo update.<br><br></div>Best Regards,<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-11 23:07 GMT+01:00 Sean Johnson <span dir="ltr"><<a href="mailto:sean@ttys0.net" target="_blank">sean@ttys0.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is also something to put into your configuration management system, assuming you're running one.<br>
<br>
For my environment, have a CFEngine promise that removes the files in /etc/yum/repos.d only if the system is registered with Spacewalk.<span class=""><br>
<br>
On 4 May 2016, at 7:18, William H. ten Bensel wrote:<br>
<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Just a side note, next time the package centos-release is updated, it is<br>
going to run into the same issue again.   The redhat-release does not<br>
include /etc/yum.repos.d/* files but the centos-release does.<br>
<br>
 Refer to the yum.conf modification in this post, as a work around.<br>
<br>
<a href="https://www.redhat.com/archives/spacewalk-list/2016-April/msg00004.html" rel="noreferrer" target="_blank">https://www.redhat.com/archives/spacewalk-list/2016-April/msg00004.html</a><br>
<br>
- Thanks and good luck<br>
<br>
<br>
<br>
From:   Jan Dobes <<a href="mailto:jdobes@redhat.com" target="_blank">jdobes@redhat.com</a>><br>
To:     <a href="mailto:spacewalk-list@redhat.com" target="_blank">spacewalk-list@redhat.com</a><br>
Date:   05/04/2016 06:45 AM<br>
Subject:        Re: [Spacewalk-list] Spacewalk Force Internal Satellite<br>
Only<br>
Sent by:        <a href="mailto:spacewalk-list-bounces@redhat.com" target="_blank">spacewalk-list-bounces@redhat.com</a><br>
<br>
<br>
<br></span><div><div class="h5">
This email originated from outside of the company.  Please use discretion<br>
if opening attachments or clicking on links.<br>
<br>
Try to do:<br>
<br>
# yum clean all<br>
<br>
Does it help?<br>
<br>
On 4.5.2016 07:34 Jeff Baldwin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
All,<br>
<br>
I am having some issues getting my spacewalk client to pull from my<br>
internal spacewalk repo.   Despite the system being registered with my<br>
spacewalk server, the client host is still attempting to download from<br>
the public repos.   I want updates to come from my internal satellite<br>
server, only.    Thank you in advance for your assistance.<br>
<br>
Server/Client:  Both Running CentOS 7<br>
Spacewalk Server Version:  2.4<br>
<br>
1 – I registered the client with my Spacewalk server successfully.   The<br>
client shows in the Spacewalk WebUI, and the inventory is current/good.<br>
<br>
2 – I have set all of my repos in /etc/yum.repos.d/* to enabled=0.<br>
<br>
3 – When I run ‘yum update’ on the client side, I am still seeing the<br>
the available updates are being detected on a public repo, and not my<br>
internal satellite server.<br>
<br>
4 – As this command shows, I am connected to the repo which I would like<br>
to pull updates from:<br>
<br>
[root@ansible yum.repos.d]# spacewalk-channel -l<br>
classic_centos7_latest<br>
<br>
5 – Here is the ‘yum repolist’ output showing that I am still connecting<br>
to public repos and that is where the updates are going to be pulled<br>
</blockquote>
from:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
[root@ansible yum.repos.d]# yum repolist<br>
Loaded plugins: fastestmirror, rhnplugin<br>
This system is receiving updates from RHN Classic or Red Hat Satellite.<br>
Loading mirror speeds from cached hostfile<br>
  * base: <a href="http://mirror.cogentco.com" rel="noreferrer" target="_blank">mirror.cogentco.com</a><br>
  * extras: <a href="http://centos.chicago.waneq.com" rel="noreferrer" target="_blank">centos.chicago.waneq.com</a><br>
  * updates: <a href="http://mirror.metrocast.net" rel="noreferrer" target="_blank">mirror.metrocast.net</a><br>
repo id<br>
          repo name<br>
                             status<br>
base/7/x86_64<br>
          CentOS-7 - Base<br>
                             9,007<br>
classic_centos7_latest<br>
         classic_centos_7.2.1511_latest<br>
                            9,007<br>
extras/7/x86_64<br>
          CentOS-7 - Extras<br>
                               265<br>
updates/7/x86_64<br>
         CentOS-7 - Updates<br>
                            1,405<br>
repolist: 19,684<br>
<br>
<br>
6 – Here is the ‘yum update’ output, showing that all available updates<br>
are going to be pulled from public repo:<br>
<br>
ependencies Resolved<br>
<br>
<br>
</blockquote>
=================================================================================================================================================================================<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  Package                                            Arch<br>
               Version<br>
Repository                         Size<br>
<br>
</blockquote>
=================================================================================================================================================================================<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Installing:<br>
  kernel                                             x86_64<br>
               3.10.0-327.13.1.el7<br>
updates                            33 M<br>
Updating:<br>
  NetworkManager                                     x86_64<br>
               1:1.0.6-29.el7_2<br>
  updates                           2.0 M<br>
  NetworkManager-libnm                               x86_64<br>
               1:1.0.6-29.el7_2<br>
  updates                           498 k<br>
  NetworkManager-team                                x86_64<br>
               1:1.0.6-29.el7_2<br>
  updates                           132 k<br>
  NetworkManager-tui                                 x86_64<br>
               1:1.0.6-29.el7_2<br>
  updates                           212 k<br>
  avahi-autoipd                                      x86_64<br>
               0.6.31-15.el7_2.1<br>
updates                            39 k<br>
<br>
*JeffBaldwin<br>
*<br>
<br>
<br>
<br>
  8335 Classic Drive<br>
  Charlotte, NC 28262<br>
  <a href="tel:800.368.1056" value="+18003681056" target="_blank">800.368.1056</a> /toll free<br>
/<br>
  <a href="tel:704.597.9015" value="+17045979015" target="_blank">704.597.9015</a> /main/<br>
know*classic*.com <<a href="http://www.knowclassic.com" rel="noreferrer" target="_blank">http://www.knowclassic.com</a>><br>
<br>
<br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
<br>
</blockquote>
<br>
-- <br>
Jan Dobes<br>
Satellite Engineering, Red Hat<br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><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>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
</div></div></blockquote><div class="HOEnZb"><div class="h5">
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></div></div></blockquote></div><br></div>