Solved

puppet client is not taking new hostname

Posted on 2014-10-15
4
420 Views
Last Modified: 2015-01-27
[root@client ~]# puppet agent --test --verbose --server puppet.example.com
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Server hostname 'puppet.example.com' did not match server certificate; expected one of puppet.vlan1.phub.net.cable.rogers.com, DNS:puppet, DNS:puppet.vlan1.phub.net.cable.rogers.com
Info: Retrieving pluginfacts
Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': Server hostname 'puppet.example.com' did not match server certificate; expected one of puppet.vlan1.phub.net.cable.rogers.com, DNS:puppet, DNS:puppet.vlan1.phub.net.cable.rogers.com
Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet://puppet.example.com/pluginfacts: Server hostname 'puppet.example.com' did not match server certificate; expected one of puppet.vlan1.phub.net.cable.rogers.com, DNS:puppet, DNS:puppet.vlan1.phub.net.cable.rogers.com
Wrapped exception:
Server hostname 'puppet.example.com' did not match server certificate; expected one of puppet.vlan1.phub.net.cable.rogers.com, DNS:puppet, DNS:puppet.vlan1.phub.net.cable.rogers.com
Info: Retrieving plugin
Error: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': Server hostname 'puppet.example.com' did not match server certificate; expected one of puppet.vlan1.phub.net.cable.rogers.com, DNS:puppet, DNS:puppet.vlan1.phub.net.cable.rogers.com
Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve file metadata for puppet://puppet.example.com/plugins: Server hostname 'puppet.example.com' did not match server certificate; expected one of puppet.vlan1.phub.net.cable.rogers.com, DNS:puppet, DNS:puppet.vlan1.phub.net.cable.rogers.com
Wrapped exception:
Server hostname 'puppet.example.com' did not match server certificate; expected one of puppet.vlan1.phub.net.cable.rogers.com, DNS:puppet, DNS:puppet.vlan1.phub.net.cable.rogers.com
Error: Could not retrieve catalog from remote server: Server hostname 'puppet.example.com' did not match server certificate; expected one of puppet.vlan1.phub.net.cable.rogers.com, DNS:puppet, DNS:puppet.vlan1.phub.net.cable.rogers.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: Server hostname 'puppet.example.com' did not match server certificate; expected one of puppet.vlan1.phub.net.cable.rogers.com, DNS:puppet, DNS:puppet.vlan1.phub.net.cable.rogers.com
0
Comment
Question by:linuxperson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 

Author Comment

by:linuxperson
ID: 40382990
my puppet server should be puppet.example.com but its expecting old hostname for some reason. How do i fix this .
0
 
LVL 7

Assisted Solution

by:Phil Davidson
Phil Davidson earned 500 total points
ID: 40459008
On the puppet master server and the puppet agent client, can you issue this:

hostname -f

The result may help you understand a potential misconfiguration.
0
 

Author Comment

by:linuxperson
ID: 40541613
i will check
0
 
LVL 7

Accepted Solution

by:
Phil Davidson earned 500 total points
ID: 40543748
I would look at the /etc/hosts file on both servers.  This could have a mapping of an IP address to an older name.  I would also do this command (with root permissions):

find . -name resolv.conf

This will show you where the resolv.conf file is.  That file may have the servers pointing to a DNS server.  That server may have a cache that wants a Puppet server to resolve to what an Administrator may think of as "old."  The DNS server could be the problem or part of the problem.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this post we will learn different types of Android Layout and some basics of an Android App.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question