Request #195

Timeout for occi commands

Added by Tino Vázquez over 11 years ago. Updated almost 11 years ago.

Status:ClosedStart date:02/25/2010
Priority:NormalDue date:
Assignee:Tino Vázquez% Done:

100%

Category:-
Target version:Release 2.0
Pull request:

Description

It would be handy to have a default timeout for the occi-storage create and an argument to modify said value.

From Claude Noshpitz
--

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.

Associated revisions

Revision 494ac473
Added by Tino Vázquez about 11 years ago

Request #195 fulfilled, now occi commands may timeout while connected to server
Additionally, commands help section has been homogeneously tabbed.

Revision 2957a991
Added by Ruben S. Montero about 11 years ago

feature #195: Do not set timeout by default

Revision a787b938
Added by Abel Coronado over 4 years ago

F #2347 .yaml includes the new VMGroup tab (PR #195)

History

#1 Updated by Tino Vázquez over 11 years ago

For completeness, the timeout can be added to

occi-network
occi-storage
occi-compute

#2 Updated by Ruben S. Montero over 11 years ago

  • Tracker changed from Feature to Request

#3 Updated by Ruben S. Montero over 11 years ago

  • Assignee set to Tino Vázquez
  • Target version set to Release 2.0

#4 Updated by Tino Vázquez about 11 years ago

  • % Done changed from 0 to 90

Changes in master.

Needs documentation update

#5 Updated by Tino Vázquez almost 11 years ago

  • Status changed from New to Closed
  • % Done changed from 90 to 100

Reference set in documentation. Closing.

Also available in: Atom PDF