OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004935 [puppet] regular use major sometimes 2012-04-13 21:14 2012-05-14 23:38
Reporter toomasp View Status public  
Assigned To markp
Priority normal Resolution fixed  
Status closed  
Summary 0004935: svcadm restart cswpuppetd results in maintenance state
Description 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 ]
Additional Information 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.
Tags No tags attached.
Attached Files ? file icon svn_diff_puppet_2.7.13.patch [^] (2,022 bytes) 2012-04-13 21:14

- Relationships

-  Notes
(0009806)
markp (developer)
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 (reporter)
2012-04-15 00:57

With the 2.7.11 version
(0009850)
markp (developer)
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 (developer)
2012-05-14 23:38

Fixed in 2.7.14


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker