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

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat RHEL 6, Spacewalk 2.3 unable to download RHEL 5 repo data
# 1  
Old 05-18-2015
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:

Code:
# 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.

Last edited by Don Cragun; 05-18-2015 at 07:33 PM.. Reason: Add CODE and ICODE tags.
# 2  
Old 05-19-2015
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
# 3  
Old 05-19-2015
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.
# 4  
Old 05-20-2015
This looks like a known problem.

See Using mrepo on rhel6

Last edited by fpmurphy; 05-20-2015 at 11:51 PM..
These 2 Users Gave Thanks to fpmurphy For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Windows->RHEL->RHEL X11 Forwarding?

I know this question might have been asked a lot but couldn't find anything that worked. From a windows machine 'A' I can only SSH into Linux server 'B' from where I can SSH into another Linux server 'C'. I need to be able to run GUI interfaces on server C which run on my Windows machine. I... (3 Replies)
Discussion started by: hr.prasan
3 Replies

2. UNIX for Advanced & Expert Users

Unable to authenticate in LDAP RHEL 6.0

Hi there, I run a lab of around 20 systems. I have setup my LDAP server and LDAP clients. But when I try to log on to other cleint machines from a client machine, the error shows that "Permission Denied". On the other hand, if I login onto server from any client machine, the communication takes... (1 Reply)
Discussion started by: Ankur Goyal
1 Replies

3. UNIX for Dummies Questions & Answers

Unable to enable SeLinux on RHEL 7

I worked all night on creating an RHEL 7 template customized for our private cloud and almost had it ready. While doing the final part, enabling GDM, I made the blunder of disabling SELINUX. Now I am not able to re-enable or put into permissive mode again. Earlier, when this happened on RHEL 6... (3 Replies)
Discussion started by: satish51392111
3 Replies

4. UNIX for Dummies Questions & Answers

Unable to install sybase on RHEL 5

Hello Friends, I am trying to install ASE 15.7 on RHEL 5 through VMWARE. I added the user sybase, group sybase and followed the initial checks However while trying to run the "./setup" file from the sybase user account, I get the below error: -bash : ./setup Permission Denied I have created... (3 Replies)
Discussion started by: vinay_poojary83
3 Replies

5. Red Hat

RHEL Package download

Hi All, I am a Solaris administartor. I got in to a probelm with RHEL. I thought someone can help me on this forum .. Can we download/install packages on a Redhat server with yum with out registering on RHEL network or website ? (1 Reply)
Discussion started by: sri243
1 Replies

6. Red Hat

Error throwing while installing vsftpd package in rhel 6. using rhel 6 dvd.

Hi all, Im studying rhcsa as of now, so yum installation and dependencies are messing me to not workit out. i have dual os, win 7 & rhel 6. i have tried this installation of vsftpd package with rhel 6 dvd in VM rhel 6 in win 7 as well as host rhel 6.still the same issue. below error... (6 Replies)
Discussion started by: redhatlbug
6 Replies

7. Red Hat

Does RHEL 5 provide a command to collect RHEL system log in single compress file?

Hi, I heard a command that can collect all RHEL 5 log in a single compress file before I forget. Does any body know...What the command is ? Thanks. (4 Replies)
Discussion started by: nnnnnnine
4 Replies

8. Red Hat

RHEL: Users unable to login via SSH

removing the post (6 Replies)
Discussion started by: titanic4u
6 Replies

9. Red Hat

Questions About RHEL 6, CentOS 5.5 download and install

Hi, I have some questions about RHEL and CentOS download and installation. (1) Is RHEL6.0 x86_64 beta downloaded from Red Hat site working fine? (2) Where to download CentOS 5.5 DVD iso without using BitTorrent? (3) What are the differences between these two images - CentOS 5.5 i386 and... (6 Replies)
Discussion started by: aixlover
6 Replies

10. High Performance Computing

mpif90 download on RHEL

Hi, I have installed mpif77 (a parallel wrapper for the fortran compiler g77) on my dual processor dual core workstation which has RHEL 4 as OS. This compiles and runs just fine. Now I want to install mpif90 which is the f95 version of mpif77 (I think?). At the moment I am using the 'ifort'... (1 Reply)
Discussion started by: The_Watcher
1 Replies
Login or Register to Ask a Question