Feature #4716

Add timeouts for driver actions

Added by Ruben S. Montero almost 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:08/17/2016
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:Drivers - VM
Target version:Release 5.2
Resolution:fixed Pull request:

Description

When a driver action hangs it keeps the associated thread used for the given host. This may stall all the actions for that host. This issue is to add a configurable timeout (per driver) for the execution of driver actions. Note that some of this actions already includes a timeout, this is to add support for it at a more abstract layer.


Related issues

Related to Feature #4707: double-check and retry ec2 api methods and responses Closed 08/12/2016

Associated revisions

Revision f40e263e
Added by Javi Fontan almost 5 years ago

feature #4716: add timeout to CommandManager

Add timeout parameter to Local and RemoteCommand. It also spawns new
processes in a new process group. This makes easier to kill all
children when timeout happens.

This change makes it incompatible with ruby < 1.9.2.

Revision db0179f5
Added by Javi Fontan almost 5 years ago

feature #4716: added timeout to SshStreamCommand

kill method duplicated as it is not a GenericCommand. It should be moved
elsewhere.

Revision 6dc1c772
Added by Javi Fontan almost 5 years ago

feature #4716: add timeout to SshStream#wait_for_command

Revision a0b87e91
Added by Javi Fontan almost 5 years ago

feature #4716: pass timeout in OpenNebulaDriver

Revision 24b3b9d6
Added by Javi Fontan almost 5 years ago

feature #4716: add --timeout parameter to drivers

Revision 954ac536
Added by Javi Fontan almost 5 years ago

feature #4716: add timeout to CommandManager

Add timeout parameter to Local and RemoteCommand. It also spawns new
processes in a new process group. This makes easier to kill all
children when timeout happens.

This change makes it incompatible with ruby < 1.9.2.

Revision af0e87d3
Added by Javi Fontan almost 5 years ago

feature #4716: added timeout to SshStreamCommand

kill method duplicated as it is not a GenericCommand. It should be moved
elsewhere.

Revision 199d02bb
Added by Javi Fontan almost 5 years ago

feature #4716: add timeout to SshStream#wait_for_command

Revision 581269b0
Added by Javi Fontan almost 5 years ago

feature #4716: pass timeout in OpenNebulaDriver

Revision 7006a984
Added by Javi Fontan almost 5 years ago

feature #4716: add --timeout parameter to drivers

Revision 5dcdd2af
Added by Javi Fontan almost 5 years ago

f #4716: add timeout parameter info to one.conf

Revision 6cb9635b
Added by Javi Fontan almost 5 years ago

f #4716: add timeout to SshStreamCommand#run

Revision d033bce5
Added by Javi Fontan almost 5 years ago

F #4716: pass timeout to wait function in SshStream

Revision ab9b2e8e
Added by Jaime Melis almost 5 years ago

F #4716: Cast the timeout to integer

Revision 4c2c698e
Added by Jaime Melis almost 5 years ago

F #4716: Fix bug in stderr handling (GenericCommand)

Revision 12fb7b5f
Added by Jaime Melis almost 5 years ago

F #4716: Tune default EC2 driver configuration

- Kill driver actions after 10 mins
- VMM driver can run in parallel

History

#1 Updated by Ruben S. Montero almost 5 years ago

  • Assignee changed from Jaime Melis to Javi Fontan

#2 Updated by Jaime Melis almost 5 years ago

  • Related to Feature #4707: double-check and retry ec2 api methods and responses added

#3 Updated by Javi Fontan almost 5 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Also available in: Atom PDF