Solved

puppet client is not taking new hostname

Posted on 2014-10-15
4
371 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
  • 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
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…

910 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now