Name or service not known until puppet restart

asked 2014-07-09 11:09:38 -0500

timtowerstorm gravatar image

updated 2014-07-09 15:06:19 -0500

ramindk gravatar image

I'm having trouble with puppet interval checks on my nodes not working until I restart the puppet service. When puppet first runs it works correctly and applies all the configuration. But then any future runs of puppet give the error:

Could not request certificate: getaddrinfo: Name or service not known

When I restart the puppet service it works correctly from them on. As per the following logs:

root@lobby ~ » systemctl restart puppet
root@lobby ~ » journalctl -fu puppet   
-- Logs begin at Sat 2014-07-05 16:50:28 EST. --
Jul 10 01:48:53 lobby puppet-agent[204]: Could not request certificate: getaddrinfo: Name or service not known
Jul 10 01:50:53 lobby puppet-agent[204]: Could not request certificate: getaddrinfo: Name or service not known
Jul 10 01:52:53 lobby puppet-agent[204]: Could not request certificate: getaddrinfo: Name or service not known
Jul 10 01:53:03 lobby systemd[1]: Stopping Puppet agent...
Jul 10 01:53:03 lobby puppet-agent[204]: Could not run: SIGTERM
Jul 10 01:53:03 lobby systemd[1]: puppet.service: main process exited, code=exited, status=1/FAILURE
Jul 10 01:53:03 lobby systemd[1]: Unit puppet.service entered failed state.
Jul 10 01:53:03 lobby systemd[1]: Starting Puppet agent...
Jul 10 01:53:03 lobby systemd[1]: Started Puppet agent.
Jul 10 01:53:05 lobby puppet-agent[2004]: Starting Puppet client version 3.6.2
Jul 10 01:53:13 lobby puppet-agent[2012]: (/Stage[main]/Os_default/File[/etc/puppet/puppet.conf]/content)     content changed '{md5}3dedd258273e793f30e13d6518fb1c64' to '{md5}64faaab70b7497e9faa43fa636afae93'
Jul 10 01:53:14 lobby systemd[1]: Stopping Puppet agent...
Jul 10 01:53:14 lobby puppet-agent[2012]: (/Stage[main]/Os_default/Service[puppet]) Failed to call refresh: Could not restart Service[puppet]: Execution of '/usr/sbin/systemctl restart puppet' returned :
Jul 10 01:53:14 lobby puppet-agent[2004]: Caught TERM; calling stop
Jul 10 01:53:14 lobby puppet-agent[2012]: Caught TERM; calling stop
Jul 10 01:53:14 lobby systemd[1]: Starting Puppet agent...
Jul 10 01:53:14 lobby systemd[1]: Started Puppet agent.
Jul 10 01:53:16 lobby puppet-agent[2241]: Starting Puppet client version 3.6.2
Jul 10 01:53:24 lobby puppet-agent[2247]: Finished catalog run in 2.98 seconds
Jul 10 01:54:29 lobby puppet-agent[2506]: Finished catalog run in 3.53 seconds

So all the configuration appears to be correct, it's just that puppet isn't picking up the config until it's restarted or something.

My puppet.conf file is:

[main]
diff = /usr/local/bin/colourdiff
diff_args = -u
logdir = /var/log/puppet
rundir = /var/run/puppet
ssldir = $vardir/ssl
report = false
pluginsync = true

[master]
storeconfigs = true
storeconfigs_backend = puppetdb
noop = true

[agent]
classfile = $vardir/classes.txt
localconfig = $vardir/localconfig
runinterval = 60

Does anyone have any idea what's going on.

I'm running:

root@lobby ~ » uname -a
Linux lobby 3.8.4-1-ARCH #1 SMP PREEMPT Wed Mar 20 22:10:25 CET 2013 x86_64 GNU/Linux

With puppet version 3.6.2 ... (more)

edit retag flag offensive close merge delete