On Thursday, September 19, 2013 3:14:02 AM UTC-5, Geoff Galitz wrote:
>
>
> Hi.
>
> The docs say:
>
> -----------------
> timeout
>
> The maximum time the command should take. If the command takes longer than 
> the timeout, the command is considered to have failed and will be stopped. 
> The timeout is specified in seconds. The default timeout is 300 seconds and 
> you can set it to 0 to disable the timeout
> -------------------
>
>
> Does that mean if the timeout is exceeded puppet will skip to the next 
> operation, or will it actually try to terminate the command was exec'd?
>


I read the docs as saying that Puppet will attempt to kill the child 
process wherein the command is running.  I don't see how else to interpret 
"will be stopped".

 

>  
>
> I ask because we have a case where a script is running, it gets hung up 
> (on hardware issues) and the puppet run stalls forever.  The default 
> timeout does not seem to be honored.
>
>

It seems reasonable to posit that when the timeout expires, Puppet's 
attempt to kill the hung script itself hangs.  I suspect that you could 
confirm as much by obtaining an strace of the failure.  I'm not sure 
whether there is any way Puppet could be improved to deal with such cases, 
but you should consider filing a ticket.  Even if the issue cannot be 
fixed, a ticket would have documentary value.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to