Issue #1254 has been updated by luke.
gringo wrote: > Not sure if this is the same scenario as we see, but here's why things might > break.. > > We use puppet 0.24.6 on CentOS/RedHat 4/5 machines. When puppet is running > (doing stuff) it creates puppetdlock file. If it happens that during puppetd > activity you decide to restart it (or stop + start) the script will issue > TERM signal to the daemon, it will wait some time (~5 seconds) and issue KILL > signal. In such situation puppetd will be killed, but puppetdlock file will > stay. After (re)start puppetd won't work due to existence of the file. > How much time does puppetd needs to be stopped by TERM: > > bash# kill `cat /var/run/puppet/puppetd.pid`; while pgrep puppetd > > /dev/null; do echo -n 'x'; sleep 1; done; echo > xxxxxxxxxxxxxxxxxxxxx > > Why it takes so long ? I don't know.. It should generally not need much time at all to stop after a TERM, but if it is in the middle of a run it will try to finish that run, which can take some time. ---------------------------------------- Bug #1254: puppetd client randomly hangs http://projects.reductivelabs.com/issues/1254 Author: admin Status: Needs more information Priority: Normal Assigned to: community Category: Debian Target version: Complexity: Unknown Patch: None Affected version: 0.24.4 Keywords: This one has been a hard one tracking down but maybe someone else can shed some light on it puppetd clients occasionally hang. and by hang i mean, no longer do config runs the process still appears active: #ps aux | grep puppet root 23419 0.0 0.6 27008 17024 ? Ss May21 0:02 ruby /usr/sbin/puppetd -w 0 if i do an strace on the process, it doesnt appear like anything is borked #strace -p 23419 Process 23419 attached - interrupt to quit select(8, r7, [], [], NULL by looking at the syslog daemon logfile i can see the last thing it was doing was a run: puppetdr23419: Starting Puppet client version 0.24.4 Client os: debian sarge and etch puppetd is started in an init script using: puppetd -w 0 with the following puppetd.conf /etc/puppet/puppet.conf: [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl [puppetd] server = mypuppetserver.com report = true factsync = true factsignore = .svn [puppetmasterd] templatedir=/var/lib/puppet/templates ---------------------------------------- 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://reductivelabs.com/redmine/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 -~----------~----~----~----~------~----~------~--~---
