Issue #1389 has been updated by James Turnbull.
So... We think we know what's going on here:
If you use LDAP/external nodes and AST (node {}) nodes then there must be an
entry for all nodes OR a default node. The simple work-around is to specify an
empty default node in all node sources, for example in AST:
<pre>
node default {}
</pre>
And then a default node in LDAP or your external node source.
----------------------------------------
Bug #1389: puppetmaster completely ignores any found external nodes if any
nodes are found in manifests first.
http://projects.puppetlabs.com/issues/1389
Author: Mathieu Sauve-Frankel
Status: Rejected
Priority: Normal
Assigned to:
Category: node
Target version: 0.24.5
Patch: None
Affected version: 0.25.4
Keywords: external LDAP node nodes
Branch:
I discovered this while trying to set up ldap nodes and external node support.
I had enabled ldap node support, but had failed to remove all of the node
declarations from my on-disk manifests.
When I tried to run a node against the pupeptmaster I was receiving messages
such as:
<pre>
"Could not find default node or by name with '%s'"
</pre>
This message is found in Puppet::Parser::Compiler::evaluate_ast_node.
After adding some Puppet.debug statements in indirector/node/ldap.rb and
indirector/node/exec.rb (I tested both),
I verified that indirector was indeed finding my external nodes, but the
compiler was ignoring them for some reason.
Adding Puppet.debugs in evaluate_ast_node allowed me to see the contents of
@parser.nodes, this is when
I realized that there was still 1 node being loaded from a local manifest.
After removing this errant node statement both ldap nodes and external nodes
started behaving as expected.
I think that either more information should be added to the error message, or
that the parser should be fixed to
either completely ignore node statements from manifests when node_terminus is
set to something other than default,
or that it should be fixed to respect pre 0.23 behaviour that allows nodes to
be set both locally and externally at the same time.
--
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.