You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by "Chris Gilmer (JIRA)" <ji...@apache.org> on 2012/05/18 00:57:09 UTC

[dev] [jira] [Created] (LIBCLOUD-199) Add http connection timeout to openstack and libcloud connections

Chris Gilmer created LIBCLOUD-199:
-------------------------------------

             Summary: Add http connection timeout to openstack and libcloud connections
                 Key: LIBCLOUD-199
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-199
             Project: Libcloud
          Issue Type: Improvement
          Components: Compute, Core
    Affects Versions: 0.9.1, 0.8.0
            Reporter: Chris Gilmer
             Fix For: 0.9.1, 0.8.0


Authentication calls to an openstack endpoint (in this case Rackspace) will occasionally create a connection that will stay open indefinitely.  By adding a timeout I can force the connection to close after a few seconds.  That way I can catch this behavior with an exception and log the error before the server request times out.  In this branch I add a timeout kwarg and set a reasonable default of 200 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[dev] [jira] [Updated] (LIBCLOUD-199) Add http connection timeout to openstack and libcloud connections

Posted by "Chris Gilmer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LIBCLOUD-199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Gilmer updated LIBCLOUD-199:
----------------------------------

    Attachment: openstack_and_libcloud_connection_timeout_patch_v5.txt

Added an openstack connection class test.
                
> Add http connection timeout to openstack and libcloud connections
> -----------------------------------------------------------------
>
>                 Key: LIBCLOUD-199
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-199
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute, Core
>    Affects Versions: 0.8.0, 0.9.1
>            Reporter: Chris Gilmer
>              Labels: auth, authentication, openstack,, timeout,
>             Fix For: 0.8.0, 0.9.1
>
>         Attachments: openstack_and_libcloud_connection_timeout_patch.txt, openstack_and_libcloud_connection_timeout_patch_v2.txt, openstack_and_libcloud_connection_timeout_patch_v3.txt, openstack_and_libcloud_connection_timeout_patch_v4.txt, openstack_and_libcloud_connection_timeout_patch_v5.txt
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Authentication calls to an openstack endpoint (in this case Rackspace) will occasionally create a connection that will stay open indefinitely.  By adding a timeout I can force the connection to close after a few seconds.  That way I can catch this behavior with an exception and log the error before the server request times out.  In this branch I add a timeout kwarg and set a reasonable default of 200 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[dev] [jira] [Updated] (LIBCLOUD-199) Add http connection timeout to openstack and libcloud connections

Posted by "Chris Gilmer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LIBCLOUD-199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Gilmer updated LIBCLOUD-199:
----------------------------------

    Attachment: openstack_and_libcloud_connection_timeout_patch_v4.txt

This includes only the change to openstack common and a test that instantiates the base Connection class with the timeout variable set.  The change to the libcloud common base was already merged.
                
> Add http connection timeout to openstack and libcloud connections
> -----------------------------------------------------------------
>
>                 Key: LIBCLOUD-199
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-199
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute, Core
>    Affects Versions: 0.8.0, 0.9.1
>            Reporter: Chris Gilmer
>              Labels: auth, authentication, openstack,, timeout,
>             Fix For: 0.8.0, 0.9.1
>
>         Attachments: openstack_and_libcloud_connection_timeout_patch.txt, openstack_and_libcloud_connection_timeout_patch_v2.txt, openstack_and_libcloud_connection_timeout_patch_v3.txt, openstack_and_libcloud_connection_timeout_patch_v4.txt
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Authentication calls to an openstack endpoint (in this case Rackspace) will occasionally create a connection that will stay open indefinitely.  By adding a timeout I can force the connection to close after a few seconds.  That way I can catch this behavior with an exception and log the error before the server request times out.  In this branch I add a timeout kwarg and set a reasonable default of 200 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[dev] [jira] [Updated] (LIBCLOUD-199) Add http connection timeout to openstack and libcloud connections

Posted by "Tomaz Muraus (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LIBCLOUD-199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomaz Muraus updated LIBCLOUD-199:
----------------------------------

    Fix Version/s: 0.11.0
    
