[Pkg-puppet-devel] Bug#702310: puppetmaster: puppet-master logrotate restart always fails
root
samuel at unimelb.edu.au
Tue Mar 5 00:10:13 UTC 2013
Package: puppetmaster
Version: 2.6.2-5+squeeze6
Severity: important
Every Sunday morning when logrotate runs puppetmaster fails to restart.
Altering the logrotate script to call "bash -x /etc/init.d/puppetmaster restart" shows that the stop succeeds, but the start fails.
Checking the system logs shows that whilst the puppet-master process reports it's being asked to stop it's still logging activity 2 seconds afterwards which would mean that it's still active when the init script tries to start it again.
Viz:
Mar 3 05:20:26 puppet puppet-master[15182]: Caught TERM; calling stop
[...]
Mar 3 05:20:28 puppet puppet-master[15182]: Compiled catalog for www-test.vlsci.unimelb.edu.au in environment production in 6.37 seconds
I will attempt a work around of modifying the init script to sleep for 10 seconds between the stop and the start, rather than the current 1 second sleep.
-- System Information:
Debian Release: 6.0.7
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-7-pve (SMP w/1 CPU core)
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages puppetmaster depends on:
ii facter 1.5.7-3 a library for retrieving facts fro
ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii puppet-common 2.6.2-5+squeeze6 Centralized configuration manageme
ii ruby1.8 1.8.7.302-2squeeze1 Interpreter of object-oriented scr
Versions of packages puppetmaster recommends:
ii libldap-ruby1.8 0.9.7-1.1 OpenLDAP library binding for Ruby
ii rails 2.3.5-1.2+squeeze7 MVC ruby based framework geared fo
ii ruby [rdoc] 4.5 An interpreter of object-oriented
Versions of packages puppetmaster suggests:
ii apache2 2.2.16-6+squeeze10 Apache HTTP Server metapackage
ii apache2-mpm-worker [a 2.2.16-6+squeeze10 Apache HTTP Server - high speed th
ii libactiverecord-ruby1 2.3.5-1.2+squeeze7 ORM database interface for ruby
pn libapache2-mod-passen <none> (no description available)
ii libmysql-ruby1.8 2.8.2-1 MySQL module for Ruby 1.8
ii librack-ruby 1.1.0-4 A modular Ruby webserver interface
pn libstomp-ruby1.8 <none> (no description available)
pn mongrel <none> (no description available)
pn puppet-el <none> (no description available)
pn stompserver <none> (no description available)
ii vim-puppet 2.6.2-5+squeeze6 syntax highlighting for puppet man
-- Configuration Files:
/etc/logrotate.d/puppetmaster changed:
/var/log/puppet/masterhttp.log {
missingok
notifempty
create 0644 puppet puppet
compress
rotate 4
postrotate
ps auxww | egrep puppet.master | Mail -s "Puppet master status pre-restart" samuel at csamuel.org
[ -x /etc/init.d/puppetmaster ] && ulimit -a && bash -x /etc/init.d/puppetmaster restart || true
ps auxww | egrep puppet.master | Mail -s "Puppet master status post-restart" samuel at csamuel.org
endscript
}
/etc/puppet/fileserver.conf changed:
[files]
path /etc/puppet/files
allow *.vlsci.unimelb.edu.au
[plugins]
allow *.vlsci.unimelb.edu.au
-- no debconf information
More information about the Pkg-puppet-devel
mailing list