If you’re behind a scanning proxy, you might get these timeout errors with RHN Satellite:

Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/satsync.py", line 1924, in run
package_id, nvrea, self.sources)
File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/satsync.py", line 1863, in _get_package_stream
stream = rpmServer.getPackageStream(channel, nvrea)
File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/xmlWireSource.py", line 442, in getPackageStream
return self._rpc_call("getPackage", (channel, package_name))
File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/xmlWireSource.py", line 409, in _rpc_call
ret = getattr(get_server_obj, function_name)(*params)
File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 683, in __call__
result = self._send(self._name, args)
File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 386, in _request
self._handler, request, verbose=self._verbose)
File "/usr/lib/python2.6/site-packages/rhn/transports.py", line 171, in request
headers, fd = req.send_http(host, handler)
File "/usr/lib/python2.6/site-packages/rhn/transports.py", line 725, in send_http
response = self._connection.getresponse()
File "/usr/lib/python2.6/site-packages/rhn/connections.py", line 130, in getresponse
response.begin()
File "/usr/lib64/python2.6/httplib.py", line 391, in begin
version, status, reason = self._read_status()
File "/usr/lib64/python2.6/httplib.py", line 349, in _read_status
line = self.fp.readline()
File "/usr/lib/python2.6/site-packages/rhn/SSL.py", line 275, in readline
self._poll(select.POLLIN, 'readline')
File "/usr/lib/python2.6/site-packages/rhn/SSL.py", line 206, in _poll
raise TimeoutException, "Connection timed out on %s" % caller_name
TimeoutException: Timeout Exception
...

10:07:08 Downloading kickstartable trees files
10:07:08 Retrieving / parsing kickstart tree files: rhel-x86_64-server-7 (5303)
________________________________________
Downloading:
ERROR: a general socket exception occurred:

(Check logs/email for potentially more detail)

TimeoutException('Connection timed out on readline',)
Timeout Exception

There’s a simple hack that will solve this problem if you’re using RHN Satellite 5.5. Just edit /usr/lib/python2.6/site-packages/rhn/SSL.py and change the value of DEFAULT_TIMEOUT with for example 3600 instead of the default 120. This doesn’t seem to work anymore with RHN Satellite 5.7 but you can achieve the same result by adding the following line in the same SSL.py file:

...
self._sock = socket
self._sock.settimeout(3600) # self._trusted_certs = []
...

 

0 réponses

Laisser un commentaire

Participez-vous à la discussion?
N'hésitez pas à contribuer!

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.