> Add http connection timeout to openstack and libcloud connections
> -----------------------------------------------------------------
>
>                 Key: LIBCLOUD-199
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-199
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute, Core
>    Affects Versions: 0.8.0, 0.9.1
>            Reporter: Chris Gilmer
>            Assignee: Tomaz Muraus
>              Labels: auth, authentication, openstack,, timeout,
>             Fix For: 0.11.0
>
>         Attachments: openstack_and_libcloud_connection_timeout_patch.txt, openstack_and_libcloud_connection_timeout_patch_v2.txt, openstack_and_libcloud_connection_timeout_patch_v3.txt, openstack_and_libcloud_connection_timeout_patch_v4.txt, openstack_and_libcloud_connection_timeout_patch_v5.txt
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Authentication calls to an openstack endpoint (in this case Rackspace) will occasionally create a connection that will stay open indefinitely.  By adding a timeout I can force the connection to close after a few seconds.  That way I can catch this behavior with an exception and log the error before the server request times out.  In this branch I add a timeout kwarg and set a reasonable default of 200 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[dev] [jira] [Commented] (LIBCLOUD-199) Add http connection timeout to openstack and libcloud connections

Posted by "Tomaz Muraus (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LIBCLOUD-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279949#comment-13279949 ] 

Tomaz Muraus commented on LIBCLOUD-199:
---------------------------------------

I merged your patch, but I skipped the changes in libcloud/common/openstack.py, because the timeout you specified (200 seconds) is too high imo.
                
> Add http connection timeout to openstack and libcloud connections
> -----------------------------------------------------------------
>
>                 Key: LIBCLOUD-199
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-199
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute, Core
>    Affects Versions: 0.8.0, 0.9.1
>            Reporter: Chris Gilmer
>              Labels: auth, authentication, openstack,, timeout,
>             Fix For: 0.8.0, 0.9.1
>
>         Attachments: openstack_and_libcloud_connection_timeout_patch.txt, openstack_and_libcloud_connection_timeout_patch_v2.txt
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Authentication calls to an openstack endpoint (in this case Rackspace) will occasionally create a connection that will stay open indefinitely.  By adding a timeout I can force the connection to close after a few seconds.  That way I can catch this behavior with an exception and log the error before the server request times out.  In this branch I add a timeout kwarg and set a reasonable default of 200 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[dev] [jira] [Commented] (LIBCLOUD-199) Add http connection timeout to openstack and libcloud connections

Posted by "Chris Gilmer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LIBCLOUD-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13281079#comment-13281079 ] 

Chris Gilmer commented on LIBCLOUD-199:
---------------------------------------

I will attempt to update with a new connection test later today.
                
> Add http connection timeout to openstack and libcloud connections
> -----------------------------------------------------------------
>
>                 Key: LIBCLOUD-199
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-199
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute, Core
>    Affects Versions: 0.8.0, 0.9.1
>            Reporter: Chris Gilmer
>              Labels: auth, authentication, openstack,, timeout,
>             Fix For: 0.8.0, 0.9.1
>
>         Attachments: openstack_and_libcloud_connection_timeout_patch.txt, openstack_and_libcloud_connection_timeout_patch_v2.txt, openstack_and_libcloud_connection_timeout_patch_v3.txt
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Authentication calls to an openstack endpoint (in this case Rackspace) will occasionally create a connection that will stay open indefinitely.  By adding a timeout I can force the connection to close after a few seconds.  That way I can catch this behavior with an exception and log the error before the server request times out.  In this branch I add a timeout kwarg and set a reasonable default of 200 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[dev] [jira] [Resolved] (LIBCLOUD-199) Add http connection timeout to openstack and libcloud connections

Posted by "Tomaz Muraus (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LIBCLOUD-199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomaz Muraus resolved LIBCLOUD-199.
-----------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 0.9.1)
                       (was: 0.8.0)
         Assignee: Tomaz Muraus

Merged into trunk, thanks.
                
