<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Alan,</span></div><div><span>Thank you again for your help!<br>
</span><span>I have done mrepo configuration, but failed at 'mrepo -uvvv' with lots of errors like:</span></div>
<div>---------------------------------------------------------------------------<br>
  <span></span></div>
<div><span>AttributeError: SafeTransport instance has no attribute '_use_datetime'<br>
mrepo: Mirroring failed for rhns:///rhel-i386-server-vt-5 with message:<br>Failed with return code: 256</span></div>
<div>---------------------------------------------------------------------------<br>
  <span></span></div>


<div><span></span><span>It looks like a datetime issue.</span></div>
<div><br>
  <span></span></div>
<div><span># date<br>
Fri Aug  3 15:27:10 EDT 2012</span></div>
<div><span># rpm -q rhpl<br>
rhpl-0.221-2.el6.rf.x86_64</span></div>
<div><br>
I've googled a lot but haven't found a solution yet. Any help will be greatly appreciated!<br><br></div><div>nz<br><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Alan Pittman <Alan.Pittman@publix.com><br> <b><span style="font-weight: bold;">To:</span></b> "'fnwsa@yahoo.com'" <fnwsa@yahoo.com>; "'spacewalk-list@redhat.com'" <spacewalk-list@redhat.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, August 3, 2012 9:24:43 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> RE: [Spacewalk-list] Repository URL?<br> </font> </div> <br><div id="yiv862426895">

 
 
<style><!--
#yiv862426895  
 _filtered #yiv862426895 {font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered #yiv862426895 {font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered #yiv862426895 {font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv862426895  
#yiv862426895 p.yiv862426895MsoNormal, #yiv862426895 li.yiv862426895MsoNormal, #yiv862426895 div.yiv862426895MsoNormal
        {margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"serif";}
#yiv862426895 h2
        {


margin-right:0in;

margin-left:0in;
font-size:18.0pt;
font-family:"serif";}
#yiv862426895 a:link, #yiv862426895 span.yiv862426895MsoHyperlink
        {
color:blue;
text-decoration:underline;}
#yiv862426895 a:visited, #yiv862426895 span.yiv862426895MsoHyperlinkFollowed
        {
color:purple;
text-decoration:underline;}
#yiv862426895 p.yiv862426895MsoAcetate, #yiv862426895 li.yiv862426895MsoAcetate, #yiv862426895 div.yiv862426895MsoAcetate
        {

margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"sans-serif";}
#yiv862426895 span.yiv862426895Heading2Char
        {


font-family:"serif";
color:#4F81BD;
font-weight:bold;}
#yiv862426895 p.yiv862426895msonormal, #yiv862426895 li.yiv862426895msonormal, #yiv862426895 div.yiv862426895msonormal
        {

margin-right:0in;

margin-left:0in;
font-size:12.0pt;
font-family:"serif";}
#yiv862426895 p.yiv862426895msochpdefault, #yiv862426895 li.yiv862426895msochpdefault, #yiv862426895 div.yiv862426895msochpdefault
        {

margin-right:0in;

margin-left:0in;
font-size:12.0pt;
font-family:"serif";}
#yiv862426895 span.yiv862426895msohyperlink
        {}
#yiv862426895 span.yiv862426895msohyperlinkfollowed
        {}
#yiv862426895 span.yiv862426895emailstyle17
        {}
#yiv862426895 span.yiv862426895heading2char
        {}
