Puppet agent won't connect to puppet master

asked 2015-06-22 22:52:33 -0600

Anthony57 gravatar image

I want to apply a manifest. I am running open source puppet 3.4.3 on the puppet master and puppet agent nodes. I had one manifest work before. Apparently some changes have been made. I have SSH certificates configured on the puppet agent server and the puppet master server.

Here is the command I ran from the puppet agent server (running Ubuntu):

sudo puppet agent --test --verbose --server puppet.us-west-1.compute.internal

This is the output that I saw:

Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: getaddrinfo: Name or service not known
Info: Retrieving plugin
Error: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not known
Error: /File[/var/lib/puppet/lib]: Could not evaluate: getaddrinfo: Name or service not known Could not retrieve file metadata for puppet://puppet.us-west-1.compute.internal/plugins: getaddrinfo: Name or service not known

Error: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: getaddrinfo: Name or service not known

What is wrong? Why cannot getaddrinfo be evaluated? Rebooting the servers didn't help.

edit retag flag offensive close merge delete

Comments

Does puppet.us-west-1.compute.internal resolve to anything?

giavac gravatar imagegiavac ( 2015-06-23 03:38:58 -0600 )edit

try telnet puppet.us-west-1.compute.internal 8140 or ping puppet.us-west-1.compute.internal to see you get expected output ..........if it throws the error then add the host entry in /etc/hosts file (<correctip> puppet.us-west-1.compute.internal) and then try - Cheers

scm_questor gravatar imagescm_questor ( 2015-06-23 07:23:26 -0600 )edit