Ask Your Question
0

domain change

asked 2016-07-12 09:49:05 -0500

nobody gravatar image

updated 2016-07-12 09:50:53 -0500

Hi all! I use puppetmaster 4.5.2 and puppetdb version 4.1.2 . I have 2 servers: first - puppetmaster, and second - puppetdb/postgresql. Yesterday i change my domain zone. For example, i had puppet.my.domain and puppetdb.my.domain, and now i have puppet.local and puppetdb.local If i try execute puppet agent -t i get an error:

    puppetdb root # puppet agent --no-daemonize --onetime --verbose
    Warning: Unable to fetch my node definition, but the agent run will continue:
    Warning: Error 400 on SERVER: Could not retrieve facts for puppetdb.local: Failed to find facts from PuppetDB at puppet:8140: Failed to execute '/pdb/query/v4/nodes/puppetdb.local/facts' on at least 1 of the following 'server_urls': https://puppetdb.local:8081
    Info: Retrieving pluginfacts
    Info: Retrieving plugin
    Info: Loading facts
    Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to execute '/pdb/cmd/v1?checksum=b0d2c95defde04ac3c5e6ce878345b1afa59e188&version=4&certname=puppetdb.local&command=replace_facts' on at least 1 of the following 'server_urls': https://puppetdb.local:8081
    Error: Could not retrieve catalog; skipping run



    puppet root # puppet agent -t
    Warning: Unable to fetch my node definition, but the agent run will continue:
    Warning: Error 400 on SERVER: Could not retrieve facts for puppet.local: Failed to find facts from PuppetDB at puppet:8140: Failed to execute '/pdb/query/v4/nodes/puppet.local/facts' on at least 1 of the following 'server_urls': https://puppetdb.local:8081
    Info: Retrieving pluginfacts
    Info: Retrieving plugin
    Info: Loading facts
    Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to execute '/pdb/cmd/v1?checksum=1cee78b7e9147a84d55d41dcc6a64ba91b58b519&version=4&certname=puppet.local&command=replace_facts' on at least 1 of the following 'server_urls': https://puppetdb.local:8081
    Warning: Not using cache on failed catalog
    Error: Could not retrieve catalog; skipping run

All servers are reachable (ping, telnet - OK), i think something wrong with puppetdb. Someone could help me, please?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-07-12 11:54:42 -0500

nobody gravatar image

updated 2016-07-12 11:54:53 -0500

the problem was with SSL-certificates. Solution is:

    On puppetdb:
    1. rm -rf /etc/puppetlabs/puppet/ssl*
    2. rm -rf /etc/puppetlabs/puppetdb/ssl/*
    On puppetmaster:
    1. puppet cert clean YOUR_PUPPETDB_HOSTNAME --all
    On puppetdb:
    3. puppet agent -t
    4. puppetdb ssl-setup

Done!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-07-12 09:49:05 -0500

Seen: 542 times

Last updated: Jul 12 '16