RHEL 6, Spacewalk 2.3 unable to download RHEL 5 repo data

Hello all, I am having a bit of an issue on my Spacewalk installation. Some amplifying information is that it is Spacewalk 2.3 installed on a RHEL 6 machine and I am attempting to install/update a RHEL 5 channel/repository. I am fairly new to Spacewalk so I am still learning but this is what I have so far.

I think I understand that in order to download RHEL 5 repository data (in particular rhel-x86_64-Server-5) to Spacewalk on a RHEL 6 host i need to use mrepo.

I have installed and configured mrepo 0.8.7
I have installed createrepo 0.9.9

Here is the error I get when I try to update the repo by running:

# mrepo -guvv
Setting option confdir in section [main] to: /etc/mrepo.conf.d
Setting option srcdir in section [main] to: /var/mrepo
Setting option wwwdir in section [main] to: /var/www/mrepo
Setting option mailto in section [main] to: root@localhost
Setting option smtp-server in section [main] to: localhost
Setting option arch in section [main] to: x86_64
Setting option rhnlogin in section [main] to: *******:*********
Setting option arch in section [rhel5s] to: x86_64
rhel5s-x86_64: Updating Red Hat Enterprise Server 5 (x86_64)
rhel5s-x86_64: Mirror packages from rhns:///rhel-x86_64-server-5 to /var/mrepo/rhel5s-x86_64/updates
/usr/share/mrepo/up2date_client/up2dateUtils.py:16: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
Traceback (most recent call last):
  File "/usr/bin/rhnget", line 517, in <module>
    main()
  File "/usr/bin/rhnget", line 498, in main
    mirrorrhn(op.uri, op.destination)
  File "/usr/bin/rhnget", line 352, in mirrorrhn
    systemid = rhnlogin(url, path)
  File "/usr/bin/rhnget", line 319, in rhnlogin
    li = rpcServer.doCall(server.up2date.login, systemid)
  File "/usr/share/mrepo/up2date_client/rpcServer.py", line 236, in doCall
    ret = apply(method, args, kwargs)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/share/mrepo/up2date_client/rpcServer.py", line 46, in _request1
    ret = self._request(methodname, params)
  File "/usr/share/mrepo/rhn/rpclib.py", line 319, in _request
    request, verbose=self._verbose)
  File "/usr/share/mrepo/rhn/transports.py", line 187, in request
    return self._process_response(fd, connection)
  File "/usr/share/mrepo/rhn/transports.py", line 215, in _process_response
    return self.parse_response(fd)
  File "/usr/share/mrepo/rhn/transports.py", line 225, in parse_response
    p, u = self.getparser()
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1262, in getparser
    return getparser(use_datetime=self._use_datetime)
AttributeError: SafeTransport instance has no attribute '_use_datetime'
mrepo: Mirroring failed for rhns:///rhel-x86_64-server-5 with message:
  Failed with return code: 256
rhel5s-x86_64: Generating Red Hat Enterprise Server 5 (x86_64) meta-data

Any help in resolving this error would be greatly appreciated because I have been spinning in circles for a short time now.

OR

If anyone knows a better way to update RHN repos using Spacewalk please post it! Like I said I am still fairly green with Spacewalk .

I'm not the best on this myself, but as patching is a subscription service and you are putting together a Satellite Server, I presume that you are paying RH, and as such they are best placed to help you directly.

Sorry to be a little dismissive, but I'm rather green with it too. I inherited one and I've broken it in different ways twice - and RH helped me recover.

Robin

Yes we have a fairly large RHN subscription at the office here, I never even thought about asking them since Spacewalk is opensource. I figured they would try to sell me on Satellite instead of help me. I will give them a call.

This looks like a known problem.

See Using mrepo on rhel6

2 Likes