[Spacewalk-list] Spacewalk Proxy 1.7 on RHEL 6 .. 'Operation too slow'

Igor Widlinski iwidlinski at incomm.com
Tue Jul 17 22:46:05 UTC 2012


Hi Mirek,

I've changed the setting to 9999 (on both client and spacewalk proxy
server) but the timeouts still happen. What I noticed when client runs
'yum install package' or 'yum makecache', with no luck. The message
still says 'Operation too slow. Less than 1 bytes/sec transfered the
last 60 seconds' . Note the 60 seconds.

It almost seems like files are downloaded to the proxy server first
(because I see traffic between spacewalk proxy and spacewalk server)
before they are forwarded to the clients, in case the file is quite big
over slow connection this will go beyond the 60 second time limit.


-----Original Message-----
From: spacewalk-list-bounces at redhat.com
[mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Miroslav Suchy
Sent: July-17-12 2:12 PM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] Spacewalk Proxy 1.7 on RHEL 6 ..
'Operation too slow'

On 17.7.2012 22:10, Igor Widlinski wrote:
> Sorry, is there something special I have to do in order to view the 
> bugs? There does not seem to be a way to check bugzilla through RHN 
> Customer Portal either.

Ah sorry, both contain customers data so they are private. I will give
you summary:

> https://bugzilla.redhat.com/show_bug.cgi?id=767443
Proxy will timeout becouse it will not get data within given timeframe.
This happen on very slow network or with big files.

The timeout can be tuned by setting:
   self.sock.settimeout(CFG['sometimeout'])
in getresponse() or __init__() of HTTPConnection class in connections.py

The trouble is that this is rhnlib code, which knows nothing about CFG,
so we have to pass it from rhnShared.py in _proxy2server() to rhnlib


> https://bugzilla.redhat.com/show_bug.cgi?id=783928

and this is that rhnlib bugzilla, where we either have to read that 
timeout from some config or provide interface for proxy to set it.

Temporary workaround is to manually edit:
DEFAULT_TIMEOUT=120 in /usr/lib/python2.6/site-packages/rhn/SSL.py
to some higher value. But this change will be wiped next time you 
upgrade rhnlib package.

Mirek

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list






More information about the Spacewalk-list mailing list