Issue #2166 has been updated by Markus Roberts. Target version changed from Puppet - 0.25.3 to Puppet - 0.25.4
---------------------------------------- Bug #2166: Puppet client fails to restart after log rotation http://projects.reductivelabs.com/issues/2166 Author: Ian Burrell Status: Accepted Priority: Normal Assigned to: David Lutterkort Category: Red Hat Target version: 0.25.4 Affected version: 0.24.7 Keywords: Branch: We are using puppet 0.24.7 (from EPEL) on Centos 4. We are logging to files and using the Redhat logrotate for log rotation. The puppetmasterd and puppetd rotate at the same time each week (4 am on Sunday). Some of the clients fail to restart. We are using a modified version of the /etc/logrotate.d/puppet that does not redirect output from to /dev/null. But we haven't seen any errors from the logrotate. /var/log/puppet/*log { missingok create 0644 puppet puppet postrotate [ -e /etc/init.d/puppetmaster ] && /etc/init.d/puppetmaster condrestart >/dev/null 2>&1 || true [ -e /etc/init.d/puppet ] && /etc/init.d/puppet reload || true endscript } On the server puppetmaster.log.1: Sun Apr 12 04:02:17 -0700 2009 Puppet (notice): Caught TERM; shutting down Sun Apr 12 04:02:17 -0700 2009 Puppet (notice): Shutting down Sun Apr 12 04:02:23 -0700 2009 Puppet (notice): Reopening log files Sun Apr 12 04:02:23 -0700 2009 Puppet (notice): Starting Puppet server version 0.24.7 Sun Apr 12 04:02:23 -0700 2009 Puppet (notice): Caught TERM; shutting down Sun Apr 12 04:02:23 -0700 2009 Puppet (notice): Shutting down Sun Apr 12 04:02:25 -0700 2009 Puppet (notice): Reopening log files Sun Apr 12 04:02:25 -0700 2009 Puppet (notice): Starting Puppet server version 0.24.7 Sun Apr 12 04:02:26 -0700 2009 Puppet (notice): Caught TERM; shutting down Sun Apr 12 04:02:26 -0700 2009 Puppet (notice): Shutting down Sun Apr 12 04:02:28 -0700 2009 Puppet (notice): Reopening log files Sun Apr 12 04:02:28 -0700 2009 Puppet (notice): Starting Puppet server version 0.24.7 Sun Apr 12 04:02:28 -0700 2009 Puppet (notice): Caught TERM; shutting down Sun Apr 12 04:02:28 -0700 2009 Puppet (notice): Shutting down Server puppetmaster.log: Sun Apr 12 04:02:30 -0700 2009 Puppet (notice): Reopening log files Sun Apr 12 04:02:30 -0700 2009 Puppet (notice): Starting Puppet server version 0.24.7 The multiple restarts are from a bug in the logrotate file which restarts puppetmaster for each log file in /var/log/puppet. On the client in puppet.log.1: Sun Apr 12 04:02:21 PDT 2009 Puppet (notice): Restarting with '/usr/sbin/puppetd --server=edev2.rtkinternal --logdest=/var/log/puppet/puppet.log --waitforcert =500' Sun Apr 12 04:02:21 PDT 2009 Puppet (notice): Shutting down There is nothing in the new puppet.log until the puppetd is started manually. Other clients have error from failing to connect or download files but they stay running. -- 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.
