Issue #8341 has been updated by Trevor Vaughan.

Additional information:

* The facts are *definitely* getting loaded 4 times
* This does not happen in 0.24.X

The following call stack is printed before each call to the fact loader:

/usr/lib/ruby/site_ruby/1.8/puppet/indirector/facts/facter.rb:31:in 
`load_facts_in_dir'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/facts/facter.rb:27:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/facts/facter.rb:27:in 
`load_facts_in_dir'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/facts/facter.rb:26:in `chdir'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/facts/facter.rb:26:in 
`load_facts_in_dir'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/facts/facter.rb:19:in 
`load_fact_plugins'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/facts/facter.rb:18:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/facts/facter.rb:18:in 
`load_fact_plugins'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/facts/facter.rb:67:in `initialize'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:314:in `new'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:314:in 
`make_terminus'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:123:in `terminus'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:302:in `prepare'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:181:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer/fact_handler.rb:19:in `find_facts'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer/fact_handler.rb:34:in 
`facts_for_uploading'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:142:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:21:in `lock'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:103:in `with_client'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:37:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:172:in `call'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:172:in `controlled_run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:35:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:336:in `onetime'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:310:in `run_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:307:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:411:in `hook'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:307:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:402:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:307:in `run'
/usr/sbin/puppetd:4
----------------------------------------
Bug #8341: Loading facts repeatedly
https://projects.puppetlabs.com/issues/8341

Author: Trevor Vaughan
Status: Investigating
Priority: Normal
Assignee: Jacob Helwig
Category: 
Target version: 
Affected Puppet version: 2.7.2rc1
Keywords: custom fact, repeated
Branch: 
https://github.com/jhelwig/puppet/tree/ticket/master/8341-do-not-explicitly-load-all-facts/


Puppet seems to be getting overzealous when loading custom facts.

Example:

<pre>
Loading facts in custom_fact_1
Loading facts in custom_fact_2
Loading facts in custom_fact_3
Loading facts in custom_fact_5
Loading facts in custom_fact_7
Loading facts in custom_fact_8
Loading facts in custom_fact_9
Loading facts in custom_fact_10
Loading facts in custom_fact_11
Loading facts in custom_fact_12
Loading facts in custom_fact_13
Loading facts in custom_fact_14
Loading facts in custom_fact_5
Loading facts in custom_fact_7
Loading facts in custom_fact_2
Loading facts in custom_fact_3
Loading facts in custom_fact_12
Loading facts in custom_fact_11
Loading facts in custom_fact_10
Loading facts in custom_fact_8
Loading facts in custom_fact_13
Loading facts in custom_fact_6
Loading facts in custom_fact_14
Loading facts in custom_fact_9
Loading facts in custom_fact_1
Loading facts in custom_fact_1
Loading facts in custom_fact_2
Loading facts in custom_fact_3
Loading facts in custom_fact_5
Loading facts in custom_fact_6
Loading facts in custom_fact_7
Loading facts in custom_fact_8
Loading facts in custom_fact_9
Loading facts in custom_fact_10
Loading facts in custom_fact_11
Loading facts in custom_fact_12
Loading facts in custom_fact_13
Loading facts in custom_fact_14
Loading facts in custom_fact_5
Loading facts in custom_fact_7
Loading facts in custom_fact_2
Loading facts in custom_fact_3
Loading facts in custom_fact_12
Loading facts in custom_fact_11
Loading facts in custom_fact_10
Loading facts in custom_fact_8
Loading facts in custom_fact_13
Loading facts in custom_fact_6
Loading facts in custom_fact_14
Loading facts in custom_fact_9
Loading facts in custom_fact_1
</pre>


-- 
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.

Reply via email to