> Add http connection timeout to openstack and libcloud connections
> -----------------------------------------------------------------
>
>                 Key: LIBCLOUD-199
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-199
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute, Core
>    Affects Versions: 0.8.0, 0.9.1
>            Reporter: Chris Gilmer
>            Assignee: Tomaz Muraus
>              Labels: auth, authentication, openstack,, timeout,
>         Attachments: openstack_and_libcloud_connection_timeout_patch.txt, openstack_and_libcloud_connection_timeout_patch_v2.txt, openstack_and_libcloud_connection_timeout_patch_v3.txt, openstack_and_libcloud_connection_timeout_patch_v4.txt, openstack_and_libcloud_connection_timeout_patch_v5.txt
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Authentication calls to an openstack endpoint (in this case Rackspace) will occasionally create a connection that will stay open indefinitely.  By adding a timeout I can force the connection to close after a few seconds.  That way I can catch this behavior with an exception and log the error before the server request times out.  In this branch I add a timeout kwarg and set a reasonable default of 200 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[dev] [jira] [Updated] (LIBCLOUD-199) Add http connection timeout to openstack and libcloud connections

Posted by "Chris Gilmer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LIBCLOUD-199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Gilmer updated LIBCLOUD-199:
----------------------------------

    Comment: was deleted

(was: I will attempt to update with a new connection test later today.)
    
> Add http connection timeout to openstack and libcloud connections
> -----------------------------------------------------------------
>
>                 Key: LIBCLOUD-199
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-199
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute, Core
>    Affects Versions: 0.8.0, 0.9.1
>            Reporter: Chris Gilmer
>              Labels: auth, authentication, openstack,, timeout,
>             Fix For: 0.8.0, 0.9.1
>
>         Attachments: openstack_and_libcloud_connection_timeout_patch.txt, openstack_and_libcloud_connection_timeout_patch_v2.txt, openstack_and_libcloud_connection_timeout_patch_v3.txt, openstack_and_libcloud_connection_timeout_patch_v4.txt
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Authentication calls to an openstack endpoint (in this case Rackspace) will occasionally create a connection that will stay open indefinitely.  By adding a timeout I can force the connection to close after a few seconds.  That way I can catch this behavior with an exception and log the error before the server request times out.  In this branch I add a timeout kwarg and set a reasonable default of 200 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[dev] [jira] [Updated] (LIBCLOUD-199) Add http connection timeout to openstack and libcloud connections

Posted by "Chris Gilmer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LIBCLOUD-199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Gilmer updated LIBCLOUD-199:
----------------------------------

    Attachment: openstack_and_libcloud_connection_timeout_patch_v3.txt

This is a fix to the openstack timeout default.  I change it from 200s to None.
                
> Add http connection timeout to openstack and libcloud connections
> -----------------------------------------------------------------
>
>                 Key: LIBCLOUD-199
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-199
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute, Core
>    Affects Versions: 0.8.0, 0.9.1
>            Reporter: Chris Gilmer
>              Labels: auth, authentication, openstack,, timeout,
>             Fix For: 0.8.0, 0.9.1
>
>         Attachments: openstack_and_libcloud_connection_timeout_patch.txt, openstack_and_libcloud_connection_timeout_patch_v2.txt, openstack_and_libcloud_connection_timeout_patch_v3.txt
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Authentication calls to an openstack endpoint (in this case Rackspace) will occasionally create a connection that will stay open indefinitely.  By adding a timeout I can force the connection to close after a few seconds.  That way I can catch this behavior with an exception and log the error before the server request times out.  In this branch I add a timeout kwarg and set a reasonable default of 200 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[dev] [jira] [Updated] (LIBCLOUD-199) Add http connection timeout to openstack and libcloud connections

Posted by "Chris Gilmer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LIBCLOUD-199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Gilmer updated LIBCLOUD-199:
----------------------------------

    Attachment: openstack_and_libcloud_connection_timeout_patch.txt

This is the associated patch.
                
