Project

General

Custom queries

Profile

Actions

Bug #3598

closed

Make timeouts configurable

Added by Greg Sutcliffe over 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman commands (obsolete)
Target version:
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Creating Hosts can be slow, particularly for image-based Compute Resources, which block until the image is up and the Finish template has been run. This leads to a timeout from Hammer:

[greg:~/github/hammer-cli]$ bundle exec bin/hammer host create --name test1 --hostgroup-id 11 --compute-resource-id 9 --compute-attributes "flavor_ref=1,image_ref=9c9d4946-3e33-4f6e-92f0-f3527ef42862,network=public"  
Could not create the host:
Error: Request Timeout

The host is actually created fine:

Body: {"host":{"name":"test1.elysium.emeraldreverie.org","id":3871,"ip":"172.20.10.156","environment_id":6, ... <snip> }}
Completed 200 OK in 117643ms (Views: 54.6ms | ActiveRecord: 2454.5ms)

It would be nice to be able to increase the timeout for these actions


Related issues 2 (0 open2 closed)

Related to Foreman - Feature #3566: expose Orchestration tasks via the APIClosedOhad Levy11/04/2013Actions
Blocked by Hammer CLI - Feature #3897: Replace foreman_api with dynamic bindingsClosedMartin Bacovsky12/17/2013Actions

Added by Tomáš Strachota about 11 years ago

Revision dfac02f1 (diff)

Refs #3598 - bumped apipie-bindings version requirement

apipie-bindings < 0.0.6 didn't support setting timeouts

Added by Tomas Strachota about 11 years ago

Revision 01c89046 (diff)

Fixes #3598 - request timeout

Added by mbacovsky about 11 years ago

Revision e29592d8

Merge pull request #110 from tstrachota/headers

Fixes #3598 #4476 - setting locale and timeout of api requests

Added by Martin Bacovsky about 11 years ago

Revision 0a5a5e31

Merge pull request #98 from tstrachota/headers

Refs #3598 - bumped apipie-bindings version requirement

Actions

Also available in: Atom PDF