Puppet: System Administration Automated

Support

Ticket #646 (closed defect: wontfix)

Opened 2 years ago

Last modified 8 months ago

Puppet behaves differently relative to current working directory

Reported by: mccune Assigned to: luke
Priority: normal Milestone:
Component: library Version: 0.23.2
Severity: normal Keywords: relative directory confdir cwd pwd autoload
Cc: Triage Stage: Needs more info
Attached Patches: None Complexity: Unknown

Description

Ran into this in 0.22.3, and 0.22.4:

Here's the transcript:

# Where is puppet?
ford:~ root# which puppet
/Library/Puppet/Versioned/Shared/reductivelabs.com/puppet/bin/puppet
ford:~ root# gemwhich puppet
/Library/Puppet/Versioned/Shared/reductivelabs.com/puppet/lib/puppet.rb

# CWD is in ~root (This works fine)
ford:~ root# run_puppet_network.sh --verbose --onetime

# Now, change directories:
ford:~ root# cd /Library/Puppet/Versioned/Shared/reductivelabs.com
ford:/Library/Puppet/Versioned/Shared/reductivelabs.com root# run_puppet_network.sh --verbose --onetime
puppetd: invalid option: --confdir=/Library/Puppet/Versioned/Client/config/puppet.network
Could not load ./facter/install.rb: No such file or directory - bin/facter
/Library/Puppet/Versioned/Shared/reductivelabs.com/puppet/lib/puppet/external/gratr/rdot.rb:58: warning: already initialized constant NODE_OPTS
/Library/Puppet/Versioned/Shared/reductivelabs.com/puppet/lib/puppet/external/gratr/rdot.rb:98: warning: already initialized constant EDGE_OPTS
/Library/Puppet/Versioned/Shared/reductivelabs.com/puppet/lib/puppet/external/gratr/rdot.rb:113: warning: already initialized constant GRAPH_OPTS
^CCancelling startup

I suspect that this is because I maintain symlinks to the current versions of puppet and facter, like so:

ford:/Library/Puppet/Versioned/Shared/reductivelabs.com root# ls -l
total 16
drwxr-xr-x    9 root  admin  306 May 24 13:39 .svn
lrwxr-xr-x    1 root  admin   12 Apr 13 08:14 facter -> facter-1.3.6
drwxr-xr-x   17 root  admin  578 Apr 13 08:14 facter-1.3.6
lrwxr-xr-x    1 root  admin   12 Apr 13 08:14 puppet -> puppet-trunk
drwxr-xr-x   19 root  admin  646 Apr 13 08:14 puppet-0.22.3
drwxr-xr-x   19 root  admin  646 May 24 13:39 puppet-0.22.4
drwxr-xr-x   19 root  admin  646 Apr 13 08:14 puppet-trunk

Note, however, that gemwhich and which still return the expected results:

ford:/Library/Puppet/Versioned/Shared/reductivelabs.com root# which puppet
/Library/Puppet/Versioned/Shared/reductivelabs.com/puppet/bin/puppet
ford:/Library/Puppet/Versioned/Shared/reductivelabs.com root# gemwhich puppet
/Library/Puppet/Versioned/Shared/reductivelabs.com/puppet/lib/puppet.rb

Here's what my environment looks like:

GEM_HOME=/Library/Puppet/Resources/rubygems/lib/ruby/gems/1.8

PATH=/Library/Puppet/Resources/ruby/bin:/Library/Puppet/Resources/rubygems/bin:/Library/Puppet/Resources/rubygems/lib/ruby/gems/1.8/bin:/Library/Puppet/Resources/httpd/bin:/Library/Puppet/Resources
/subversion/bin:/Library/Puppet/Versioned/Shared/reductivelabs.com/puppet/bin:/Library/Puppet/Versioned/Shared/reductivelabs.com/facter/bin:/Library/Puppet/Versioned/Shared/Scripts:/bin:/sbin:/usr/
bin:/usr/sbin:/usr/local/teTeX/bin/i386-apple-darwin-current:/opt/local/bin:/usr/local/bin:/home/mccune/bin:/home/mccune/bin

