Solved

puppet client is not taking new hostname

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

20 Experts available now in Live!

Get 1:1 Help Now