> Add http connection timeout to openstack and libcloud connections
> -----------------------------------------------------------------
>
>                 Key: LIBCLOUD-199
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-199
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute, Core
>    Affects Versions: 0.8.0, 0.9.1
>            Reporter: Chris Gilmer
>              Labels: auth, authentication, openstack,, timeout,
>             Fix For: 0.8.0, 0.9.1
>
>         Attachments: openstack_and_libcloud_connection_timeout_patch.txt
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Authentication calls to an openstack endpoint (in this case Rackspace) will occasionally create a connection that will stay open indefinitely.  By adding a timeout I can force the connection to close after a few seconds.  That way I can catch this behavior with an exception and log the error before the server request times out.  In this branch I add a timeout kwarg and set a reasonable default of 200 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[dev] [jira] [Commented] (LIBCLOUD-199) Add http connection timeout to openstack and libcloud connections

Posted by "Tomaz Muraus (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LIBCLOUD-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279170#comment-13279170 ] 

Tomaz Muraus commented on LIBCLOUD-199:
---------------------------------------

I just checked the code and it looks like httplib in Python 2.5 doesn't support setting a timeout*.

We need to make sure it also works with 2.5. One of the option would be to set a timeout on a socket, but I don't like this approach, because it's a global setting and also affects other socket operations (e.g. when calling deploy node, etc.)

* http://docs.python.org/library/httplib.html
                
> Add http connection timeout to openstack and libcloud connections
> -----------------------------------------------------------------
>
>                 Key: LIBCLOUD-199
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-199
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute, Core
>    Affects Versions: 0.8.0, 0.9.1
>            Reporter: Chris Gilmer
>              Labels: auth, authentication, openstack,, timeout,
>             Fix For: 0.8.0, 0.9.1
>
>         Attachments: openstack_and_libcloud_connection_timeout_patch.txt
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Authentication calls to an openstack endpoint (in this case Rackspace) will occasionally create a connection that will stay open indefinitely.  By adding a timeout I can force the connection to close after a few seconds.  That way I can catch this behavior with an exception and log the error before the server request times out.  In this branch I add a timeout kwarg and set a reasonable default of 200 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[dev] [jira] [Updated] (LIBCLOUD-199) Add http connection timeout to openstack and libcloud connections

Posted by "Chris Gilmer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LIBCLOUD-199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Gilmer updated LIBCLOUD-199:
----------------------------------

    Attachment: openstack_and_libcloud_connection_timeout_patch_v2.txt

This patch fixes python 2.5 compatibility.
                
> Add http connection timeout to openstack and libcloud connections
> -----------------------------------------------------------------
>
>                 Key: LIBCLOUD-199
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-199
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute, Core
>    Affects Versions: 0.8.0, 0.9.1
>            Reporter: Chris Gilmer
>              Labels: auth, authentication, openstack,, timeout,
>             Fix For: 0.8.0, 0.9.1
>
>         Attachments: openstack_and_libcloud_connection_timeout_patch.txt, openstack_and_libcloud_connection_timeout_patch_v2.txt
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Authentication calls to an openstack endpoint (in this case Rackspace) will occasionally create a connection that will stay open indefinitely.  By adding a timeout I can force the connection to close after a few seconds.  That way I can catch this behavior with an exception and log the error before the server request times out.  In this branch I add a timeout kwarg and set a reasonable default of 200 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[dev] [jira] [Commented] (LIBCLOUD-199) Add http connection timeout to openstack and libcloud connections

Posted by "Chris Gilmer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LIBCLOUD-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279177#comment-13279177 ] 

Chris Gilmer commented on LIBCLOUD-199:
---------------------------------------

I know we check the version of python to import certain libraries.  Would this be a case for checking the version number and either calling a timeout or not?  I'm also open to other ideas about how to get the timeout behavior I'm looking for.
                
> Add http connection timeout to openstack and libcloud connections
> -----------------------------------------------------------------
>
>                 Key: LIBCLOUD-199
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-199
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute, Core
>    Affects Versions: 0.8.0, 0.9.1
>            Reporter: Chris Gilmer
>              Labels: auth, authentication, openstack,, timeout,
>             Fix For: 0.8.0, 0.9.1
>
>         Attachments: openstack_and_libcloud_connection_timeout_patch.txt
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Authentication calls to an openstack endpoint (in this case Rackspace) will occasionally create a connection that will stay open indefinitely.  By adding a timeout I can force the connection to close after a few seconds.  That way I can catch this behavior with an exception and log the error before the server request times out.  In this branch I add a timeout kwarg and set a reasonable default of 200 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[dev] [jira] [Closed] (LIBCLOUD-199) Add http connection timeout to openstack and libcloud connections