RUBYLIB=/Library/Puppet/Resources/rubygems/lib/ruby:/Library/Puppet/Resources/rubygems/lib/ruby/site_ruby/1.8:/Library/Puppet/Versioned/Shared/reductivelabs.com/puppet/lib:/Library/Puppet/Versioned
/Shared/reductivelabs.com/facter/lib:/Library/Puppet/Versioned/Shared/lib/ruby

Change History

05/24/07 19:55:52 changed by mccune

Ah, one last thing, the script I use to execute puppet looks like:

#!/bin/bash
#
# More or less convenience script to run puppet.
#

source "${EZPUPPET_BASE:=/Library/Puppet}/Versioned/Shared/Environment/global_env.sh"
EZPUPPET_CONFDIR="${EZPUPPET_BASE:=/Library/Puppet}/Versioned/Client/config/puppet.network"

puppetd --confdir="$EZPUPPET_CONFDIR" $*

07/04/07 21:10:11 changed by luke

I don't really understand what the problem is here. Sometimes puppetd fails to respond correctly to --confdir?

07/18/07 18:24:56 changed by luke

  • stage changed from Unreviewed to Needs more info.

10/15/07 19:54:08 changed by mccune

  • version changed from 0.22.4 to 0.23.2.
  • summary changed from Puppet haves differently relative to current working directory to Puppet behaves differently relative to current working directory.

Ah, haven't followed up on this in awhile, and ran into it again today, although in a different manner.

So, the bug I'm currently hitting, which isn't a huge deal, is that puppetmasterd is trying to load the file named "cfengine" relative to the current working directory I start puppet master from. For example:

I have a class called "cfengine".

