?
Solved

puppet client is not taking new hostname

Posted on 2014-10-15
4
Medium Priority
?
469 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 2000 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 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses

777 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