Posted by "Tomaz Muraus (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LIBCLOUD-199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomaz Muraus closed LIBCLOUD-199.
---------------------------------

    
> Add http connection timeout to openstack and libcloud connections
> -----------------------------------------------------------------
>
>                 Key: LIBCLOUD-199
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-199
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute, Core
>    Affects Versions: 0.8.0, 0.9.1
>            Reporter: Chris Gilmer
>            Assignee: Tomaz Muraus
>              Labels: auth, authentication, openstack,, timeout,
>             Fix For: 0.11.0
>
>         Attachments: openstack_and_libcloud_connection_timeout_patch.txt, openstack_and_libcloud_connection_timeout_patch_v2.txt, openstack_and_libcloud_connection_timeout_patch_v3.txt, openstack_and_libcloud_connection_timeout_patch_v4.txt, openstack_and_libcloud_connection_timeout_patch_v5.txt
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Authentication calls to an openstack endpoint (in this case Rackspace) will occasionally create a connection that will stay open indefinitely.  By adding a timeout I can force the connection to close after a few seconds.  That way I can catch this behavior with an exception and log the error before the server request times out.  In this branch I add a timeout kwarg and set a reasonable default of 200 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[dev] [jira] [Commented] (LIBCLOUD-199) Add http connection timeout to openstack and libcloud connections

Posted by "Tomaz Muraus (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LIBCLOUD-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279951#comment-13279951 ] 

Tomaz Muraus commented on LIBCLOUD-199:
---------------------------------------

Please also add a test case for instantiating the Connection class with a timeout argument. Thanks.
                
> Add http connection timeout to openstack and libcloud connections
> -----------------------------------------------------------------
>
>                 Key: LIBCLOUD-199
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-199
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute, Core
>    Affects Versions: 0.8.0, 0.9.1
>            Reporter: Chris Gilmer
>              Labels: auth, authentication, openstack,, timeout,
>             Fix For: 0.8.0, 0.9.1
>
>         Attachments: openstack_and_libcloud_connection_timeout_patch.txt, openstack_and_libcloud_connection_timeout_patch_v2.txt
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Authentication calls to an openstack endpoint (in this case Rackspace) will occasionally create a connection that will stay open indefinitely.  By adding a timeout I can force the connection to close after a few seconds.  That way I can catch this behavior with an exception and log the error before the server request times out.  In this branch I add a timeout kwarg and set a reasonable default of 200 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[dev] [jira] [Commented] (LIBCLOUD-199) Add http connection timeout to openstack and libcloud connections

Posted by "Chris Gilmer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LIBCLOUD-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280152#comment-13280152 ] 

Chris Gilmer commented on LIBCLOUD-199:
---------------------------------------

Thanks for merging the timeout part.  I'll work on the test case and I think I should leave out the timeout entirely for auth and set it as None.  The original timeout of 200s is high but I grabbed that value from another connection timeout that was specified in the code.  However, for backwards compatibility and to ensure I'm not setting a timeout that will break things, setting the value to None seems the better option.  Again, thanks for helping me with this.
                
> Add http connection timeout to openstack and libcloud connections
> -----------------------------------------------------------------
>
>                 Key: LIBCLOUD-199
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-199
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute, Core
>    Affects Versions: 0.8.0, 0.9.1
>            Reporter: Chris Gilmer
>              Labels: auth, authentication, openstack,, timeout,
>             Fix For: 0.8.0, 0.9.1
>
>         Attachments: openstack_and_libcloud_connection_timeout_patch.txt, openstack_and_libcloud_connection_timeout_patch_v2.txt
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Authentication calls to an openstack endpoint (in this case Rackspace) will occasionally create a connection that will stay open indefinitely.  By adding a timeout I can force the connection to close after a few seconds.  That way I can catch this behavior with an exception and log the error before the server request times out.  In this branch I add a timeout kwarg and set a reasonable default of 200 seconds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira