<div dir="ltr">I'm assuming you're talking about this bug <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1445428">https://bugzilla.redhat.com/show_bug.cgi?id=1445428</a> with apache version</div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-19 10:10 GMT-06:00 Isaac Hailperin <span dir="ltr"><<a href="mailto:Isaac.Hailperin@lcsystems.ch" target="_blank">Isaac.Hailperin@lcsystems.ch</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you Alex. It turns out my understanding was incomplete. Disabling repos is indeed an option, and knowing the spacewalk repos come via the rhn yum plugin helps to understand how it all works together.<br>
<br>
In the end it was a bug (back from April 2017 ...) that keps me from using the repos - I had to roll back httpd on the spacewalk server. After that, all is fine again.<br>
<br>
Isaac<br>
<br>
-----Ursprüngliche Nachricht-----<br>
Von: <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.<wbr>com</a> [mailto:<a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-<wbr>bounces@redhat.com</a>] Im Auftrag von Alexandru Raceanu<br>
Gesendet: Donnerstag, 15. Februar 2018 23:26<br>
An: <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
Betreff: Re: [Spacewalk-list] Fix yum repo definitions on spacewalk clients<br>
<div class="HOEnZb"><div class="h5"><br>
I've been running following in the kickstart %post (non-chroot) to disable all repos except the ones from Spacewalk without any issues for couple of years now.<br>
----snip----<br>
sed -i -e '/reposdir=.*/d' -e '/cachedir.*/ s,$,\nreposdir=/etc/yum.repos.<wbr>d/disabled,' /mnt/sysimage/etc/yum.conf<br>
----snip----<br>
<br>
I hope this helps...<br>
<br>
/Alex<br>
<br>
<br>
From: "Isaac Hailperin" <<a href="mailto:Isaac.Hailperin@lcsystems.ch">Isaac.Hailperin@lcsystems.ch</a>><br>
To: "<a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a>" <<a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a>><br>
Sent: Monday, February 12, 2018 10:51:55 AM<br>
Subject: [Spacewalk-list] Fix yum repo definitions on spacewalk clients<br>
<br>
<br>
<br>
Dear list,<br>
<br>
<br>
<br>
I have spacewalk 2.4 installed on a CentOS 7 host, and manage CentOS 7 servers with it. Now I found that in /etc/yum.repos.d/ all configured repositories point to Internet repos. Which is not really how it should be, hosts should use the internal spacewalk repos. I assume this is due to packages like centos-release* being installed. I am just taking over this environment, so I am not 100% sure how all this came together.<br>
<br>
<br>
<br>
Nonetheless, I need to fix this. If I just delete the packages to which the repo definitions belong to, I am left without any repositories (I have checked - none point to the internal repo, all belong to some installed package). As the clients are assigned to certain channels, I would like to add the corresponding repositories again.<br>
<br>
<br>
<br>
So far I have tried re-registering the client with<br>
<br>
<br>
<br>
# rhnreg_ks --serverUrl=<a href="https://YourSpacewalk.example.org/XMLRPC" rel="noreferrer" target="_blank">https://<wbr>YourSpacewalk.example.org/<wbr>XMLRPC</a> --sslCACert=/usr/share/rhn/<wbr>RHN-ORG-TRUSTED-SSL-CERT --activationkey=<key-with-<wbr>rhel-custom-channel> --force<br>
<br>
No success. I have also removed all channel subscriptions, and then added them again, no success.<br>
<br>
<br>
<br>
What would be the easiest, or most reliable way to get the correct repo definitions back?<br>
<br>
<br>
<br>
Maybe my assumption is wrong, but since the spacewalk client tools have knowledge of the subscribed channels, I assume that there is also a way to get the corresponding repository definitions in some automated way. What would that be?<br>
<br>
<br>
<br>
Any hint or feedback is appreciated.<br>
<br>
<br>
<br>
Regards,<br>
Isaac<br>
<br>
______________________________<wbr>_________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/spacewalk-<wbr>list</a><br>
<br>
______________________________<wbr>_________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/spacewalk-<wbr>list</a><br>
</div></div><br>______________________________<wbr>_________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/spacewalk-<wbr>list</a><br></blockquote></div><br></div>