Some time ago i sent to the list a problem i was having with facts on
fedora core 6 and wasn''t able to find a solution at that time, but with
the release of RHEL5 and CentOS 5 based on fc6 i have hit the problem again.
i have written several facts to collect information about a clients
network and i am also using the vmware fact from the wiki. i have
separated my original fact into several smaller facts in an effort to
find the fault. i have been using these facts successfully on CentOS 4
for months.
After the facts are run on a fc6, rhel5 or centos5 client puppet stops.
i have added a ''puts'' at the end of each fact to show when
they are each
complete and the output shows that each fact is being executed to
completion, note the "Finshed....." at the bottom of the output below.
puppet will sit indefinitely until interrupted with ctrl+c.
The facts work perfectly well on fc5 and centos4 clients.
I have tested i386 and x86_64 arch and both do the same, i have tested
on vmware and physical and both do the same. puppet does NOT stop when
called with the "-o" (once) command line option, when using
"-o"
everything runs perfectly and to completion.
I have attached my facts and would appreciate if someone could test them
and possibly shed some light on where puppet is stopping. I find it
really interesting that it runs fine when the "-o" (once) command line
option is specified.
below is the output from `puppetd --debug --factsync`
Ben
# rm -rf /var/lib/puppet/facts/*
# puppetd --debug --trace --factsync
/usr/lib/ruby/site_ruby/1.8/facter.rb:420: warning: Insecure world
writable dir /home/INTERNAL, mode 041777
/usr/lib/ruby/site_ruby/1.8/facter.rb:420: warning: Insecure world
writable dir /home/INTERNAL, mode 041777
/usr/lib/ruby/site_ruby/1.8/facter.rb:420: warning: Insecure world
writable dir /home/INTERNAL, mode 041777
/usr/lib/ruby/site_ruby/1.8/facter.rb:420: warning: Insecure world
writable dir /home/INTERNAL, mode 041777
/usr/lib/ruby/site_ruby/1.8/facter.rb:420: warning: Insecure world
writable dir /home/INTERNAL, mode 041777
debug: puppet: Setting vardir to ''/var/lib/puppet''
debug: puppet: Setting logdir to ''/var/log/puppet''
debug: puppet: Setting rundir to ''/var/run/puppet''
debug: puppet: Setting ssldir to ''$vardir/ssl''
debug: puppet: Setting report to ''true''
debug: puppet: Setting autoflush to ''true''
debug: puppetd: Setting classfile to ''$vardir/classes.txt''
debug: puppetd: Setting localconfig to
''$vardir/localconfig''
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:229: warning: Insecure
world writable dir /home/INTERNAL, mode 041777
debug: /puppetconfig/puppet/File[/var/lib/puppet/plugins]:
Autorequiring File[/var/lib/puppet]
debug: /puppetconfig/puppetd/File[/var/lib/puppet/classes.txt]:
Autorequiring File[/var/lib/puppet]
debug: /puppetconfig/puppet/File[/var/lib/puppet/facts]:
Autorequiring File[/var/lib/puppet]
debug: /puppetconfig/puppet/File[/etc/puppet/namespaceauth.conf]:
Autorequiring File[/etc/puppet]
debug: /puppetconfig/puppet/File[/var/lib/puppet/state/graphs]:
Autorequiring File[/var/lib/puppet/state]
debug: /puppetconfig/puppetd/File[/var/log/puppet/puppetd.log]:
Autorequiring File[/var/log/puppet]
debug: /puppetconfig/puppet/File[/var/lib/puppet/state]:
Autorequiring File[/var/lib/puppet]
debug: /puppetconfig/puppetd/File[/var/log/puppet/http.log]:
Autorequiring File[/var/log/puppet]
debug: /puppetconfig/puppet/File[/var/lib/puppet/lib]: Autorequiring
File[/var/lib/puppet]
debug:
/puppetconfig/puppetd/File[/var/lib/puppet/state/puppetdlock]:
Autorequiring File[/var/lib/puppet/state]
debug: /puppetconfig/puppet/File[/var/lib/puppet/state/state.yaml]:
Autorequiring File[/var/lib/puppet/state]
debug: /puppetconfig/puppet/File[/var/lib/puppet/templates]:
Autorequiring File[/var/lib/puppet]
debug: /puppetconfig/puppetd/File[/var/lib/puppet/localconfig]:
Autorequiring File[/var/lib/puppet]
debug: /puppetconfig/puppet/File[/var/lib/puppet/ssl]: Autorequiring
File[/var/lib/puppet]
debug: /puppetconfig/puppetd/File[/var/lib/puppet/localconfig]: File
does not exist
debug: /puppetconfig/puppetd/File[/var/lib/puppet/localconfig]:
Changing owner,mode
debug: /puppetconfig/puppetd/File[/var/lib/puppet/localconfig]: 2
change(s)
debug:
/puppetconfig/puppetd/File[/var/lib/puppet/localconfig]/owner: File
does not exist; cannot set owner
debug: /puppetconfig/puppetd/File[/var/lib/puppet/localconfig]/mode:
File does not exist; cannot set mode
debug: /puppetconfig/puppetd/File[/var/log/puppet/http.log]: File
does not exist
debug: /puppetconfig/puppetd/File[/var/log/puppet/http.log]:
Changing owner,mode
debug: /puppetconfig/puppetd/File[/var/log/puppet/http.log]: 2 change(s)
debug: /puppetconfig/puppetd/File[/var/log/puppet/http.log]/owner:
File does not exist; cannot set owner
debug: /puppetconfig/puppetd/File[/var/log/puppet/http.log]/mode:
File does not exist; cannot set mode
debug: /puppetconfig/puppet/File[/var/lib/puppet/state/state.yaml]:
Changing mode
debug: /puppetconfig/puppet/File[/var/lib/puppet/state/state.yaml]:
1 change(s)
debug:
/puppetconfig/puppet/File[/var/lib/puppet/state/state.yaml]/mode:
mode changed ''640'' to ''660''
debug:
/puppetconfig/puppetd/File[/var/lib/puppet/state/puppetdlock]: File
does not exist
debug: /puppetconfig/puppet/File[/etc/puppet/namespaceauth.conf]:
File does not exist
debug: /puppetconfig/puppetd/File[/var/log/puppet/puppetd.log]: File
does not exist
debug: /puppetconfig/puppetd/File[/var/log/puppet/puppetd.log]:
Changing owner,mode
debug: /puppetconfig/puppetd/File[/var/log/puppet/puppetd.log]: 2
change(s)
debug:
/puppetconfig/puppetd/File[/var/log/puppet/puppetd.log]/owner: File
does not exist; cannot set owner
debug: /puppetconfig/puppetd/File[/var/log/puppet/puppetd.log]/mode:
File does not exist; cannot set mode
debug: /puppetconfig/puppet/File[/var/lib/puppet/plugins]: File does
not exist
debug: Finishing transaction 23456259974580 with 7 changes
debug: Creating default schedules
notice: Starting Puppet client version 0.22.3
debug: Loaded state in 0.02 seconds
debug: Puppet::Network::Client::File: defining fileserver.describe
debug: Puppet::Network::Client::File: defining fileserver.list
debug: Puppet::Network::Client::File: defining fileserver.retrieve
info: Retrieving facts
debug: Calling fileserver.list
debug: Calling fileserver.describe
debug: /fact_collector/File[/var/lib/puppet/facts]: Changing checksum
debug: /fact_collector/File[/var/lib/puppet/facts]: 1 change(s)
debug: /fact_collector/File[/var/lib/puppet/facts]/checksum: setting
time (currently {time}Tue Apr 17 14:30:08 +1000 2007)
debug: /fact_collector/File[/var/lib/puppet/facts]/checksum:
Replacing /var/lib/puppet/facts checksum {time}Tue Apr 17 13:21:42
+1000 2007 with {time}Tue Apr 17 14:30:08 +1000 2007
notice: /fact_collector/File[/var/lib/puppet/facts]/checksum:
checksum changed ''{time}Tue Apr 17 13:21:42 +1000 2007'' to
''{time}Tue Apr 17 14:30:08 +1000 2007''
debug: Calling fileserver.list
debug: /fact_collector/File[/var/lib/puppet/facts/home.rb]: File
does not exist
debug: Calling fileserver.describe
debug: /fact_collector/File[/var/lib/puppet/facts/home.rb]: Changing
ensure
debug: /fact_collector/File[/var/lib/puppet/facts/home.rb]: 1 change(s)
debug: /fact_collector/File[/var/lib/puppet/facts/home.rb]/ensure:
setting file (currently absent)
debug: Calling fileserver.retrieve
notice: /fact_collector/File[/var/lib/puppet/facts/home.rb]/ensure:
created
debug: Calling fileserver.list
debug:
/fact_collector/File[/var/lib/puppet/facts/network-ipcalc.rb]: File
does not exist
debug: Calling fileserver.describe
debug:
/fact_collector/File[/var/lib/puppet/facts/network-ipcalc.rb]:
Changing ensure
debug:
/fact_collector/File[/var/lib/puppet/facts/network-ipcalc.rb]: 1
change(s)
debug:
/fact_collector/File[/var/lib/puppet/facts/network-ipcalc.rb]/ensure:
setting file (currently absent)
debug: Calling fileserver.retrieve
notice:
/fact_collector/File[/var/lib/puppet/facts/network-ipcalc.rb]/ensure:
created
debug: Calling fileserver.list
debug:
/fact_collector/File[/var/lib/puppet/facts/network-bootproto.rb]:
File does not exist
debug: Calling fileserver.describe
debug:
/fact_collector/File[/var/lib/puppet/facts/network-bootproto.rb]:
Changing ensure
debug:
/fact_collector/File[/var/lib/puppet/facts/network-bootproto.rb]: 1
change(s)
debug:
/fact_collector/File[/var/lib/puppet/facts/network-bootproto.rb]/ensure:
setting file (currently absent)
debug: Calling fileserver.retrieve
debug:
/fact_collector/File[/var/lib/puppet/facts/network-bootproto.rb]/checksum:
Replacing /var/lib/puppet/facts/network-bootproto.rb checksum
{md5}1bf408adeae82cf3a37250b18a81b5d8 with
{md5}5175fb87cd8ee7946796667f8887a0fe
notice:
/fact_collector/File[/var/lib/puppet/facts/network-bootproto.rb]/ensure:
created
debug: Calling fileserver.list
debug: /fact_collector/File[/var/lib/puppet/facts/network-count.rb]:
File does not exist
debug: Calling fileserver.describe
debug: /fact_collector/File[/var/lib/puppet/facts/network-count.rb]:
Changing ensure
debug: /fact_collector/File[/var/lib/puppet/facts/network-count.rb]:
1 change(s)
debug:
/fact_collector/File[/var/lib/puppet/facts/network-count.rb]/ensure:
setting file (currently absent)
debug: Calling fileserver.retrieve
notice:
/fact_collector/File[/var/lib/puppet/facts/network-count.rb]/ensure:
created
debug: Calling fileserver.list
debug: /fact_collector/File[/var/lib/puppet/facts/vmware.rb]: File
does not exist
debug: Calling fileserver.describe
debug: /fact_collector/File[/var/lib/puppet/facts/vmware.rb]:
Changing ensure
debug: /fact_collector/File[/var/lib/puppet/facts/vmware.rb]: 1
change(s)
debug: /fact_collector/File[/var/lib/puppet/facts/vmware.rb]/ensure:
setting file (currently absent)
debug: Calling fileserver.retrieve
notice:
/fact_collector/File[/var/lib/puppet/facts/vmware.rb]/ensure: created
debug: Calling fileserver.list
debug: /fact_collector/File[/var/lib/puppet/facts/network-mac.rb]:
File does not exist
debug: Calling fileserver.describe
debug: /fact_collector/File[/var/lib/puppet/facts/network-mac.rb]:
Changing ensure
debug: /fact_collector/File[/var/lib/puppet/facts/network-mac.rb]: 1
change(s)
debug:
/fact_collector/File[/var/lib/puppet/facts/network-mac.rb]/ensure:
setting file (currently absent)
debug: Calling fileserver.retrieve
debug:
/fact_collector/File[/var/lib/puppet/facts/network-mac.rb]/checksum:
Replacing /var/lib/puppet/facts/network-mac.rb checksum
{md5}7765e956ade7dbddf017ced0df3cadc4 with
{md5}a001678ac29a8440fa24a01a585acd54
notice:
/fact_collector/File[/var/lib/puppet/facts/network-mac.rb]/ensure:
created
debug: Finishing transaction 23456258041000 with 7 changes
info: Loading fact home
Finished home.rb
info: Loading fact vmware
Finished vmware.rb
info: Loading fact network-ipcalc
Finished network-ipcalc.rb
info: Loading fact network-count
Finished network-count.rb
info: Loading fact network-mac
Finished network-mac.rb
info: Loading fact network-bootproto
Finished network-bootproto.rb
_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com
https://mail.madstop.com/mailman/listinfo/puppet-users