<div dir="ltr">Hi All,<div> Could someone help me with this issue?</div><div><br></div><div>Jason</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 26, 2015 at 10:40 AM, Jason Calafiore <span dir="ltr"><<a href="mailto:jason.calafiore@gmail.com" target="_blank">jason.calafiore@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">    Hi Robert,<div> I've been looking at this solution and I ran into an issue on step 3</div><div>3) Call the script: spacewalk-create-yumrepo.py (Which I installed in /usr/local/bin)<br><br>   /usr/local/bin/spacewalk-create-yumrepo.py -s <SW IP ADDR> -u admin -p xxxx -c <SW channel name> -d /var/www/html/pub/<dir>/<software><br></div><div><br></div><div><br></div><div><div>/usr/local/bin/spacewalk-create-yumrepo.py -s 156.80.52.242 -u ghs_admin -p "password" -c Spacewalk-Client -d /^Cr/www/html/pub/spacewalk-client/packages</div></div><div><br></div><div>When I run this I get the following...</div><div><br></div><div><div>xmlrpclib.Fault: <Fault -210: 'redstone.xmlrpc.XmlRpcFault: No such channel: Spacewalk-Client'></div></div><div><br></div><div><br></div><div>Do I have to create a channel first in spacewalk gui or should I be referring to my CentOS base channel?</div><div><br></div><div>Thank you,</div><div>Jason</div><div><br></div><div><hr>  <ul><li><em>From</em>: "Boyd, Robert" <Robert Boyd peoplefluent com></li><li><em>To</em>: "spacewalk-list redhat com" <spacewalk-list redhat com></li><li><em>Subject</em>: Re: [Spacewalk-list] Registering Clients in Spacewalk 2.2</li><li><em>Date</em>: Fri, 20 Feb 2015 17:39:02 +0000</li></ul>  <hr>  <table width="100%"><tbody><tr><td><div><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:11pt">I think you might consider using </span>spacewalk-create-yumrepo.py to do this.</p><p class="MsoNormal"> </p><p class="MsoNormal">If you have a channel or subchannel with the Spacewalk Client packages you can use that python script to create a yum style repo front end to the Spacewalk content.  Then you can set up a temporary spacewalk-client repo config for yum on your clients that will point to the repo address on your Spacewalk server.</p><p class="MsoNormal"> </p><p class="MsoNormal">Here’s a fairly recent message from the list that discusses the create yum repo process:</p><p class="MsoNormal"> </p><p class="MsoNormal" style="margin-right:0in;margin-bottom:12pt;margin-left:0.5in">Thank you a lot: I install it and works fine to me!</p><p class="MsoNormal" style="margin-right:0in;margin-bottom:12pt;margin-left:0.5in">I'm thinking of improve it to include parameters to define "last" or "all" packages, and also to perform createrepo automatically on changed repos. If I do it, I'll submit to original author.<br><br></p><p class="MsoNormal" style="margin-left:0.5in"> </p><p class="MsoNormal" style="margin-left:0.5in">2014-10-07 13:27 GMT-03:00 Glen Collins <<a href="mailto:glenc2004%20comcast%20net" rel="nofollow" target="_blank">glenc2004 comcast net</a>>:</p><p class="MsoNormal" style="margin-left:0.5in"><br> Oh, one thing I need to mention. I did have to make one change to the code in the script so it would link all rpm's. The code from GIT actually only links the latest in the channel and not everything. So the change I made was....<br><br> Change "spacewalk.channel.software.listLatestPackages" to "spacewalk.channel.software.listAllPackages". See below....<br><br> -----------------------------------------<br><br>     ## for pkg in spacewalk.channel.software.listLatestPackages(spacekey, options.channel):<br>     for pkg in spacewalk.channel.software.listAllPackages(spacekey, options.channel):<br>         det=spacewalk.packages.getDetails(spacekey, pkg['id'])<br>         fn=det['path'].split("/")[-1]<br>         if not os.path.exists("%s/packages/%s" % (options.directory, fn)):<br>             os.symlink("%s/%s" % (options.satdir, det['path']), "%s/packages/%s" % (options.directory, fn))<br>     spacewalk.auth.logout(spacekey)<br><br> -----------------------------------------</p><p class="MsoNormal" style="margin-left:0.5in"><br> Regards,<br><br> Glen Collins<br><br> ----- Original Message -----<br><br> Hi Fabiano,<br><br>   Are you asking if you can create a pseudo repo in Spacewalk that can mimic a YUM repository via HTTP? If that is what you are asking, then yes it is possible. And I have done it so I can install my spacewalk clients using the yum method. Here is what you do...<br><br> 1) Download and install: <a href="https://github.com/angrox/spacewalk-api-scripts" rel="nofollow" target="_blank"> https://github.com/angrox/spacewalk-api-scripts</a><br><br> 2) Create directory under: /var/www/html/pub/<software name> (this is accessible using the URL <a href="http://%3Csw/" rel="nofollow" target="_blank">http://<SW</a> IP ADDR>/pub/<software name>)<br><br> 3) Call the script: spacewalk-create-yumrepo.py (Which I installed in /usr/local/bin)<br><br>    /usr/local/bin/spacewalk-create-yumrepo.py -s <SW IP ADDR> -u admin -p xxxx -c <SW channel name> -d /var/www/html/pub/<dir>/<software><br><br> 4) Run createrepo against the new directory: createrepo /var/www/html/pub/<dir>/<software><br><br> 5) And then configure you client using the stand YUM file in /etc/yum.repos.d<br><br> 6) Verify you can see it using your web browser. You may run into permissions issue accessing the repomd.xml in the repodata directory. What I do is a chmod -R 755 on the entire /var/www/html/pub/<dir>/<software> so I don't have any issues with he web server accessing the files.<br><br> What this is doing is creating links to the actual RPM's in /var/satellite/..... so when you access it via HTTP it looks exactly like a standard YUM repo. So you don't have to have any extra copies of any of the RPM's taking up extra space. Now while I only have done this for the SW client install, I can assume since it works for the client and it should work for everything include the OS, EPEL and all the other channels you may have in SW.<br><br> Regards,<br><br> Glen Collins<br><br> ----- Original Message -----<br> Fabiano Martins wrote:<br> % Hi all,<br> %<br> % I have a Spacewalk 2.2 server running on my environment.<br> %<br> % But some machines aren't registered on Spacewalk (RHELs registered on RHN,<br> % CentOSs that sysadmin don't like to register on Spacewalk, etc.).<br> %<br> % Once my Spacewalk server already have a mirror of external repos (EPEL,<br> % VMWare, etc.), I would that these exceptions not use my Internet link when<br> % installing/updating packages.<br> %<br> % Have a form to offer these repos mirrored into Spacewalk as a "pure http"<br> % repo?<br><br> Hello Fabiano,<br><br> Unfortunately Spacewalk can't do this.<br><br> % I know that I can mirror external repos via rsync and "re-mirror" to<br> % Spacewalk via spacewalk-repo-sycnc, but on this case I would use 2 times<br> % each file on disk...<br> %<br> % Thanks,<br> %<br> % Fabiano Martins<br><br> Regards,<br><br> --<br> Michael Mráka<br> Satellite Engineering, Red Hat<br><br> _______________________________________________<br> Spacewalk-list mailing list<br><a href="mailto:Spacewalk-list%20redhat%20com" rel="nofollow" target="_blank">Spacewalk-list redhat com</a><br><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="nofollow" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:11pt"></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:11pt"> </span></p><p class="MsoNormal"><b><span style="color:rgb(38,38,38);font-family:Calibri,sans-serif;font-size:11pt">Robert Boyd</span></b></p><p class="MsoNormal"><b><span style="color:rgb(38,38,38);font-family:Calibri,sans-serif;font-size:11pt">Sr. Systems Engineer </span></b></p><p class="MsoNormal"><b><span style="color:rgb(38,38,38);font-family:Calibri,sans-serif;font-size:11pt">PeopleFluent</span></b></p><p class="MsoNormal"><span style="color:rgb(38,38,38);font-family:Calibri,sans-serif;font-size:11pt">p. <a href="tel:919-645-2972" value="+19196452972" target="_blank">919-645-2972</a> | c. <a href="tel:919-306-4681" value="+19193064681" target="_blank">919-306-4681</a></span></p><p class="MsoNormal"><span style="color:rgb(38,38,38);font-family:Calibri,sans-serif;font-size:11pt">e. <b><a href="mailto:robert%20boyd%20peoplefluent%20com" rel="nofollow" target="_blank">Robert Boyd PeopleFluent com</a></b></span></p><p class="MsoNormal"><b><span style="color:rgb(38,38,38);font-family:Calibri,sans-serif;font-size:11pt"> </span></b></p><p class="MsoNormal"><a href="http://www.peoplefluent.com/" rel="nofollow" target="_blank"><span style="text-decoration:none"><img width="150" height="62" alt="http://mktg.peoplefluent.com/rs/peopleclick/images/140410_PF4colorLOGOx150.png" src="https://www.redhat.com/archives/spacewalk-list/2015-February/pngNJNr4VnDrm.png" border="0"></span></a><span style="color:rgb(31,73,125)"></span></p><p class="MsoNormal"><span style="color:rgb(40,38,100)"><a href="http://www.peoplefluent.com/" rel="nofollow" target="_blank"><b><span style="color:rgb(242,114,34);text-decoration:none">Click here</span></b></a> <b>to experience the power of the new PeopleFluent Mirror Suite ™</b></span><span style="color:rgb(31,73,125)"><br> Visit: <a href="http://www.peoplefluent.com/" rel="nofollow" target="_blank"><span style="text-decoration:none">www.peoplefluent.com</span></a> | Read: <a href="http://peoplefluent.com/resources/peoplefluent-blog" rel="nofollow" target="_blank"><span style="text-decoration:none">PeopleFluent Blog</span></a> | Follow: <a href="http://twitter.com/peoplefluent" rel="nofollow" target="_blank"><span style="text-decoration:none">@PeopleFluent</span></a></span><span style="color:rgb(40,38,100)"></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:11pt"> </span></p><div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) currentcolor currentcolor;padding:3pt 0in 0in"><p class="MsoNormal"><b><span style="font-family:Tahoma,sans-serif;font-size:10pt">From:</span></b><span style="font-family:Tahoma,sans-serif;font-size:10pt"> spacewalk-list-bounces redhat com [mailto:<a href="mailto:spacewalk-list-bounces" target="_blank">spacewalk-list-bounces</a> redhat com] <b>On Behalf Of </b>Alexander Innes<br><b>Sent:</b> Thursday, February 19, 2015 6:21 PM<br><b>To:</b> spacewalk-list redhat com<br><b>Subject:</b> Re: [Spacewalk-list] Registering Clients in Spacewalk 2.2</span></p></div><p class="MsoNormal"> </p><div><p class="MsoNormal">1) centos is virtually same as centos, its needed for both</p><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">2) yup</p></div></div><div><div class="h5"><div><p class="MsoNormal"> </p><div><p class="MsoNormal">On 19 February 2015 at 22:28, Jason Calafiore <<a href="mailto:jason%20calafiore%20gmail%20com" rel="nofollow" target="_blank">jason calafiore gmail com</a>> wrote:</p><div><p class="MsoNormal"><span style="font-family:Arial,sans-serif">Hi All,</span></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif"> I am testing Spacewalk and trying to register my first CentOS client. I am following the directions on the main documentation.</span></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif"> </span></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif"><a href="https://fedorahosted.org/spacewalk/wiki/RegisteringClients" rel="nofollow" target="_blank">https://fedorahosted.org/spacewalk/wiki/RegisteringClients</a></span></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif"> </span></p><p class="MsoNormal"><span style="font-family:Arial,sans-serif">According to the directions I need to install on the client OS</span></p><p class="MsoNormal"> </p><ul type="disc"><li class="MsoNormal"><span style="font-family:Arial,sans-serif">Install spacewalk-client-repo RPM</span></li><li class="MsoNormal"><span style="font-family:Arial,sans-serif">Do a yum </span><span style="color:black;font-family:Arial,sans-serif;font-size:10pt;background:rgb(247,247,247)">install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin</span></li></ul><p class="MsoNormal"><span style="color:black;font-family:Arial,sans-serif;font-size:10pt;background:rgb(247,247,247)"> </span></p><ol type="1" start="1"><li class="MsoNormal"><span style="color:black;font-family:Arial,sans-serif;font-size:10pt;background:rgb(247,247,247)">Are those yum packages needed for CentOS or only RHEL?</span></li><li class="MsoNormal"><span style="color:black;font-family:Arial,sans-serif;font-size:10pt;background:rgb(247,247,247)">The client OS is not connected to the internet, hence the reason I am want to use spacewalk to do patch management. So the main issue is how to get the necessary RPM’s on the client. I’ve downloaded the spacewalk-client-repo on the Spacewalk server and added it /var/www/html so that I could download and install it from the client. Is this what others have done to deal with this situation?</span></li></ol><p> </p><p class="MsoNormal"><span style="color:black;font-family:Arial,sans-serif;font-size:10pt;background:rgb(247,247,247)">Thank you,</span></p><p class="MsoNormal"><span style="color:black;font-family:Arial,sans-serif;font-size:10pt;background:rgb(247,247,247)">Jason</span></p></div><p class="MsoNormal"><br></p></div></div></div></div></div></td></tr></tbody></table><br></div></div>
</blockquote></div><br></div>