[one-users] Timeouts in OCCI image upload

Tino Vazquez tinova at fdi.ucm.es
Thu Feb 25 03:00:55 PST 2010


Hi Claude,

That sounds very reasonable, I've opened a ticket to keep track of
this feature [1].

Thanks for sharing,

-Tino

[1] http://dev.opennebula.org/issues/195

--
Constantino Vázquez, Grid & Virtualization Technology
Engineer/Researcher: http://www.dsa-research.org/tinova
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org



On Thu, Feb 25, 2010 at 2:41 AM, Claude Noshpitz
<cnoshpitz at attinteractive.com> wrote:
> Hello,
>
> Large images can take a long time to upload via 'occi-storage create', long
> enough that the operation fails with a Net::HTTP timeout.
>
> Perhaps this has been handled already -- if not, a simple patch would look
> like this:
>
> --- a/src/cloud/common/CloudClient.rb
> +++ b/src/cloud/common/CloudClient.rb
> @@ -69,6 +69,10 @@ module CloudClient
>     ######################################################################
>     def self.http_start(url, &block)
>         http = Net::HTTP.new(url.host, url.port)
> +
> +        # could take a long time to transfer large images
> +        http.read_timeout = 600
> +
>         if url.scheme=='https'
>             http.use_ssl = true
>
> A more diligent approach might also provide a command-line option to
> explicitly set a timeout value.
>
> Thoughts?
>
> Thanks!
>
> --Claude
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



More information about the Users mailing list