<span id="result_box" class="short_text"><span title="Yo tengo el mismo problema :/">Hi Andy! :D<br><br>I have the same problem :/<br></span><span title="SW 0.7"><br>SW 0.7<br></span><span title="RHEL5.4">RHEL5.4</span></span><br>
<br>[root@spacewalk7 ~]# ./rhn-clone-errata.py -s localhost -c rhel-5-i386  -l AdminSpace -p xxxxxxxxx -b 20090101 -u -v<br>Traceback (most recent call last):<br>  File "./rhn-clone-errata.py", line 567, in ?<br>
    main()<br>  File "./rhn-clone-errata.py", line 490, in main<br>    if chanMap[options.src_channel] is None:<br>KeyError: 'rhel-5-i386'<br>[root@spacewalk7 ~]# <br><br>But in SW0.6 works perfect :S<span id="result_box" class="short_text"><span title=":S"><br>
<br></span></span>Best Regards!<br><br><br><div class="gmail_quote">2009/12/4 Rob Becker <span dir="ltr"><<a href="mailto:robert_becker@stercomm.com">robert_becker@stercomm.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Scratch that!  Figured it out.<br>
<div class="im"><br>
On Fri, 2009-12-04 at 09:21 -0500, Rob Becker wrote:<br>
> Hey Andy,<br>
><br>
> I'm having a slight problem with your script and I just can't figure<br>
> out<br>
> what's going on.<br>
><br>
> Here's the errors I'm getting.<br>
><br>
> ./rhn-clone-errata.py -s qmudubcorspw001.qa.local  --login=admin<br>
</div>> --password= --src-channel=rhel-i386-server-4 -v -u<br>
<div><div></div><div class="h5">><br>
><br>
> Traceback (most recent call last):<br>
>   File "./rhn-clone-errata.py", line 587, in ?<br>
>     main()<br>
>   File "./rhn-clone-errata.py", line 503, in main<br>
>     if chanMap[options.src_channel] is None:<br>
> KeyError: 'rhel-i386-server-4'<br>
><br>
><br>
> I've yet to get past this error.  Any ideas?<br>
><br>
><br>
><br>
> On Wed, 2009-10-28 at 07:24 -0500, Andy Speagle wrote:<br>
> > On Tue, 2009-10-27 at 14:55 -0500, Nehemias Jahcob wrote:<br>
> > > Hello everydoby<br>
> > ><br>
> > >  I have trayed to use the tool “ rhn-clone-errata.py 0.3" but<br>
> obtain<br>
> > > this error..<br>
> > > "./rhn-clone-errata.py -s localhost -l nehemias -p xxxxxxxx -c<br>
> > > rhel-i386-server-5 -u"<br>
> ><br>
> > The errors that you're receiving from this script are due to the<br>
> high<br>
> > probability that the channels you created in your Spacewalk aren't<br>
> > matching up with what are the channels I have listed in the channel<br>
> > mappings within the script itself.  You'll want to update those to<br>
> > match<br>
> > your channel names.<br>
> ><br>
> > > Error Creating Errata!<br>
> > > Traceback (most recent call last):<br>
> > >   File "./rhn-clone-errata.py", line 565, in ?<br>
> > >     main()<br>
> > >   File "./rhn-clone-errata.py", line 557, in main<br>
> > >     0)<br>
> > >   File "./rhn-clone-errata.py", line 367, in errataCreate<br>
> > >     new_errata =<br>
> > ><br>
> ><br>
> self.server.errata.create(self.rhnSession,info,bugs,keywords,packages,publish,channels)<br>
> > >   File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__<br>
> > >     return self.__send(self.__name, args)<br>
> > >   File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in __request<br>
> > >     verbose=self.__verbose<br>
> > >   File "/usr/lib/python2.4/xmlrpclib.py", line 1147, in request<br>
> > >     return self._parse_response(h.getfile(), sock)<br>
> > >   File "/usr/lib/python2.4/xmlrpclib.py", line 1286, in<br>
> > > _parse_response<br>
> > >     return u.close()<br>
> > >   File "/usr/lib/python2.4/xmlrpclib.py", line 744, in close<br>
> > >     raise Fault(**self._stack[0])<br>
> > > xmlrpclib.Fault: <Fault 1201: 'redstone.xmlrpc.XmlRpcFault:<br>
> Invalid<br>
> > > channel label'><br>
> > ><br>
> > > But when I get there the same syntax finished in  "v" :<br>
> > > "./rhn-clone-errata.py -s localhost -l nehemias -p xxxxxxx -c<br>
> > > rhel-i386-server-5 -v"<br>
> ><br>
> > The reason you're getting this far with verbosity on is that some of<br>
> > the<br>
> > errata already exist in your system... somewhere.  Judging by the<br>
> > target<br>
> > errata names below (with the included channel suffix "R5-32") at<br>
> some<br>
> > point you had the channel name right and have changed it in<br>
> Spacewalk,<br>
> > or you put those errata in by hand.<br>
> ><br>
> > >  I get the following<br>
> > > RHBA-2009:0452<br>
> > >     Errata already exists.  RHBA-2009:0452:R5-32<br>
> > > RHBA-2009:1112<br>
> > >     Errata already exists.  RHBA-2009:1112:R5-32<br>
> > > RHBA-2009:1120<br>
> > >     Errata already exists.  RHBA-2009:1120:R5-32<br>
> > > RHBA-2009:0482<br>
> > >     Errata already exists.  RHBA-2009:0482:R5-32<br>
> > > RHEA-2009:1121<br>
> > >     Errata already exists.  RHEA-2009:1121:R5-32<br>
> > > RHBA-2009:0483<br>
> > >     Errata already exists.  RHBA-2009:0483:R5-32<br>
> > > RHBA-2009:1079<br>
> > >     Errata already exists.  RHBA-2009:1079:R5-32<br>
> > > RHBA-2009:0462<br>
> > > ...etc...etc..<br>
> > ><br>
> > > #SPW 0.6<br>
> > > #RHEL 5.4 i386<br>
> > > What is happening?<br>
> ><br>
> > A bit ago, I posted a slightly more current version to the list, but<br>
> > I'll send it to you directly as well.  The changes shouldn't affect<br>
> > the<br>
> > problem you're experiencing.  The main thing changed was the method<br>
> of<br>
> > publishing errata to reduce (resolve?) time-out issues.<br>
> ><br>
> > > Where I get the 04 versions rhn-clone-errata.py?<br>
> ><br>
> > --<br>
> > Andy Speagle<br>
> ><br>
> > "THE Student" - UCATS<br>
> > Wichita State University<br>
> ><br>
> ><br>
> > plain text document attachment (ATT06161.txt)<br>
> > _______________________________________________<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" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
><br>
> _______________________________________________<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" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
><br>
><br>
<br>
_______________________________________________<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" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
</div></div></blockquote></div><br>