[Spacewalk-list] RHN Errata in Spacewalk

Nehemias Jahcob nehemiasjahcob at gmail.com
Thu Dec 10 20:29:20 UTC 2009


Hi Andy! :D

I have the same problem :/

SW 0.7
RHEL5.4

[root at spacewalk7 ~]# ./rhn-clone-errata.py -s localhost -c rhel-5-i386  -l
AdminSpace -p xxxxxxxxx -b 20090101 -u -v
Traceback (most recent call last):
  File "./rhn-clone-errata.py", line 567, in ?
    main()
  File "./rhn-clone-errata.py", line 490, in main
    if chanMap[options.src_channel] is None:
KeyError: 'rhel-5-i386'
[root at spacewalk7 ~]#

But in SW0.6 works perfect :S

Best Regards!


2009/12/4 Rob Becker <robert_becker at stercomm.com>

> Scratch that!  Figured it out.
>
> On Fri, 2009-12-04 at 09:21 -0500, Rob Becker wrote:
> > Hey Andy,
> >
> > I'm having a slight problem with your script and I just can't figure
> > out
> > what's going on.
> >
> > Here's the errors I'm getting.
> >
> > ./rhn-clone-errata.py -s qmudubcorspw001.qa.local  --login=admin
> > --password= --src-channel=rhel-i386-server-4 -v -u
> >
> >
> > Traceback (most recent call last):
> >   File "./rhn-clone-errata.py", line 587, in ?
> >     main()
> >   File "./rhn-clone-errata.py", line 503, in main
> >     if chanMap[options.src_channel] is None:
> > KeyError: 'rhel-i386-server-4'
> >
> >
> > I've yet to get past this error.  Any ideas?
> >
> >
> >
> > On Wed, 2009-10-28 at 07:24 -0500, Andy Speagle wrote:
> > > On Tue, 2009-10-27 at 14:55 -0500, Nehemias Jahcob wrote:
> > > > Hello everydoby
> > > >
> > > >  I have trayed to use the tool “ rhn-clone-errata.py 0.3" but
> > obtain
> > > > this error..
> > > > "./rhn-clone-errata.py -s localhost -l nehemias -p xxxxxxxx -c
> > > > rhel-i386-server-5 -u"
> > >
> > > The errors that you're receiving from this script are due to the
> > high
> > > probability that the channels you created in your Spacewalk aren't
> > > matching up with what are the channels I have listed in the channel
> > > mappings within the script itself.  You'll want to update those to
> > > match
> > > your channel names.
> > >
> > > > Error Creating Errata!
> > > > Traceback (most recent call last):
> > > >   File "./rhn-clone-errata.py", line 565, in ?
> > > >     main()
> > > >   File "./rhn-clone-errata.py", line 557, in main
> > > >     0)
> > > >   File "./rhn-clone-errata.py", line 367, in errataCreate
> > > >     new_errata =
> > > >
> > >
> >
> self.server.errata.create(self.rhnSession,info,bugs,keywords,packages,publish,channels)
> > > >   File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__
> > > >     return self.__send(self.__name, args)
> > > >   File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in __request
> > > >     verbose=self.__verbose
> > > >   File "/usr/lib/python2.4/xmlrpclib.py", line 1147, in request
> > > >     return self._parse_response(h.getfile(), sock)
> > > >   File "/usr/lib/python2.4/xmlrpclib.py", line 1286, in
> > > > _parse_response
> > > >     return u.close()
> > > >   File "/usr/lib/python2.4/xmlrpclib.py", line 744, in close
> > > >     raise Fault(**self._stack[0])
> > > > xmlrpclib.Fault: <Fault 1201: 'redstone.xmlrpc.XmlRpcFault:
> > Invalid
> > > > channel label'>
> > > >
> > > > But when I get there the same syntax finished in  "v" :
> > > > "./rhn-clone-errata.py -s localhost -l nehemias -p xxxxxxx -c
> > > > rhel-i386-server-5 -v"
> > >
> > > The reason you're getting this far with verbosity on is that some of
> > > the
> > > errata already exist in your system... somewhere.  Judging by the
> > > target
> > > errata names below (with the included channel suffix "R5-32") at
> > some
> > > point you had the channel name right and have changed it in
> > Spacewalk,
> > > or you put those errata in by hand.
> > >
> > > >  I get the following
> > > > RHBA-2009:0452
> > > >     Errata already exists.  RHBA-2009:0452:R5-32
> > > > RHBA-2009:1112
> > > >     Errata already exists.  RHBA-2009:1112:R5-32
> > > > RHBA-2009:1120
> > > >     Errata already exists.  RHBA-2009:1120:R5-32
> > > > RHBA-2009:0482
> > > >     Errata already exists.  RHBA-2009:0482:R5-32
> > > > RHEA-2009:1121
> > > >     Errata already exists.  RHEA-2009:1121:R5-32
> > > > RHBA-2009:0483
> > > >     Errata already exists.  RHBA-2009:0483:R5-32
> > > > RHBA-2009:1079
> > > >     Errata already exists.  RHBA-2009:1079:R5-32
> > > > RHBA-2009:0462
> > > > ...etc...etc..
> > > >
> > > > #SPW 0.6
> > > > #RHEL 5.4 i386
> > > > What is happening?
> > >
> > > A bit ago, I posted a slightly more current version to the list, but
> > > I'll send it to you directly as well.  The changes shouldn't affect
> > > the
> > > problem you're experiencing.  The main thing changed was the method
> > of
> > > publishing errata to reduce (resolve?) time-out issues.
> > >
> > > > Where I get the 04 versions rhn-clone-errata.py?
> > >
> > > --
> > > Andy Speagle
> > >
> > > "THE Student" - UCATS
> > > Wichita State University
> > >
> > >
> > > plain text document attachment (ATT06161.txt)
> > > _______________________________________________
> > > Spacewalk-list mailing list
> > > Spacewalk-list at redhat.com
> > > https://www.redhat.com/mailman/listinfo/spacewalk-list
> >
> > _______________________________________________
> > Spacewalk-list mailing list
> > Spacewalk-list at redhat.com
> > https://www.redhat.com/mailman/listinfo/spacewalk-list
> >
> >
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20091210/f82f69ea/attachment.htm>


More information about the Spacewalk-list mailing list