On Monday, February 1, 2016 at 10:27:58 AM UTC-6, Olivier Lemoine wrote:
 

> After, i want to change the environment of my new node to "homologation", 
> so i change it in "/etc/puppet/puppet.conf" on stestsles03.local.
>
> And when i run again "puppet agent --test" i have this error : 
>
> stestsles03:~ # puppet agent --test
> err: Could not retrieve catalog from remote server: Error 400 on SERVER: 
> Could not find default node or by name with 'stestsles03.domain.local, 
> stestsles03.domain, stestsles03' on node stestsles03.domain.local
> warning: Not using cache on failed catalog
> err: Could not retrieve catalog; skipping run
>
>

The master is complaining that it cannot match any node block to the node's 
identifier (which by default is its hostname, apparently 
"stestsles03.domain.local").  It tries the whole hostname, and it tries 
each nonempty substring it can construct by removing one name segment, and 
finally it tries to fall back to a default node block; none of these is 
present in the new environment.


I have testing this : 
>
> - Cleaning node on the puppet master : "puppet cert --clean 
> stestsles03.domain.local", delete ssl directory in "/var/lib/puppet" and 
> execute agent to create new ssl certificate (I cut/copy my node 
> decalaration (manifests) from developpement environnement to homologation 
> environnement) 
>
>

You should not need to manipulate the node's certificate to move it between 
environments, but if the new environment contains any node blocks at all 
then it must be able to match the node to at least one of them.  Perhaps 
the thing to do is to copy the appropriate node block into a manifest 
somewhere in the new environment's site manifest directory, but if you are 
intentionally avoiding default node blocks then it is by no means clear 
that whatever node declaration matches your node in its original 
environment would still be appropriate for it in its new environment.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/09a91efa-b061-448d-a301-46e162a28ef7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to