[Engine-devel] timeout when starting a new VM

Michael Pasternak mpastern at redhat.com
Sun Nov 27 21:02:25 UTC 2011


On 11/27/2011 08:01 PM, Geert Jansen wrote:
> Hi,
> 
> i've got a setup with 1500 guests, of which about 800 are running now. Things start getting a little slow. I'm trying to start more guests via the ovirt-engine-sdk, but i
> get this error:
> 
>   File "/usr/bin/labmgr", line 171, in func_start
>     vm.start(action)
>   File "/usr/lib/python2.6/site-packages/ovirt_engine_sdk-1.0_SNAPSHOT-py2.6.egg/ovirtsdk/infrastructure/brokers.py", line 2389, in start
>     body=ParseHelper.toXml(action))
>   File "/usr/lib/python2.6/site-packages/ovirt_engine_sdk-1.0_SNAPSHOT-py2.6.egg/ovirtsdk/infrastructure/proxy.py", line 42, in request
>     conn=self.getConnectionsPool().getConnection())
>   File "/usr/lib/python2.6/site-packages/ovirt_engine_sdk-1.0_SNAPSHOT-py2.6.egg/ovirtsdk/infrastructure/proxy.py", line 54, in __doRequest
>     raise ConnectionError, str(e)
> ovirtsdk.infrastructure.errors.ConnectionError: [ERROR]::oVirt API connection failure, The read operation timed out

this is known httplib issue, i wasn't able to reproduce it in 2.7,
but i see you using 2.6 (as for now I'm yet not backported the code for 2.6)

please file BZ for ovirt-engine-sdk, and as temporary workaround please try two things:

1) when you creating the proxy[1] you have [temeout] parameter in constructor,
the default is 60 seconds, please raise it - it will solve any reconnection issues.

[1] API(url, username, password, ..., timeout):

2) re-setting socket timeout to default

import socket
...
timeout = socket.getdefaulttimeout()
socket.setdefaulttimeout(None)
...request()...
socket.setdefaulttimeout(timeout)

(let me know if it helped)

> 
> Any ideas?
> 
> Regards,
> Geert
> _______________________________________________
> Engine-devel mailing list
> Engine-devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel


-- 

Michael Pasternak
RedHat, ENG-Virtualization R&D



More information about the Engine-devel mailing list