puppet-agent -t command fails with error "Error 400 on SERVER: Failed to find puppetclient.example.com via exec: Execution of '/etc/puppet/node.rb puppetclient.example.com' returned 1"
Issue
puppet-agent -t
command fails with errorError 400 on SERVER: Failed to find puppetclient.example.com via exec: Execution of '/etc/puppet/node.rb puppetclient.example.com' returned 1
- Receiving the following error with
puppet-agent
command:
[root@puppetclient]# puppet agent -tv
Info: Caching certificate for puppetclient.example.com
Info: Caching certificate_revocation_list for ca
Info: Caching certificate for puppetclient.example.com
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 400 on SERVER: Failed to find puppetclient.example.com via exec: Execution of '/etc/puppet/node.rb puppetclient.example.com' returned 1:
Info: Retrieving pluginfacts
- Receiving the following error with
/etc/puppet/node.rb
command on Satellite:
[root@satellite ~]# /etc/puppet/node.rb puppetclient.example.com
Error retrieving node puppetclient.example.com: Net::HTTPPreconditionFailed
Check Foreman's /var/log/foreman/production.log for more information.
Environment
- Red Hat Satellite 6.2
- Puppet
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.