[Spacewalk-list] rhn-clone-errata.py running issue

Paul Robert Marino prmarino1 at gmail.com
Wed Aug 15 22:25:57 UTC 2012


Good question
There is an embeded man file you can extract with the pod2txt command or
any of the other pod2... commands but there isn't a howto yet but if you
would like latter I can send you an example wrapper shell script I use with
it that should make it fairly obvious
I should write a howto in the wiki though and will try to get to it soon.
One simple note whenever the documentation mentions an errata source its
talking about RHN by default or a satillite/spacewalk server or channel
which contains the erratas you want to duplicate. And the target is the
spacewalk server and channel you want to populate.
 On Aug 15, 2012 4:30 PM, <fnwsa at yahoo.com> wrote:

> Hi Paul,
>
> I've just downloaded your script eva-direct-errata-sync.pl and trying to
> use it. Is there a README or HowTo document that users can use? Thanks a
> lot!
>
> nz
>
>   ------------------------------
> *From:* Paul Robert Marino <prmarino1 at gmail.com>
> *To:* spacewalk-list at redhat.com
> *Sent:* Tuesday, August 14, 2012 12:48:46 PM
> *Subject:* Re: [Spacewalk-list] rhn-clone-errata.py running issue
>
> Yea this looks like you both hit the same 503 error. The sync script I
> wrote is designed to be tolerant of faults on the API requests and
> continue processing the next errata, rhn-clone-errata is designed to
> crash on API faults. Since it the same error there was probably a
> glitch on one or more of RedHats web servers before their load
> balances caught the fault or possibly they were in the middle of a
> code push to their servers and you hit the wrong server in the wrong
> split second.
>
>
> On Tue, Aug 14, 2012 at 11:58 AM, Boyd, Robert
> <Robert.Boyd at peoplefluent.com> wrote:
> > I was getting 503 errors for about 30-60 minutes today as well running
> Paul
> > Robert Marino’s eva-errata-sync code.  I think Red Hat was having issues
> > with their Errata service.
> >
> >
> >
> > Robert
> >
> >
> >
> > From: spacewalk-list-bounces at redhat.com
> > [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of fnwsa at yahoo.com
> > Sent: Tuesday, August 14, 2012 11:21 AM
> > To: fnwsa at yahoo.com; spacewalk-list at redhat.com
> > Subject: Re: [Spacewalk-list] rhn-clone-errata.py running issue
> >
> >
> >
> > When I changed the -c option, I got:
> >
> >
> >
> > # python /root/rhn-clone-errata.py -s localhost -l swusername -p
> swpassword
> > -c rhel-i386-server-5 --publish --verbose -v
> > RHBA-2012:1016
> > Fault Code: -208        Fault String: redstone.xmlrpc.XmlRpcFault: The
> > errata RHBA-2012:1016:R5-32 cannot be found.
> > Errata RHBA-2012:1016:R5-32 Doesn't Exist on localhost ...
> > ProtocolError: 503 - Service Temporarily Unavailable
> >        6/20/12 - e2fsprogs bug fix update
> >        Errata Created: 1
> > Fault Code: 1201 - redstone.xmlrpc.XmlRpcFault: Invalid channel label
> > Error Creating Errata!
> > ^C
> >
> > Traceback (most recent call last):
> >  File "/root/rhn-clone-errata.py", line 643, in <module>
> >    main()
> >  File "/root/rhn-clone-errata.py", line 633, in main
> >    spwPublish = mySPW.errataPublish (spwErrataName,
> > [chanMap[options.src_channel]], 0)
> >  File "/root/rhn-clone-errata.py", line 375, in errataPublish
> >    errata = self.server.errata.publish(self.rhnSession,name,channels)
> >  File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
> >    return self.__send(self.__name, args)
> >  File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
> >    verbose=self.__verbose
> >  File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request
> >    return self._parse_response(h.getfile(), sock)
> >  File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response
> >    return u.close()
> >  File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close
> >    raise Fault(**self._stack[0])
> > xmlrpclib.Fault: <Fault 1201: 'redstone.xmlrpc.XmlRpcFault: Invalid
> channel
> > label'>
> >
> > nz
> >
> >
> >
> > ________________________________
> >
> > From: "fnwsa at yahoo.com" <fnwsa at yahoo.com>
> > To: "spacewalk-list at redhat.com" <spacewalk-list at redhat.com>
> > Sent: Tuesday, August 14, 2012 10:52:41 AM
> > Subject: [Spacewalk-list] rhn-clone-errata.py running issue
> >
> >
> >
> > Hi, I am working on rhn-clone-errata.py now. I've made the following
> changes
> > to it:
> >
> > userRHN = 'myRHNusername'
> > passRHN = 'myRHNpassword'
> >
> > 'rhel-i386-server-5':  'spacewalk_channel_rhel_5_i386',
> >
> >
> >
> > # python /root/rhn-clone-errata.py -s localhost -l swusername -p
> swpassword
> > -c spacewalk_channel_rhel_5_i386 --publish --verbose
> >
> > ^C (Control+c)
> > Traceback (most recent call last):
> >  File "/root/rhn-clone-errata.py", line 643, in <module>
> >    main()
> >  File "/root/rhn-clone-errata.py", line 559, in main
> >    if chanMap[options.src_channel] is None:
> > KeyError: 'spacewalk_channel_rhel_5_i386'
> >
> > # python /root/rhn-clone-errata.py -s localhost -l swusername -p
> swpassword
> > --publish --verbose
> > ^C (Control+c)
> > Traceback (most recent call last):
> >  File "/root/rhn-clone-errata.py", line 643, in <module>
> >    main()
> >  File "/root/rhn-clone-errata.py", line 559, in main
> >    if chanMap[options.src_channel] is None:
> > KeyError: None
> >
> >
> >
> > Why did it not show any output and I have to use "Control+c" to stop the
> > process? What else do I need to modified in rhn-clone-errata.py?
> >
> >
> >
> > Thank you in advance!
> >
> >
> >
> > nz
> >
> >
> > _______________________________________________
> > 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
>
>
>
> _______________________________________________
> 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/20120815/76d3d6b2/attachment.htm>


More information about the Spacewalk-list mailing list