Script started on Mon Oct 15 13:30:51 2007
[root@manage ~]# bash -x start_puppetmongrel.sh 28140 -vd --trace --color=false
+ '[' -f /etc/bashrc ']'
+ . /etc/bashrc
+++ id -gn
+++ id -un
+++ id -u
++ '[' root = root -a 0 -gt 99 ']'
++ umask 022
++ '[' '' ']'
+ '[' '' ']'
+ EZPUPPET_CONFDIR=/Library/Puppet/Versioned/Server/cluster-orange-test/puppet
+ [[ 28140 -gt 0 ]]
+ MASTERPORT=28140
+ shift
+ puppetmasterd --confdir=/Library/Puppet/Versioned/Server/cluster-orange-test/puppet --pidfile=/Library/Puppet/Generated/Server/var/run/puppetmaster.28140.pid --masterport=28140 -vd --trace --color=false
debug: Parsing /Library/Puppet/Versioned/Server/cluster-orange-test/puppet/puppet.conf
debug: Ignoring confdir set by config file; overridden by cli
err: Removing mount dist: /Library/Puppet/FileServer/dist does not exist
info: mount[dist]: allowing * access
info: mount[inline]: allowing * access
info: mount[dynamic]: allowing * access
err: Removing mount generated: /Library/Puppet/Generated/FileServer/generated does not exist
info: mount[generated]: allowing * access
info: mount[cf_svn]: allowing * access
debug: Creating interpreter
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/globals.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/recipes/subversion.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/unix.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/unix/autohome.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/unix/cron.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/unix/smtp.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/unix/shell.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/unix/backups.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/unix/ssh.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/unix/radmind.pp'
debug: Adding code to main on line 92 in file /Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/unix/radmind.pp
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/unix/skel.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/unix/syslog.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/macosx.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/macosx/custom_scripts.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/macosx/license_matlab.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/macosx/mccunescripts.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/macosx/nvram.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/macosx/macports.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/macosx/printing.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/macosx/root_shell.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/macosx/packages.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/macosx/ds_ldapv3.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/macosx/spell.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/macosx/loginwindow.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/macosx/tex.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/siteconf.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/siteconf/client-manifest.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/siteconf/puppet.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/siteconf/cfengine.pp'
warning: require is a metaparam; this value will inherit to all contained elements
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/class_dispatcher.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/site-local.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/site-local/convenience-scripts.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/site-local/calendar.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange-test/manifests/classes/folders.pp'
debug: Adding code to main on line 74 in file /Library/Puppet/Versioned/Server/cluster-orange-test/manifests/site.pp
info: Parsed manifest in 6.92 seconds
debug: Finishing transaction -608201812 with 0 changes
debug: Finishing transaction -608514140 with 0 changes
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/logs]: Autorequiring File[/Library/Puppet/Generated/Server/var]
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/run]: Autorequiring File[/Library/Puppet/Generated/Server/var]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/private_keys/manage.math.ohio-state.edu.pem]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/private_keys]
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/lib]: Autorequiring File[/Library/Puppet/Generated/Server/var]
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/facts]: Autorequiring File[/Library/Puppet/Generated/Server/var]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/serial]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/certs]: Autorequiring File[/Library/Puppet/Generated/Server/SSL]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/private]: Autorequiring File[/Library/Puppet/Generated/Server/SSL]
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/plugins]: Autorequiring File[/Library/Puppet/Generated/Server/var]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/certs/manage.math.ohio-state.edu.pem]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/certs]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca]: Autorequiring File[/Library/Puppet/Generated/Server/SSL]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/ca_key.pem]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/public_keys/manage.math.ohio-state.edu.pem]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/public_keys]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/ca_crt.pem]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca]
debug: /puppetconfig/ca/File[/Library/Puppet/Versioned/Server/cluster-orange-test/puppet/autosign.conf]: Autorequiring File[/Library/Puppet/Versioned/Server/cluster-orange-test/puppet]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/private]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca]
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/state/state.yaml]: Autorequiring File[/Library/Puppet/Generated/Server/var/state]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/private/password]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/private]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/requests]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/inventory.txt]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca]
debug: /puppetconfig/main/File[/Library/Puppet/Versioned/Server/cluster-orange-test/puppet/namespaceauth.conf]: Autorequiring File[/Library/Puppet/Versioned/Server/cluster-orange-test/puppet]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/csr_manage.math.ohio-state.edu.pem]: Autorequiring File[/Library/Puppet/Generated/Server/SSL]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/certs/ca.pem]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/certs]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/private/ca.pass]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca/private]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/private_keys]: Autorequiring File[/Library/Puppet/Generated/Server/SSL]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/ca_pub.pem]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/ca_crl.pem]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca]
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/state]: Autorequiring File[/Library/Puppet/Generated/Server/var]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/public_keys]: Autorequiring File[/Library/Puppet/Generated/Server/SSL]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/signed]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca]
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/state/state.yaml]: File does not exist
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/plugins]: File does not exist
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/private/ca.pass]: File does not exist
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/private/password]: File does not exist
debug: /puppetconfig/main/File[/Library/Puppet/Versioned/Server/cluster-orange-test/puppet/namespaceauth.conf]: File does not exist
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/facts]: File does not exist
debug: Finishing transaction -608927600 with 0 changes
debug: Finishing transaction -609124520 with 0 changes
notice: Starting Puppet server version 0.23.2


debug: Allowing authenticated client 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid(140.254.92.41) access to puppetmaster.freshness
debug: Allowing authenticated client 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid(140.254.92.41) access to puppetmaster.getconfig
debug: Our client is remote
info: Found default in /Library/Puppet/Versioned/Server/cluster-orange-test/manifests/site.pp
notice: Using default node for backup
debug: No true answers and no default
debug: importing '/root/cfengine'
err: Syntax error at '.' at /root/cfengine:10
debug: Allowing authenticated client 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid(140.254.92.41) access to puppetreports.report
info: Processing reports store for 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid

notice: Caught INT; shutting down
debug: Signal caught here:
debug: /Library/Puppet/Versioned/Shared/reductivelabs.com/puppet-0.23.2/bin/puppetmasterd:300
notice: Shutting down
_root@manage:~\[root@manage ~]# ls -l cfengine
-rwxr-xr-x  1 root root 2366 Jul 25  2006 cfengine
_root@manage:~\[root@manage ~]# head cfengine
#!/bin/sh
#
# cfengine      This shell script takes care of running cfengine
#               at bootup time.
#
# chkconfig: 345 15 35
# description: cfengine configures the system.

# Source function library.
. /etc/rc.d/init.d/functions
_root@manage:~\[root@manage ~]# 
Script done on Mon Oct 15 13:31:34 2007

