Master puppet.conf has: node_terminus = exec external_nodes = /etc/puppet/hostdb-ENC.py Master reports: err: Could not find node ''rcf-cm-test.our.org''; cannot compile ENC tests fine by my eyes, but perhaps my YAML is invalid? It tests out fine at http://yaml-online-parser.appspot.com/ Testing the ENC with rcf-cm-test.our.org: # /etc/puppet/hostdb-ENC.py rcf-cm-test.our.org --- classes: - testclass parameters: puppetserver: rcf-cm-master.our.org # -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/78_gcAg9lcMJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
This is Puppet 2.7.3, FWIW. As far as I can see, this is really broken somehow. This ENC below gives the same ''Could not find node'' error even when spitting canned information back: #!/bin/sh echo<<END --- classes: - foo END exit 0 puppet master --no-daemonize --verbose --debug reports: debug: Executing ''/etc/puppet/hostdb-ENC.sh rcf-cm-test.our.org'' debug: Empty response for rcf-cm-test.our.org from exec exec terminus err: Could not find node ''rcf-cm-test.our.org''; cannot compile -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/b6SSBdavgNEJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Stefan Schulte
2011-Aug-23 00:13 UTC
Re: [Puppet Users] Re: Failing ENC effort - a little help?
On Mon, Aug 22, 2011 at 04:51:14PM -0700, jblaine wrote:> This is Puppet 2.7.3, FWIW. > > As far as I can see, this is really broken somehow. > > This ENC below gives the same ''Could not find node'' error even when spitting > canned > information back: > > #!/bin/sh > > echo<<END > --- > classes: > - foo > END > exit 0 > > puppet master --no-daemonize --verbose --debug reports: > > debug: Executing ''/etc/puppet/hostdb-ENC.sh rcf-cm-test.our.org'' > debug: Empty response for rcf-cm-test.our.org from exec exec terminus > err: Could not find node ''rcf-cm-test.our.org''; cannot compileI guess you want to replace "echo" with "cat"?
Indeed. Now if I could figure out why the simple Python output is rejected from the 1st message. At least I know *something* functions now though. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/cKZ9qCTfP_MJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Problem solved. Turns out the Python code was failing only as user puppet because of a fricking PYTHON_EGG_CACHE directory permission issue, and Puppet was "helpfully" hiding all details of that until I hacked around in the Puppet source :| -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/iGnZrW44fDMJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.