Solved

puppet client is not taking new hostname

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
batch file problem 5 46
curl SSL certificate unable to get local issuer certificate 15 67
how to install java on RHEL image on EC2 4 27
error log using ftp 7 40
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This is about my first experience with programming Arduino.
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

770 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