How to assure that puppet service starts after puppetserver and puppetdb

85 views
Skip to first unread message

wernerbahlke

unread,
Feb 13, 2018, 9:50:02 AM2/13/18
to Puppet Users
We are running Opensource Puppet 4.10.10 on a VM. When booting the VM the puppetserver, puppetdb, mcollective all come up fine. But a systemctl status puppet shows that it could not run, maybe because the pupperserver was not up yet. Any way to assure that it starts later? We tried to changed /lib/systemd/system puppet.service and puppetserver.service with Before and After statements but to no avail. A systemctl restart puppet starts up the service correctly.

Thanks for any hints. Here is the output for systemctl status puppet after boot:

● puppet.service - Puppet agent
   Loaded: loaded (/lib/systemd/system/puppet.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2018-02-13 09:46:31 EST; 50s ago
 Main PID: 1342 (puppet)
    Tasks: 2
   Memory: 131.3M
      CPU: 12.333s
   CGroup: /system.slice/puppet.service
           └─1342 /opt/puppetlabs/puppet/bin/ruby /opt/puppetlabs/puppet/bin/puppet agent --no-daemonize

Feb 13 09:46:36 puppetmaster puppet-agent[1342]: Starting Puppet client version 4.10.10
Feb 13 09:46:36 puppetmaster puppet-agent[1769]: Unable to fetch my node definition, but the agent run will continue:
Feb 13 09:46:36 puppetmaster puppet-agent[1769]: Connection refused - connect(2) for "10.10.254.1" port 8140
Feb 13 09:46:36 puppetmaster puppet-agent[1769]: (/File[/opt/puppetlabs/puppet/cache/facts.d]) Failed to generate additional resources using 'eval_generate': Connection refused - connect(2) for "10.10.254.1" port 8140
Feb 13 09:46:36 puppetmaster puppet-agent[1769]: (/File[/opt/puppetlabs/puppet/cache/facts.d]) Could not evaluate: Could not retrieve file metadata for puppet:///pluginfacts: Connection refused - connect(2) for "10.10.254.1" port 8140
Feb 13 09:46:37 puppetmaster puppet-agent[1769]: (/File[/opt/puppetlabs/puppet/cache/lib]) Failed to generate additional resources using 'eval_generate': Connection refused - connect(2) for "10.10.254.1" port 8140
Feb 13 09:46:37 puppetmaster puppet-agent[1769]: (/File[/opt/puppetlabs/puppet/cache/lib]) Could not evaluate: Could not retrieve file metadata for puppet:///plugins: Connection refused - connect(2) for "10.10.254.1" port 8140
Feb 13 09:46:45 puppetmaster puppet-agent[1769]: Could not retrieve catalog from remote server: Connection refused - connect(2) for "10.10.254.1" port 8140
Feb 13 09:46:45 puppetmaster puppet-agent[1769]: Applied catalog in 0.05 seconds
Feb 13 09:46:45 puppetmaster puppet-agent[1769]: Could not send report: Connection refused - connect(2) for "10.10.254.1" port 8140


Reply all
Reply to author
Forward
0 new messages