#yiv862426895 p.yiv862426895msonormal1, #yiv862426895 li.yiv862426895msonormal1, #yiv862426895 div.yiv862426895msonormal1
        {
margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"serif";}
#yiv862426895 span.yiv862426895msohyperlink1
        {
color:blue;
text-decoration:underline;}
#yiv862426895 span.yiv862426895msohyperlinkfollowed1
        {
color:purple;
text-decoration:underline;}
#yiv862426895 span.yiv862426895emailstyle171
        {
font-family:"sans-serif";
color:#1F497D;}
#yiv862426895 span.yiv862426895heading2char1
        {
font-family:"serif";
color:#4F81BD;
font-weight:bold;}
#yiv862426895 p.yiv862426895msochpdefault1, #yiv862426895 li.yiv862426895msochpdefault1, #yiv862426895 div.yiv862426895msochpdefault1
        {

margin-right:0in;

margin-left:0in;
font-size:10.0pt;
font-family:"serif";}
#yiv862426895 span.yiv862426895EmailStyle30
        {
font-family:"sans-serif";
color:#1F497D;}
#yiv862426895 span.yiv862426895BalloonTextChar
        {


font-family:"sans-serif";}
#yiv862426895 .yiv862426895MsoChpDefault
        {
font-size:10.0pt;}
 _filtered #yiv862426895 {
margin:1.0in 1.0in 1.0in 1.0in;}
#yiv862426895 div.yiv862426895WordSection1
        {}
--></style>

<div>
<div class="yiv862426895WordSection1">
<div class="yiv862426895MsoNormal"><span style="color:black;">Nick,</span></div> 
<div class="yiv862426895MsoNormal"><span style="color:black;">  Unfortunately, Spacewalk won’t/can’t connect to RHN. What mrepo will do is connect(logon) to RHN and pull all of the RPMs and place them in a series on directories. With the appropriate options, mrepo will then
 create a local repository which then can be used to populate the Spacewalk database.</span></div> 
<div class="yiv862426895MsoNormal"><span style="color:black;">  </span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">Follow the steps to install mrepo (if you haven’t already) and run the gensystemid script (should be one of the steps in the install doc). Once that’s done, you’ll have to create or update the mrepo.conf file.
 Here’s a portion of mine so that you have an idea what to configure:</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">root@taeps001 etc]# cat ./mrepo.conf</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">### Configuration file for mrepo</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">### The [main] section allows to override mrepo's default settings</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">### The mrepo-example.conf gives an overview of all the possible settings</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">[main]</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">srcdir = /clonefs   </span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">wwwdir = /var/www/mrepo</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">confdir = /etc/mrepo.conf.d</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">arch = i386 x86_64</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">mailto = root@localhost</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">smtp-server = localhost</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">rhnlogin = <rhnuserid>:<rhnpassword></span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">### Any other section is considered a definition for a distribution</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">### You can put distribution sections in /etc/mrepo.conf.d/</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">### Examples can be found in the documentation at:</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">### /usr/share/doc/mrepo-0.8.7/dists/.</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">[5Server-x86_64]</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">name = Red Hat Enterprise Server ($release) ($arch)</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">release = 5</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">arch = x86_64</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">metadata = repomd repoview</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">iso = /clonefs/5Server-x86_64/rhel-server-5.7-x86_64-dvd.iso</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">### Additional repositories</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">updates = rhns:///rhel-$arch-server-5</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;"># vt = rhns:///rhel-$arch-server-$repo-5</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">supplementary = rhns:///rhel-$arch-server-$repo-5</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;"># fastrack = rhns:///rhel-$arch-server-$repo-5</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;"># hts = rhns:///rhel-$arch-server-$repo-5</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">rhn-tools = rhns:///$repo-rhel-$arch-server-5</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">### RPMforge repository</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;"># rpmforge = rsync://apt.sw.be/pub/freshrpms/pub/dag/redhat/el$release/en/$arch/RPMS.dag/</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">#rpmforge = ftp://apt.sw.be/pub/dag/pub/redhat/el$release/en/$arch/RPMS.dag/</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">rpmforge = http://apt.sw.be/redhat/el$release/en/$arch/RPMS.dag/</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">### EPEL repository</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;"># EPEL = http://mirror.chpc.utah.edu/pub/epel/$release/$arch/</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">EPEL = http://mirror.metrocast.net/fedora/epel/5/x86_64/
</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">### ELrepo repository</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">elrepo = http://elrepo.org/linux/elrepo/el5/$arch/</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">#elrepo-testing = http://elrepo.org/linux/testing/el5/$arch/</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">### OpenVZ repositories</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">#ovzkernel = http://download.openvz.org/kernel/rhel5/</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">#ovztemplate = http://download.openvz.org/template/</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">#ovzutils = http://download.openvz.org/utils/</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">### Fedora EPEL packages (incompatible with RPMforge)</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">#epel = http://download.fedora.redhat.com/pub/epel/$release/$arch/</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">### Custom repository for your own RPM packages</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">mondo = http://www.mondorescue.org/ftp/rhel/5/x86_64</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">spacewalk = http://spacewalk.redhat.com/yum/1.7/RHEL/5/x86_64</span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv862426895MsoNormal"><span style="font-size:11.0pt;color:#1F497D;">  </span></div> 
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;">
<div class="yiv862426895MsoNormal"><b><span style="font-size:10.0pt;">From:</span></b><span style="font-size:10.0pt;"> fnwsa@yahoo.com [mailto:fnwsa@yahoo.com]
<br>
<b>Sent:</b> Friday, August 03, 2012 9:07 AM<br>
<b>To:</b> Alan Pittman; 'spacewalk-list@redhat.com'<br>
<b>Subject:</b> Re: [Spacewalk-list] Repository URL?</span></div> 
</div>
</div>
<div class="yiv862426895MsoNormal">  </div> 
<div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="color:black;">Hi Alan,</span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="color:black;">  </span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="color:black;">Thank you very much for your very helpful reply!!</span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="color:black;">  </span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="color:black;">My purpose is to patch all of our RHEL5x/6x systems, so I need to "</span><span style="font-size:11.0pt;color:#1F497D;">connect to RHN and download all of the available RPMS and populate
 your Spacewalk repository</span><span style="color:black;">" as you said. Please correct me if I am wrong here.</span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="color:black;">  </span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="color:black;">I've just installed mrepo, but still don't understand the whole picture. With mrepor's help, can Spacewalk connect directly to the RHN servers? What URL should be used in the Repository
 URL? Yes, I have RHN userid and password.</span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="color:black;">  </span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="color:black;">Have a nice day!</span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="color:black;">  </span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="color:black;">Nick</span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="color:black;">  </span></div> 
</div>
<div>
<div>
<div>
<div class="yiv862426895MsoNormal" style="text-align:center;background:white;" align="center">
<span style="font-size:10.0pt;color:black;">
<hr align="center" size="1" width="100%">
</span></div>
<div class="yiv862426895MsoNormal" style="background:white;"><b><span style="font-size:10.0pt;color:black;">From:</span></b><span style="font-size:10.0pt;color:black;"> Alan Pittman <<a rel="nofollow" ymailto="mailto:Alan.Pittman@publix.com" target="_blank" href="mailto:Alan.Pittman@publix.com">Alan.Pittman@publix.com</a>><br>
<b>To:</b> "'fnwsa@yahoo.com'" <<a rel="nofollow" ymailto="mailto:fnwsa@yahoo.com" target="_blank" href="mailto:fnwsa@yahoo.com">fnwsa@yahoo.com</a>>; "'spacewalk-list@redhat.com'" <<a rel="nofollow" ymailto="mailto:spacewalk-list@redhat.com" target="_blank" href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a>>
<br>
<b>Sent:</b> Thursday, August 2, 2012 9:42:35 PM<br>
<b>Subject:</b> RE: [Spacewalk-list] Repository URL?</span><span style="color:black;"></span></div> 
</div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="color:black;">  </span></div> 
<div id="yiv862426895">
<div>
<div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:#1F497D;">Nick,</span><span style="color:black;"></span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:#1F497D;">   When I click on the link, the browser takes me to the repodata sub-directory. When I tried backing up a couple of levels, I never saw any RPMs.
</span><span style="color:black;"></span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:#1F497D;">Can I assume that you want to connect to RHN and download all of the available RPMS and populate your Spacewalk repository? If so, you’ll have to download and install
 a utility called mrepo because Spacewalk doesn’t have the ability to connect directly to the RHN servers.
</span><span style="color:black;"></span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:#1F497D;">Also,  must also have a valid RHN userid and password for mrepo to connect.
</span><span style="color:black;"></span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:#1F497D;">aep</span><span style="color:black;"></span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div> 
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div> 
</div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;">
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><b><span style="font-size:10.0pt;color:black;">From:</span></b><span style="font-size:10.0pt;color:black;">
<a rel="nofollow" ymailto="mailto:spacewalk-list-bounces@redhat.com" target="_blank" href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> [<a rel="nofollow" ymailto="mailto:spacewalk-list-bounces@redhat.com" target="_blank" href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a>]
<b>On Behalf Of </b><a rel="nofollow" ymailto="mailto:fnwsa@yahoo.com" target="_blank" href="mailto:fnwsa@yahoo.com">fnwsa@yahoo.com</a><br>
<b>Sent:</b> Thursday, August 02, 2012 5:01 PM<br>
<b>To:</b> <a rel="nofollow" ymailto="mailto:spacewalk-list@redhat.com" target="_blank" href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
<b>Subject:</b> [Spacewalk-list] Repository URL?</span><span style="color:black;"></span></div> 
</div>
</div>
</div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="color:black;"> </span></div> 
</div>
<div>
<div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="color:black;">Hi, I am now trying to create my first Repository for RHEL 6 (64bit) systems. Can I use the following link as Repository URL in  Spacewalk's Create New Repository page?</span></div> 
</div>
</div>
<div>
<div>
<div class="yiv862426895MsoNormal" style="background:white;"><span style="color:black;"><br>
<a rel="nofollow" target="_blank" href="ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/x86_64/Debuginfo/repodata/">ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/x86_64/Debuginfo/repodata/</a><br>
<br>
If it's not the right one, where can I find it?<br>
<br>
Thank  you in advance!<br>
<br>
Nick</span></div> 
</div>
</div>
</div>
</div>
</div>
</div>
<div class="yiv862426895MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style="color:black;">  </span></div> 
</div>
</div>
</div>
</div>
</div>

</div><br><br> </div> </div>  </div></body></html>