Pages

Friday, January 30, 2015

Red Hat Satellite 6.0 - Error 400 on Server

I believe that I have ran into a bug in Red Hat Satellite 6 and puppet.  None of my puppet agents are able to retrieve the catalog from the puppet master anymore.

[root@server ~]# puppet agent -tv
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: wrong number of arguments (2 for 1)
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

After much digging around, I noticed that puppet on my satellite server was at a much newer version (3.7.x) than my client (3.6.x). I think what happened is that when I was messing around with building puppet modules, a tutorial had me create a .gemfile which installed the latest puppet through the gem command.

To resolve the issue, I did:

  • gem uninstall puppet
  • yum reinstall puppet
  • log out and back in
Now if I run "puppet help" it says that it is 3.6.2. I am also able to run puppet agent -tv without error on a client server as well.

No comments: