[Spacewalk-list] rhn-clone-errata.py fails on same RHN errata

Frank Mikkelsen Blohmé frank.mikkelsen.blohme at axis.com
Tue Jan 31 13:39:58 UTC 2012


When running rhn-clone-errata to feed errata into Spacewalk, the script dies with error on the same errata over and over again.

Using RHN channel rhel-x86_64-server-6 as source channel the erratas get loaded into Spacewalk until it reaches the errata RHSA-2011:1508, where it fails with following error:
Error Creating Errata!
Traceback (most recent call last):
  File "/usr/local/bin/rhn-clone-errata.py-0.9.0", line 807, in <module>
    main()
  File "/usr/local/bin/rhn-clone-errata.py-0.9.0", line 781, in main
    0)
  File "/usr/local/bin/rhn-clone-errata.py-0.9.0", line 506, in errataCreate
    new_errata = self.server.errata.create(self.rhnSession,info,bugs,keywords,packages,publish,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 2300: 'redstone.xmlrpc.XmlRpcFault: Invalid package: 9477'>
-------------------------------
Using RHN channel rhel-i386-server-6 as source channel the erratas get loaded into Spacewalk until it reaches the errata RHSA-2011:1508, where it fails with following error:
Error Creating Errata!
Traceback (most recent call last):
  File "/usr/local/bin/rhn-clone-errata.py-0.9.0", line 807, in <module>
    main()
  File "/usr/local/bin/rhn-clone-errata.py-0.9.0", line 781, in main
    0)
  File "/usr/local/bin/rhn-clone-errata.py-0.9.0", line 506, in errataCreate
    new_errata = self.server.errata.create(self.rhnSession,info,bugs,keywords,packages,publish,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 2300: 'redstone.xmlrpc.XmlRpcFault: Invalid package: 9476'>

Lot's of errors/warnings get written in the tomcat log, even regarding erratas that get synced without any errors from the rhn-clone-errata.py script.

I have near to none knowledge/experience at reading/writing python scripting and this seems to go deep into the xmlrpclib python library (just a guess). So please help me out with this problem.

Setup:

-          Spacewalk 1.5

-          Database system: Oracle XE 11g release 2

-          Operating system: Red Hat Enterprise Linux Workstation 6.1 64-bit

-          rhn-clone-errata.py: v. 0.9.0

Command:
rhn-clone-errata  --publish --proxy=<hostname:port> --config-file=<pathTo>/rhn-clone-errata.cfg --src-channel=rhel-x86_64-server-6 -no-spw-proxy

Contents of rhn-clone-errata.cfg:
[Spacewalk]
spw_server = localhost
spw_user = <spacewalk-username>
spw_pass = <spacewalk-password>

[RHN]
rhn_server = xmlrpc.rhn.redhat.com
rhn_user = <RHN user>
rhn_pass = <RHN password>

[ChanMap]
rhel-x86_64-server-6 = rhel-x86_64-server-6
rhel-i386-server-6 = rhel-i386-server-6

[ChanSuffixMap]
rhel-x86_64-server-6 = R6-64
rhel-i386-server-6 = R6-32

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20120131/8622c4bd/attachment.htm>


More information about the Spacewalk-list mailing list