Issue #7713 has been updated by Chris Custine.

I have another case for this change.  Erlang based packages such as couchdb or 
rabbitmq are unable to be stopped/restarted after they are installed (and 
subsequently started) with apt-get.  Apparently erlang ignores the signals in 
this case, so if you have a manifest that installs a package, then reconfigures 
it via templates, etc. the puppet run will hang when it tries to restart it. 
The only way to solve this is to kill the process and start it up again.  
https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/448682/comments/7

So at minimum, a timeout would allow some kind obvious feedback without hanging 
indefinitely.  A nice way to specify a kill command as a fallback so that the 
puppet run is successful would be a bonus.
----------------------------------------
Bug #7713: puppet client hangs while stopping service hang
https://projects.puppetlabs.com/issues/7713

Author: Peter Meier
Status: Needs More Information
Priority: Normal
Assignee: Peter Meier
Category: service
Target version: 
Affected Puppet version: 2.6.8
Keywords: service, timeout
Branch: 


I had some service (iscsid) which hung for ever for some reason (missing config 
file), when stopping it via `service iscsid stop`.

As puppet should stop that service, puppet hung as well. Over days...

I think it's pretty reasonable to expect services to be stopped after some time 
(like 10 minutes?) and if they didn't return so far, give up (and kill the 
service process) and mark the service resource as failed.

Additionally an additional parameter could be added to the service type: 
`command_timeout` which could tweak the default of how long puppet will wait to 
get some feedback from the start, stop, status command.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to