10/15/07 19:59:12 changed by mccune

  • keywords changed from relative directory confdir cwd pwd to relative directory confdir cwd pwd autoload.

Note, however, the exact same manifest works fine if puppetmasterd is started from a directory which does not contain a file named "cfengine":

I'm guessing the bug is somewhere in the autoload code.

Script started on Mon Oct 15 13:36:55 2007
_root@manage:~\[root@manage ~]# 
(reverse-i-search)`': .': rm -f foobar.txt  ': . /Library/Puppet/Versioned/Shared/Environment/global_env.sh 
(reverse-i-search)`. ': 
[root@manage ~]# 
_root@manage:~\[root@manage ~]# cd /var/emtp  pty/
_root@manage:/var/empty\[root@manage empty]# bash -x start_puppetmongrel.sh 28140 -vd --trace --color=false
+ '[' -f /etc/bashrc ']'
+ . /etc/bashrc
+++ id -gn
+++ id -un
+++ id -u
++ '[' root = root -a 0 -gt 99 ']'
++ umask 022
++ '[' '' ']'
+ '[' '' ']'
+ EZPUPPET_CONFDIR=/Library/Puppet/Versioned/Server/cluster-orange/puppet
+ [[ 28140 -gt 0 ]]
+ MASTERPORT=28140
+ shift
+ puppetmasterd --confdir=/Library/Puppet/Versioned/Server/cluster-orange/puppet --pidfile=/Library/Puppet/Generated/Server/var/run/puppetmaster.28140.pid --masterport=28140 -vd --trace --color=false
debug: Parsing /Library/Puppet/Versioned/Server/cluster-orange/puppet/puppet.conf
debug: Ignoring confdir set by config file; overridden by cli
err: Removing mount dist: /Library/Puppet/FileServer/dist does not exist
info: mount[dist]: allowing * access
info: mount[inline]: allowing * access
info: mount[dynamic]: allowing * access
err: Removing mount generated: /Library/Puppet/Generated/FileServer/generated does not exist
info: mount[generated]: allowing * access
info: mount[cf_svn]: allowing * access
debug: Creating interpreter
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/globals.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/recipes/subversion.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/unix.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/unix/autohome.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/unix/cron.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/unix/smtp.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/unix/shell.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/unix/backups.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/unix/ssh.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/unix/radmind.pp'
debug: Adding code to main on line 92 in file /Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/unix/radmind.pp
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/unix/skel.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/unix/syslog.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/macosx.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/macosx/custom_scripts.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/macosx/mccunescripts.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/macosx/nvram.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/macosx/macports.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/macosx/printing.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/macosx/root_shell.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/macosx/packages.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/macosx/ds_ldapv3.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/macosx/spell.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/macosx/loginwindow.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/macosx/tex.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/macosx/license_matlab.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/siteconf.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/siteconf/client-manifest.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/siteconf/puppet.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/siteconf/cfengine.pp'
warning: require is a metaparam; this value will inherit to all contained elements
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/class_dispatcher.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/site-local.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/site-local/convenience-scripts.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/site-local/calendar.pp'
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/manifests/classes/folders.pp'
debug: Adding code to main on line 74 in file /Library/Puppet/Versioned/Server/cluster-orange/manifests/site.pp
info: Parsed manifest in 3.95 seconds
debug: Finishing transaction -608246612 with 0 changes
debug: Finishing transaction -608516928 with 0 changes
debug: /puppetconfig/main/File[/Library/Puppet/Versioned/Server/cluster-orange/puppet/namespaceauth.conf]: Autorequiring File[/Library/Puppet/Versioned/Server/cluster-orange/puppet]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/csr_manage.math.ohio-state.edu.pem]: Autorequiring File[/Library/Puppet/Generated/Server/SSL]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/certs/ca.pem]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/certs]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/private/ca.pass]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca/private]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/private_keys]: Autorequiring File[/Library/Puppet/Generated/Server/SSL]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/ca_pub.pem]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/ca_crl.pem]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca]
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/state]: Autorequiring File[/Library/Puppet/Generated/Server/var]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/public_keys]: Autorequiring File[/Library/Puppet/Generated/Server/SSL]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/signed]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca]
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/logs]: Autorequiring File[/Library/Puppet/Generated/Server/var]
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/run]: Autorequiring File[/Library/Puppet/Generated/Server/var]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/private_keys/manage.math.ohio-state.edu.pem]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/private_keys]
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/lib]: Autorequiring File[/Library/Puppet/Generated/Server/var]
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/facts]: Autorequiring File[/Library/Puppet/Generated/Server/var]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/serial]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/certs]: Autorequiring File[/Library/Puppet/Generated/Server/SSL]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/private]: Autorequiring File[/Library/Puppet/Generated/Server/SSL]
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/plugins]: Autorequiring File[/Library/Puppet/Generated/Server/var]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/certs/manage.math.ohio-state.edu.pem]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/certs]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca]: Autorequiring File[/Library/Puppet/Generated/Server/SSL]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/ca_key.pem]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/public_keys/manage.math.ohio-state.edu.pem]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/public_keys]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/ca_crt.pem]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca]
debug: /puppetconfig/ca/File[/Library/Puppet/Versioned/Server/cluster-orange/puppet/autosign.conf]: Autorequiring File[/Library/Puppet/Versioned/Server/cluster-orange/puppet]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/private]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca]
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/state/state.yaml]: Autorequiring File[/Library/Puppet/Generated/Server/var/state]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/private/password]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/private]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/requests]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca]
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/inventory.txt]: Autorequiring File[/Library/Puppet/Generated/Server/SSL/ca]
debug: /puppetconfig/ssl/File[/Library/Puppet/Generated/Server/SSL/private/password]: File does not exist
debug: /puppetconfig/ca/File[/Library/Puppet/Generated/Server/SSL/ca/private/ca.pass]: File does not exist
debug: /puppetconfig/main/File[/Library/Puppet/Versioned/Server/cluster-orange/puppet/namespaceauth.conf]: File does not exist
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/plugins]: File does not exist
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/facts]: File does not exist
debug: /puppetconfig/main/File[/Library/Puppet/Generated/Server/var/state/state.yaml]: File does not exist
debug: Finishing transaction -608930368 with 0 changes
debug: Finishing transaction -609123448 with 0 changes
notice: Starting Puppet server version 0.23.2


