Issue #15106 has been updated by Charlie Sharpsteen.

Status changed from Accepted to Investigating

This still affects 2.7.21 and 3.1.1. A re-production case is:

- Install `puppetlabs/apache` using the module tool to `/tmp/test/modules`

-Add an external node classifier:

<pre>
#!/bin/bash

# Simple ENC: /usr/bin/puppet_enc
cat <<EOT
environment: fail
classes:
  apache:
EOT
</pre>

Set up the master's `puppet.conf`:

<pre>
[main]
  filetimeout = 0

[master]
  node_terminus = exec
  external_nodes = /usr/bin/puppet_enc

[fail]
  modulepath = /tmp/test/modules
</pre>

Runs will fail with `Error: Could not retrieve catalog from remote server: 
Error 400 on SERVER: ...` until `site.pp` is created or the filetimeout is 
increased. Will try to find the root cause.

----------------------------------------
Bug #15106: Missing site.pp can cause error 'Cannot find definition Class'
https://projects.puppetlabs.com/issues/15106#change-90050

* Author: Ken Barber
* Status: Investigating
* Priority: Normal
* Assignee: Charlie Sharpsteen
* Category: compiler
* Target version: 
* Affected Puppet version: 2.7.12
* Keywords:  customer
* Branch: 
----------------------------------------
In certain content scenarios, a missing site.pp can cause the error:

    err: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Cannot find definition Class at 
/etc/puppetlabs/puppet/modules/mymodule/manifests/init.pp:3 on node foobar

This can be remedied by touching the site.pp, but since site.pp is no longer 
mandatory this is causing issues for users who are specifically omitting.

This is confirmed at a customer site using PE 2.5.0 running Puppet 2.7.12. This 
is specifically reproducible when the user is using environments, and 
apparently doesn't occur without environments.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to