Puppet - 无效的facter选项错误消息

时间:2016-01-15 09:12:18

标签: vagrant puppet vagrantfile facter

我在我的机器上运行了一个本地Vagrant设置,构建了一个带有LAMP堆栈的Ubuntu 14.04盒子。 Vagrant启动流程以初始化该框,然后它启动到一个木偶脚本,以根据我的要求构建和配置该框。

我已经多次销毁和重建这个盒子而没有任何问题,但是截至昨天我已经开始收到错误(见下面的输出)抱怨无法获得相关事实。没有任何改变,所以我不确定为什么会这样。我有其他同事可以检查相同的代码库并构建此框没有问题。希望得到一些帮助或方向,以便我能够深入了解这一点。

vagrant@rentpro-web:~$ puppet apply -vv --debug --environment development --modulepath=/etc/modules/ /etc/manifests/site.pp
Debug: Runtime environment: puppet_version=3.8.4, ruby_version=1.9.3, run_mode=user, default_encoding=UTF-8
Debug: Evicting cache entry for environment 'development'
Debug: Caching environment 'development' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'development'
Debug: Caching environment 'development' (ttl = 0 sec)
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/serverdensity_agent/lib/facter/sd.rb
Debug: Loading facts from /etc/puppet/modules/serverdensity_agent/lib/facter/agent_key.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/root_home.rb
Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/pe_version.rb
Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/puppet_vardir.rb
Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/apt/lib/facter/apt_updates.rb
Debug: Loading facts from /etc/puppet/modules/apt/lib/facter/apt_update_last_success.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/concat/lib/facter/concat_basedir.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/git/lib/facter/git_version.rb
Debug: Loading facts from /etc/puppet/modules/git/lib/facter/git_html_path.rb
Debug: Loading facts from /etc/puppet/modules/git/lib/facter/git_exec_path.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/collectd/lib/facter/collectd_version.rb
Error: Could not run: Could not retrieve facts for rentpro-web.rentpro.local: Invalid facter option(s) timeout

更新:Puppet trace

vagrant @ rentpro-web:〜$ sudo puppet apply -vv --debug - environment development --modulepath = / etc / puppet / modules / /etc/puppet/manifests/site.pp --trace

Warning: Setting templatedir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations 
    (at /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1139:in `issue_deprecation_warning'; /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1126:in `block in issue_deprecations'; /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1125:in `each'; /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1125:in `issue_deprecations'; /usr/lib/ruby/vendor_ruby/puppet/settings.rb:347:in `initialize_app_defaults'; /usr/lib/ruby/vendor_ruby/puppet.rb:157:in `do_initialize_settings_for_run_mode'; /usr/lib/ruby/vendor_ruby/puppet.rb:141:in `initialize_settings'; /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:87:in `block in execute'; /usr/lib/ruby/vendor_ruby/puppet/util.rb:496:in `exit_on_fail'; /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:86:in `execute'; /usr/bin/puppet:8:in `<main>')
Debug: Runtime environment: puppet_version=3.8.4, ruby_version=1.9.3, run_mode=user, default_encoding=UTF-8
Debug: Evicting cache entry for environment 'development'
Debug: Caching environment 'development' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'development'
Debug: Caching environment 'development' (ttl = 0 sec)
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/serverdensity_agent/lib/facter/sd.rb
Debug: Loading facts from /etc/puppet/modules/serverdensity_agent/lib/facter/agent_key.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/root_home.rb
Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/pe_version.rb
Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/puppet_vardir.rb
Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/apt/lib/facter/apt_updates.rb
Debug: Loading facts from /etc/puppet/modules/apt/lib/facter/apt_update_last_success.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/concat/lib/facter/concat_basedir.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/git/lib/facter/git_version.rb
Debug: Loading facts from /etc/puppet/modules/git/lib/facter/git_html_path.rb
Debug: Loading facts from /etc/puppet/modules/git/lib/facter/git_exec_path.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/collectd/lib/facter/collectd_version.rb
Error: Could not run: Could not retrieve facts for rentpro-web.rentpro.local: Invalid facter option(s) timeout
/usr/lib/ruby/vendor_ruby/facter/util/collection.rb:60:in `add'
/usr/lib/ruby/vendor_ruby/facter.rb:128:in `add'
/etc/puppet/modules/serverdensity_agent/lib/facter/agent_key.rb:5:in `<top (required)>'
/usr/lib/ruby/vendor_ruby/facter/util/loader.rb:95:in `load'
/usr/lib/ruby/vendor_ruby/facter/util/loader.rb:95:in `load_file'
/usr/lib/ruby/vendor_ruby/facter/util/loader.rb:46:in `block (2 levels) in load_all'
/usr/lib/ruby/vendor_ruby/facter/util/loader.rb:41:in `each'
/usr/lib/ruby/vendor_ruby/facter/util/loader.rb:41:in `block in load_all'
/usr/lib/ruby/vendor_ruby/facter/util/loader.rb:38:in `each'
/usr/lib/ruby/vendor_ruby/facter/util/loader.rb:38:in `load_all'
/usr/lib/ruby/vendor_ruby/facter/util/collection.rb:115:in `load_all'
/usr/lib/ruby/vendor_ruby/facter.rb:118:in `block (2 levels) in singletonclass'
/usr/lib/ruby/vendor_ruby/puppet/indirector/facts/facter.rb:23:in `find'
/usr/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:201:in `find'
/usr/lib/ruby/vendor_ruby/puppet/node.rb:116:in `fact_merge'
/usr/lib/ruby/vendor_ruby/puppet/indirector/node/plain.rb:17:in `find'
/usr/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:201:in `find'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:200:in `block in main'
/usr/lib/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/lib/ruby/vendor_ruby/puppet.rb:246:in `override'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:198:in `main'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:159:in `run_command'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in `block (2 levels) in run'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:507:in `plugin_hook'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in `block in run'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:496:in `exit_on_fail'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:146:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute'
/usr/bin/puppet:8:in `<main>'

0 个答案:

没有答案