Error when running puppet agent -t, Could not retrieve catalog from remote server: Error 400 on SERVER

Solution Verified - Updated -

Issue

  • When running the command puppet agent -t the following error is observed on the console
Error 400 on SERVER: "class { '::ntp':\r\n  servers => [ 'xx.xx.xx.xx' ],\r\n}" is not an Array.  It looks to be a String at /etc/puppet/environments/KT_Integris_Prod_Infrastructure_6/modules/ntp/manifests/init.pp:44 on node yourHostname
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
  • Did upgrade of our satellite 6.0 installation to version 6.1 on RHEL 7.
  • Now facing issue with puppet smart class parameter, while adding a puppet module to a host. The smart class parameter uses yaml as parameter type. Getting an error when creating a yaml dump from the GUI.
Unable to generate output, Check log files\n

the output of the command puppet agent -t on the client is

Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 400 on SERVER: Failed to find `xyz.com` via exec: Execution of '/etc/puppet/node.rb xyzl' returned 1:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node `xyz`: Failed to find  `xyz`  via exec: Execution of '/etc/puppet/node.rb xyz' returned 1:
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

This only happens when yaml is used as parameter type, before the upgrade to 6.1 had no problems.

  • In /var/log/foreman/production.log can see :
2015-08-28 08:29:11 [W] Failed to generate external nodes for `xyz`  with undefined local variable or method `logger' for #<Classification::ClassParam:0x000000105daf60>

Environment

  • Red Hat Enterprise Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.