debug: Allowing authenticated client 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid(140.254.92.41) access to puppetmaster.freshness
debug: Allowing authenticated client 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid(140.254.92.41) access to puppetmaster.getconfig
debug: Our client is remote
info: Found default in /Library/Puppet/Versioned/Server/cluster-orange/manifests/site.pp
notice: Using default node for backup
debug: No true answers and no default
debug: No true answers and no default
debug: No true answers and no default
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/modules/bacula/manifests/init.pp'
info: Autoloaded module bacula
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/modules/bacula/manifests/init.pp'
info: Autoloaded module bacula
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/modules/mysql/manifests/init.pp'
info: Autoloaded module mysql
debug: importing '/Library/Puppet/Versioned/Server/cluster-orange/modules/mysql/manifests/init.pp'
info: Autoloaded module mysql
debug: package provider rpm: Executing '/bin/rpm -ql rpm'
debug: package provider urpmi: Executing '/bin/rpm -ql rpm'
debug: package provider aptrpm: Executing '/bin/rpm -ql rpm'
debug: package provider yum: Executing '/bin/rpm -ql rpm'
debug: mysql: Retrieving template mysql/my.cnf.erb
debug: template[/Library/Puppet/Versioned/Server/cluster-orange/modules/mysql/templates/my.cnf.erb]: Interpolated template /Library/Puppet/Versioned/Server/cluster-orange/modules/mysql/templates/my.cnf.erb in 0.01 seconds
debug:  class already evaluated
debug: bacula::director: Retrieving template bacula/bacula-dir.conf.erb
debug: template[/Library/Puppet/Versioned/Server/cluster-orange/modules/bacula/templates/bacula-dir.conf.erb]: Interpolated template /Library/Puppet/Versioned/Server/cluster-orange/modules/bacula/templates/bacula-dir.conf.erb in 0.07 seconds
debug: File[/var/cfengine/inputs]: Adding default for owner
debug: File[/var/cfengine/inputs]: Adding default for backup
debug: File[/var/cfengine/inputs]: Adding default for group
debug: File[/var/cfengine/inputs]: Adding default for ignore
debug: File[/var/cfengine/inputs]: Adding default for mode
debug: File[/var/cfengine/ppkeys]: Adding default for owner
debug: File[/var/cfengine/ppkeys]: Adding default for backup
debug: File[/var/cfengine/ppkeys]: Adding default for group
debug: File[/var/cfengine/ppkeys]: Adding default for ignore
debug: File[/var/cfengine/ppkeys]: Adding default for mode
debug: File[/etc/bacula]: Adding default for backup
debug: File[/etc/bacula]: Adding default for ignore
debug: File[/var/bacula]: Adding default for backup
debug: File[/var/bacula]: Adding default for ignore
debug: File[/etc/my.cnf]: Adding default for backup
debug: File[/etc/my.cnf]: Adding default for require
debug: File[/etc/my.cnf]: Adding default for notify
debug: File[/etc/my.cnf]: Adding default for ignore
debug: File[/etc/bacula/bacula-dir.conf]: Adding default for owner
debug: File[/etc/bacula/bacula-dir.conf]: Adding default for backup
debug: File[/etc/bacula/bacula-dir.conf]: Adding default for require
debug: File[/etc/bacula/bacula-dir.conf]: Adding default for notify
debug: File[/etc/bacula/bacula-dir.conf]: Adding default for group
debug: File[/etc/bacula/bacula-dir.conf]: Adding default for ignore
debug: File[/etc/bacula/bacula-dir.conf]: Adding default for mode
debug: File[/etc/bacula/conf.dir]: Adding default for owner
debug: File[/etc/bacula/conf.dir]: Adding default for backup
debug: File[/etc/bacula/conf.dir]: Adding default for require
debug: File[/etc/bacula/conf.dir]: Adding default for notify
debug: File[/etc/bacula/conf.dir]: Adding default for group
debug: File[/etc/bacula/conf.dir]: Adding default for ignore
debug: File[/etc/bacula/conf.dir]: Adding default for mode
notice: Compiled configuration for backup in 2.37 seconds
debug: Allowing authenticated client 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid(140.254.92.41) access to fileserver.describe
debug: mount[cf_svn]: Describing /cf_svn/inputs/update.conf for 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid
debug: /File[/disk/0/cfsvn/managed/cfengine/inputs/update.conf]/checksum: Initializing checksum hash
debug: /File[/disk/0/cfsvn/managed/cfengine/inputs/update.conf]: Creating checksum {md5}376286b48f20e2cd125f5c49f188040c
debug: Allowing authenticated client 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid(140.254.92.41) access to fileserver.describe
debug: mount[dynamic]: Describing /dynamic/manage-files/ppkeys/root-140.254.92.35.pub for 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid
debug: /File[/Library/Puppet/Generated/FileServer/dynamic/manage-files/ppkeys/root-140.254.92.35.pub]/checksum: Initializing checksum hash
debug: /File[/Library/Puppet/Generated/FileServer/dynamic/manage-files/ppkeys/root-140.254.92.35.pub]: Creating checksum {md5}0393672629ca2b39a15c7e5a5f9b7998
debug: Allowing authenticated client 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid(140.254.92.41) access to fileserver.describe
debug: mount[dynamic]: Describing /dynamic/manage-files/ppkeys/root-140.254.92.31.pub for 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid
debug: /File[/Library/Puppet/Generated/FileServer/dynamic/manage-files/ppkeys/root-140.254.92.31.pub]/checksum: Initializing checksum hash
debug: /File[/Library/Puppet/Generated/FileServer/dynamic/manage-files/ppkeys/root-140.254.92.31.pub]: Creating checksum {md5}0f6e3eaaff45827115cca13f13dd39d5
debug: Allowing authenticated client 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid(140.254.92.41) access to fileserver.describe
debug: mount[dynamic]: Describing /dynamic/manage-files/ppkeys/root-140.254.92.33.pub for 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid
debug: /File[/Library/Puppet/Generated/FileServer/dynamic/manage-files/ppkeys/root-140.254.92.33.pub]/checksum: Initializing checksum hash
debug: /File[/Library/Puppet/Generated/FileServer/dynamic/manage-files/ppkeys/root-140.254.92.33.pub]: Creating checksum {md5}da4dae8ac78ee4adaf7cf7f1ac195fe3
debug: Allowing authenticated client 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid(140.254.92.41) access to fileserver.describe
debug: mount[dynamic]: Describing /dynamic/manage-files/ppkeys/root-140.254.92.39.pub for 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid
debug: /File[/Library/Puppet/Generated/FileServer/dynamic/manage-files/ppkeys/root-140.254.92.39.pub]/checksum: Initializing checksum hash
debug: /File[/Library/Puppet/Generated/FileServer/dynamic/manage-files/ppkeys/root-140.254.92.39.pub]: Creating checksum {md5}b3ef2b6024c67ea10dd042b9adc2a571
debug: Allowing authenticated client 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid(140.254.92.41) access to fileserver.describe
debug: mount[dynamic]: Describing /dynamic/manage-files/ppkeys/root-140.254.92.36.pub for 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid
debug: /File[/Library/Puppet/Generated/FileServer/dynamic/manage-files/ppkeys/root-140.254.92.36.pub]/checksum: Initializing checksum hash
debug: /File[/Library/Puppet/Generated/FileServer/dynamic/manage-files/ppkeys/root-140.254.92.36.pub]: Creating checksum {md5}de0acf6d68cd0aa8f3043fa99e6f6853
debug: Allowing authenticated client 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid(140.254.92.41) access to fileserver.describe
debug: mount[dynamic]: Describing /dynamic/manage-files/ppkeys/root-140.254.93.76.pub for 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid
debug: /File[/Library/Puppet/Generated/FileServer/dynamic/manage-files/ppkeys/root-140.254.93.76.pub]/checksum: Initializing checksum hash
debug: /File[/Library/Puppet/Generated/FileServer/dynamic/manage-files/ppkeys/root-140.254.93.76.pub]: Creating checksum {md5}b791771fa654f120443bdb926bc6f24a
debug: Allowing authenticated client 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid(140.254.92.41) access to fileserver.describe
debug: mount[dynamic]: Describing /dynamic/manage-files/keys/hosts/backup/localhost.priv for 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid
debug: /File[/Library/Puppet/Generated/FileServer/dynamic/manage-files/keys/hosts/backup/localhost.priv]/checksum: Initializing checksum hash
debug: /File[/Library/Puppet/Generated/FileServer/dynamic/manage-files/keys/hosts/backup/localhost.priv]: Creating checksum {md5}8e4edbadbb4a68ab593049a8b2f9867c
debug: Allowing authenticated client 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid(140.254.92.41) access to fileserver.describe
debug: mount[dynamic]: Describing /dynamic/manage-files/keys/hosts/backup/localhost.pub for 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid
debug: /File[/Library/Puppet/Generated/FileServer/dynamic/manage-files/keys/hosts/backup/localhost.pub]/checksum: Initializing checksum hash
debug: /File[/Library/Puppet/Generated/FileServer/dynamic/manage-files/keys/hosts/backup/localhost.pub]: Creating checksum {md5}641346bbe099061ebd5d90871aa2160d
debug: Allowing authenticated client 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid(140.254.92.41) access to puppetreports.report
info: Processing reports store for 22E45F82-2805-41CD-95AA-9FEA84BCAA23.uuid

notice: Caught INT; shutting down
debug: Signal caught here:
debug: /Library/Puppet/Versioned/Shared/reductivelabs.com/puppet-0.23.2/bin/puppetmasterd:300
notice: Shutting down
_root@manage:/var/empty\[root@manage empty]# 
Script done on Mon Oct 15 13:37:49 2007

04/08/08 17:37:12 changed by luke

  • status changed from new to closed.
  • resolution set to wontfix.

I think both Puppet and Facter are trying to greedily load files for you, and I'm not sure you can fix this without removing '.' from Ruby's search path. If you have a 'puppet' or 'facter' directory in your CWD, then the respective tool will try to autoload various things in that directory. It's not a bug in autoloading, it's because '.' is in your $LOAD_PATH.

Not much I can say other than "don't do that". Maybe 'cd /' in your run script?