Adding puppet modules to hostgroup gives 400 errors on hosts

I'm very new to foreman and puppet so please bear with me.

Foreman is running on CentOS 6.5, version 1.5.

I've provisioned a ubuntu 14.04 host from PXE boot, configured host groups,
created a new puppet environment (Engineering_Desktops), and added the
suggested NTP puppet module from the quick start guide. Works great.

I then try to install a puppet module like
filepush https://forge.puppetlabs.com/dominickaiser/filepush
[root@puppetmaster modules]# puppet module install -i
/etc/puppet/environments/Engineering_Desktops/modules dominickaiser/filepush
and after adding the puppet class to my hosts hostgroup the host gives 400
errors like:

root@dell-ubuntu# puppet agent -t
Notice: Using less secure serialization of reports and query parameters for
compatibility
Notice: with older puppet master. To remove this notice, please upgrade
your master(s)
Notice: to Puppet 3.3 or newer.
Notice: See http://links.puppetlabs.com/deprecate_yaml_on_network for more
information.
Info: Retrieving plugin
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/pe_version.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:
Could not find class ct-filepush for dell-ubuntu.domain.name on node
dell-ubuntu.domain.name

Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

The files are listed in the correct environment module dir:
[root@puppetmaster modules]# pwd
/etc/puppet/environments/Engineering_Desktops/modules

[root@puppetmaster modules]# ll
total 28
drwxr-xr-x. 6 root root 4096 May 22 12:29 apt
drwxr-xr-x. 6 root root 4096 Apr 12 2013 filepush
drwxr-xr-x. 5 root root 4096 May 22 12:29 ldap
drwxr-xr-x. 6 root root 4096 May 22 12:29 ntp
drwxr-xr-x. 5 root root 4096 May 22 13:28 puppet-nsswitch
drwxr-xr-x. 7 root root 4096 May 22 13:29 puppet-pam
drwxr-xr-x. 6 root root 4096 May 22 12:29 stdlib

I've had this issue with every module in that list other than NTP, and I'm
not sure how to troubleshoot this.

http log for puppet doesn't give me much insight:
10.0.6.207 - - [22/May/2014:19:45:59 -0400] "GET
/Engineering_Desktops/node/dell-ubuntu.domain.name? HTTP/1.1" 200 5091 "-"
"Ruby"
10.0.6.207 - - [22/May/2014:19:45:59 -0400] "GET
/Engineering_Desktops/file_metadatas/plugins?links=manage&recurse=true&ignore=—+%0A+±+%22.svn%22%0A+±+CVS%0A+±+%22.git%22&checksum_type=md5
HTTP/1.1" 200 39534 "-" "Ruby"
10.0.6.207 - - [22/May/2014:19:46:00 -0400] "POST
/Engineering_Desktops/catalog/dell-ubuntu.domain.name HTTP/1.1" 400 98
"-" "Ruby"
10.0.6.207 - - [22/May/2014:19:46:01 -0400] "PUT
/Engineering_Desktops/report/dell-ubuntu.domain.name HTTP/1.1" 200 16 "-"
"Ruby"

Likely a significant problem here is I have no experience with puppet.

Thanks,
Steve

I think this error might be a bug in the filepush module you're using here.

Puppet's become more strict about the layout of modules and permitted
class + module names over time for a number of (good) reasons. The
class name shouldn't contain a hyphen
(http://docs.puppetlabs.com/puppet/3/reference/lang_reserved.html#classes-and-types)
and the module name must match the class name ("filepush" versus
"ct-filepush").

Try editing init.pp and call it "filepush" instead of "ct-filepush",
import it into Foreman again and then apply that "filepush" class instead.

··· -- Dominic Cleal Red Hat Engineering

On 23/05/14 00:52, Steve Dainard wrote:

I’m very new to foreman and puppet so please bear with me.

Foreman is running on CentOS 6.5, version 1.5.

I’ve provisioned a ubuntu 14.04 host from PXE boot, configured host
groups, created a new puppet environment (Engineering_Desktops), and
added the suggested NTP puppet module from the quick start guide. Works
great.

I then try to install a puppet module like
filepush https://forge.puppetlabs.com/dominickaiser/filepush
[root@puppetmaster modules]# puppet module install -i
/etc/puppet/environments/Engineering_Desktops/modules dominickaiser/filepush
and after adding the puppet class to my hosts hostgroup the host gives
400 errors like:

root@dell-ubuntu# puppet agent -t
Notice: Using less secure serialization of reports and query parameters
for compatibility
Notice: with older puppet master. To remove this notice, please upgrade
your master(s)
Notice: to Puppet 3.3 or newer.
Notice: See http://links.puppetlabs.com/deprecate_yaml_on_network for
more information.
Info: Retrieving plugin
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/pe_version.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: Could not find class ct-filepush for dell-ubuntu.domain.name on
node dell-ubuntu.domain.name

Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

The files are listed in the correct environment module dir:
[root@puppetmaster modules]# pwd
/etc/puppet/environments/Engineering_Desktops/modules

[root@puppetmaster modules]# ll
total 28
drwxr-xr-x. 6 root root 4096 May 22 12:29 apt
drwxr-xr-x. 6 root root 4096 Apr 12 2013 filepush
drwxr-xr-x. 5 root root 4096 May 22 12:29 ldap
drwxr-xr-x. 6 root root 4096 May 22 12:29 ntp
drwxr-xr-x. 5 root root 4096 May 22 13:28 puppet-nsswitch
drwxr-xr-x. 7 root root 4096 May 22 13:29 puppet-pam
drwxr-xr-x. 6 root root 4096 May 22 12:29 stdlib

I’ve had this issue with every module in that list other than NTP, and
I’m not sure how to troubleshoot this.

http log for puppet doesn’t give me much insight:
10.0.6.207 - - [22/May/2014:19:45:59 -0400] “GET
/Engineering_Desktops/node/dell-ubuntu.domain.name? HTTP/1.1” 200 5091
"-" “Ruby"
10.0.6.207 - - [22/May/2014:19:45:59 -0400] “GET
/Engineering_Desktops/file_metadatas/plugins?links=manage&recurse=true&ignore=—+%0A+±+%22.svn%22%0A+±+CVS%0A+±+%22.git%22&checksum_type=md5
HTTP/1.1” 200 39534 “-” “Ruby"
10.0.6.207 - - [22/May/2014:19:46:00 -0400] “POST
/Engineering_Desktops/catalog/dell-ubuntu.domain.name HTTP/1.1” 400 98
”-” “Ruby"
10.0.6.207 - - [22/May/2014:19:46:01 -0400] “PUT
/Engineering_Desktops/report/dell-ubuntu.domain.name HTTP/1.1” 200 16
”-" “Ruby”

Likely a significant problem here is I have no experience with puppet.

Thanks,
Steve


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-users+unsubscribe@googlegroups.com
mailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com
mailto:foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.