You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by s0undt3ch <gi...@git.apache.org> on 2013/09/02 05:04:24 UTC

[dev] libcloud pull request: Sleep for a while to avoid errno 104

GitHub user s0undt3ch opened a pull request:

    https://github.com/apache/libcloud/pull/141

    Sleep for a while to avoid errno 104

    On some weird and random occasions the GIL deadlocks while connecting forcing the remote servers to 104 the connection. A simple sleep avoids this issue(after googling, I found http://goo.gl/0LpLvJ which helped)
    
    ```
    Traceback (most recent call last):
      File "/usr/src/salt-cloud/saltcloud/clouds/openstack.py", line 386, in create
        data = conn.create_node(**kwargs)
      File "/usr/lib/python2.6/site-packages/libcloud/compute/drivers/openstack.py", line 1111, in create_node
        data={'server': server_params})
      File "/usr/lib/python2.6/site-packages/libcloud/compute/drivers/openstack.py", line 145, in request
        method=method, headers=headers)
      File "/usr/lib/python2.6/site-packages/libcloud/common/openstack.py", line 580, in request
        return super(OpenStackBaseConnection, self).request(**kwargs)
      File "/usr/lib/python2.6/site-packages/libcloud/common/base.py", line 632, in request
        else:
      File "/usr/lib64/python2.6/httplib.py", line 990, 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/lib64/python2.6/socket.py", line 433, in readline
        data = recv(1)
      File "/usr/lib64/python2.6/ssl.py", line 215, in recv
        return self.read(buflen)
      File "/usr/lib64/python2.6/ssl.py", line 136, in read
        return self._sslobj.read(len)
    error: [Errno 104] Connection reset by peer
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/s0undt3ch/libcloud trunk

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/libcloud/pull/141.patch

----

----