satellite-sync --no-ssl throws the error __init__() got an unexpected keyword argument 'timeout'

Solution Verified - Updated -

Environment

  • Red Hat Satellite 5.5

    • rhnlib-2.5.22.1-6.el5
    • spacewalk-backend-tools-1.7.38-49.el5sat
    • spacewalk-backend-xml-export-libs-1.7.38-49.el5sat
  • Red Hat Satellite 5.4.1

    • rhnlib-2.5.22-15
    • spacewalk-backend-tools-1.2.13-82
    • spacewalk-backend-xml-export-libs-1.2.13-82

Issue

  • When executing satellite-sync --no-ssl it throws the error below:
[root@localhost satellite_tools]# satellite-sync --no-ssl -l 
10:42:38 Red Hat Network Satellite - live synchronization
10:42:38    url: http://satellite.rhn.redhat.com
10:42:38    debug/output level: 1
10:42:38 
10:42:38 
ERROR: there was a problem synchronizing the information.
       Error message: __init__() got an unexpected keyword argument 'timeout'
  • Why satellite-sync --no-ssl throws Error message: __init__() got an unexpected keyword argument 'timeout' ?

Resolution

  • For Satellite 5.5 this issue has been fixed with Errata resolution. Install packages provided in Errata RHBA-2014-0250.

  • As workaround on Satellite 5.4.1 modify def __init__(self): of /usr/lib/python2.6/site-packages/spacewalk/satellite_tools/connection.py and add timeout=0 parameter as below,

# vim /usr/lib/python2.6/site-packages/spacewalk/satellite_tools/connection.py
 28 class Transport(rpclib.transports.Transport):
 29     user_agent = "satellite-sync/%s" % __version__
 30     def __init__(self,timeout=0):

Root Cause

  • There is internal bugzilla raised for Satellite 5.4.1, for status update on bugzill contact Red Hat Technical Support.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments