Mantis - puppet
Viewing Issue Advanced Details
4935 regular use major sometimes 2012-04-13 21:14 2012-05-14 23:38
toomasp  
markp  
normal  
closed  
fixed  
none    
none  
0004935: svcadm restart cswpuppetd results in maintenance state
Hello,

Manual restarts of puppet result in maintenance state in fairly often. IE:

[ Apr 13 18:40:17 Executing start method ("/var/opt/csw/svc/method/svc-cswpuppetd start") ]
Starting Puppet client services: puppetd
[ Apr 13 18:40:19 Method "start" exited with status 0 ]
[ Apr 13 18:40:19 Stopping because all processes in service exited. ]
[ Apr 13 18:40:19 Executing stop method ("/var/opt/csw/svc/method/svc-cswpuppetd stop") ]
Stopping Puppet client services:/var/opt/csw/svc/method/svc-cswpuppetd: kill: no such process
 puppetd
[ Apr 13 18:40:20 Method "stop" exited with status 0 ]
[ Apr 13 18:40:20 Executing start method ("/var/opt/csw/svc/method/svc-cswpuppetd start") ]
Starting Puppet client services: puppetd
[ Apr 13 18:40:22 Method "start" exited with status 0 ]
[ Apr 13 18:40:22 Stopping because all processes in service exited. ]
[ Apr 13 18:40:22 Executing stop method ("/var/opt/csw/svc/method/svc-cswpuppetd stop") ]
Stopping Puppet client services:/var/opt/csw/svc/method/svc-cswpuppetd: kill: no such process
 puppetd
[ Apr 13 18:40:22 Method "stop" exited with status 0 ]
[ Apr 13 18:40:22 Executing start method ("/var/opt/csw/svc/method/svc-cswpuppetd start") ]
Starting Puppet client services: puppetd
[ Apr 13 18:40:24 Method "start" exited with status 0 ]
[ Apr 13 18:40:24 Stopping because all processes in service exited. ]
[ Apr 13 18:40:24 Executing stop method ("/var/opt/csw/svc/method/svc-cswpuppetd stop") ]
Stopping Puppet client services:/var/opt/csw/svc/method/svc-cswpuppetd: kill: no such process
 puppetd
[ Apr 13 18:40:25 Method "stop" exited with status 0 ]
[ Apr 13 18:40:25 Executing start method ("/var/opt/csw/svc/method/svc-cswpuppetd start") ]
Starting Puppet client services: puppetd
[ Apr 13 18:40:26 Method "start" exited with status 0 ]
[ Apr 13 18:40:26 Stopping because all processes in service exited. ]
[ Apr 13 18:40:26 Executing stop method ("/var/opt/csw/svc/method/svc-cswpuppetd stop") ]
Stopping Puppet client services:/var/opt/csw/svc/method/svc-cswpuppetd: kill: no such process
 puppetd
[ Apr 13 18:40:27 Method "stop" exited with status 0 ]
[ Apr 13 18:40:27 Restarting too quickly, changing state to maintenance ]
I compared the SMF methods with CentOS packages and noticed that CentOS sends kill -TERM first, then waits for 0.1s and then follows up with a stronger kill. This seems to work much better for puppet.

IE:

[ Apr 13 21:49:47 Executing stop method ("/var/opt/csw/svc/method/svc-cswpuppetd stop") ]
Stopping Puppet client services: puppetd
[ Apr 13 21:49:55 Method "stop" exited with status 0 ]
[ Apr 13 21:49:55 Executing start method ("/var/opt/csw/svc/method/svc-cswpuppetd start") ]
Starting Puppet client services: puppetd
[ Apr 13 21:50:11 Method "start" exited with status 0 ]

As I was generating the patch, I also bumped the version to 2.7.13.
? file icon svn_diff_puppet_2.7.13.patch [^] (2,022 bytes) 2012-04-13 21:14
Issue History
2012-04-13 21:14 toomasp New Issue
2012-04-13 21:14 toomasp File Added: svn_diff_puppet_2.7.13.patch
2012-04-14 20:06 markp Status new => assigned
2012-04-14 20:06 markp Assigned To => markp
2012-04-14 20:07 markp Note Added: 0009806
2012-04-15 00:57 toomasp Note Added: 0009808
2012-05-03 16:56 markp Note Added: 0009850
2012-05-03 16:56 markp Status assigned => resolved
2012-05-03 16:56 markp Resolution open => fixed
2012-05-14 23:38 markp Note Added: 0009861
2012-05-14 23:38 markp Status resolved => closed

Notes
(0009806)
markp   
2012-04-14 20:07   
There was a problem with 2.7.12 that I've not had a chance to test if it's gone to 2.7.13 - hence not releasing anything past 2.7.11, yet (it broke augeas support).

What version were you having the service restart problems with?
(0009808)
toomasp   
2012-04-15 00:57   
With the 2.7.11 version
(0009850)
markp   
2012-05-03 16:56   
I'm just about to release 2.7.14 and this issue is resolved for me. If you could test when the package is release too please that would be great.
(0009861)
markp   
2012-05-14 23:38   
Fixed in 2.7.14