[windows server 2008 r2] puppet errors in 3.3.0 on exchange database servers

324 views
Skip to first unread message

cko

unread,
Sep 13, 2013, 9:23:56 AM9/13/13
to puppet...@googlegroups.com
Hi,

i recently updated our windows 2008 r2 servers to puppet 3.3.0 .

Im getting the following error (only on our exchange 2010 db servers) ever since:

LevelMessageSourceFileLineTime
errCould not retrieve local facts: undefined method `gsub' for nil:NilClassPuppet13.09.2013 15:12 CEST
errFailed to apply catalog: Could not retrieve local facts: undefined method `gsub' for nil:NilClassPuppet13.09.2013 15:12 CEST
All other windows hosts run perfectly fine.

Any ideas?

Josh Cooper

unread,
Sep 13, 2013, 12:52:14 PM9/13/13
to puppet...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Can you run puppet agent --test --debug --trace, and post the resulting stacktrace? At first glance it sounds like https://projects.puppetlabs.com/issues/12116, which we fixed in facter 1.7.3 and was released with puppet 3.3.0...

Josh

--
Josh Cooper
Developer, Puppet Labs
Message has been deleted

cko

unread,
Sep 14, 2013, 2:24:06 AM9/14/13
to puppet...@googlegroups.com
Here you go:

C:\puppet\bin>puppet agent --test --debug --trace 

Error: Could not retrieve local facts: undefined method `gsub' for nil:NilClass
C:/puppet/facter/lib/facter/util/ip.rb:39:in `alphafy'
C:/puppet/facter/lib/facter/interfaces.rb:35:in `block (2 levels) in <top (required)>'
C:/puppet/facter/lib/facter/interfaces.rb:34:in `each'
C:/puppet/facter/lib/facter/interfaces.rb:34:in `block in <top (required)>'
C:/puppet/facter/lib/facter/interfaces.rb:29:in `each'
C:/puppet/facter/lib/facter/interfaces.rb:29:in `<top (required)>'
C:/puppet/facter/lib/facter/util/loader.rb:95:in `load'
C:/puppet/facter/lib/facter/util/loader.rb:95:in `load_file'
C:/puppet/facter/lib/facter/util/loader.rb:46:in `block (2 levels) in load_all'
C:/puppet/facter/lib/facter/util/loader.rb:41:in `each'
C:/puppet/facter/lib/facter/util/loader.rb:41:in `block in load_all'
C:/puppet/facter/lib/facter/util/loader.rb:38:in `each'
C:/puppet/facter/lib/facter/util/loader.rb:38:in `load_all'
C:/puppet/facter/lib/facter/util/collection.rb:114:in `load_all'
C:/puppet/facter/lib/facter.rb:248:in `loadfacts'
C:/puppet/puppet/lib/puppet/indirector/facts/facter.rb:11:in `reload_facter'
C:/puppet/puppet/lib/puppet/indirector/facts/facter.rb:53:in `find'
C:/puppet/puppet/lib/puppet/indirector/indirection.rb:197:in `find'
C:/puppet/puppet/lib/puppet/configurer/fact_handler.rb:15:in `find_facts'
C:/puppet/puppet/lib/puppet/configurer/fact_handler.rb:31:in `facts_for_uploading'
C:/puppet/puppet/lib/puppet/configurer.rb:101:in `get_facts'
C:/puppet/puppet/lib/puppet/configurer.rb:164:in `run'
C:/puppet/puppet/lib/puppet/agent.rb:45:in `block (5 levels) in run'
C:/puppet/puppet/lib/puppet/agent/locker.rb:20:in `lock'
C:/puppet/puppet/lib/puppet/agent.rb:45:in `block (4 levels) in run'
C:/puppet/sys/ruby/lib/ruby/1.9.1/sync.rb:227:in `sync_synchronize'
C:/puppet/puppet/lib/puppet/agent.rb:45:in `block (3 levels) in run'
C:/puppet/puppet/lib/puppet/agent.rb:119:in `with_client'
C:/puppet/puppet/lib/puppet/agent.rb:42:in `block (2 levels) in run'
C:/puppet/puppet/lib/puppet/agent.rb:84:in `run_in_fork'
C:/puppet/puppet/lib/puppet/agent.rb:41:in `block in run'
C:/puppet/puppet/lib/puppet/application.rb:179:in `call'
C:/puppet/puppet/lib/puppet/application.rb:179:in `controlled_run'
C:/puppet/puppet/lib/puppet/agent.rb:39:in `run'
C:/puppet/puppet/lib/puppet/application/agent.rb:360:in `onetime'
C:/puppet/puppet/lib/puppet/application/agent.rb:326:in `run_command'
C:/puppet/puppet/lib/puppet/application.rb:364:in `block (2 levels) in run'
C:/puppet/puppet/lib/puppet/application.rb:457:in `plugin_hook'
C:/puppet/puppet/lib/puppet/application.rb:364:in `block in run'
C:/puppet/puppet/lib/puppet/util.rb:511:in `exit_on_fail'
C:/puppet/puppet/lib/puppet/application.rb:364:in `run'
C:/puppet/puppet/lib/puppet/util/command_line.rb:132:in `run'
C:/puppet/puppet/lib/puppet/util/command_line.rb:86:in `execute'
C:/puppet/puppet/bin/puppet:4:in `<main>'
Error: Failed to apply catalog: Could not retrieve local facts: undefined method `gsub' for nil:NilClass
C:/puppet/puppet/lib/puppet/configurer/fact_handler.rb:26:in `rescue in find_facts'
C:/puppet/puppet/lib/puppet/configurer/fact_handler.rb:14:in `find_facts'
C:/puppet/puppet/lib/puppet/configurer/fact_handler.rb:31:in `facts_for_uploading'
C:/puppet/puppet/lib/puppet/configurer.rb:101:in `get_facts'
C:/puppet/puppet/lib/puppet/configurer.rb:164:in `run'
C:/puppet/puppet/lib/puppet/agent.rb:45:in `block (5 levels) in run'
C:/puppet/puppet/lib/puppet/agent/locker.rb:20:in `lock'
C:/puppet/puppet/lib/puppet/agent.rb:45:in `block (4 levels) in run'
C:/puppet/sys/ruby/lib/ruby/1.9.1/sync.rb:227:in `sync_synchronize'
C:/puppet/puppet/lib/puppet/agent.rb:45:in `block (3 levels) in run'
C:/puppet/puppet/lib/puppet/agent.rb:119:in `with_client'
C:/puppet/puppet/lib/puppet/agent.rb:42:in `block (2 levels) in run'
C:/puppet/puppet/lib/puppet/agent.rb:84:in `run_in_fork'
C:/puppet/puppet/lib/puppet/agent.rb:41:in `block in run'
C:/puppet/puppet/lib/puppet/application.rb:179:in `call'
C:/puppet/puppet/lib/puppet/application.rb:179:in `controlled_run'
C:/puppet/puppet/lib/puppet/agent.rb:39:in `run'
C:/puppet/puppet/lib/puppet/application/agent.rb:360:in `onetime'
C:/puppet/puppet/lib/puppet/application/agent.rb:326:in `run_command'
C:/puppet/puppet/lib/puppet/application.rb:364:in `block (2 levels) in run'
C:/puppet/puppet/lib/puppet/application.rb:457:in `plugin_hook'
C:/puppet/puppet/lib/puppet/application.rb:364:in `block in run'
C:/puppet/puppet/lib/puppet/util.rb:511:in `exit_on_fail'
C:/puppet/puppet/lib/puppet/application.rb:364:in `run'
C:/puppet/puppet/lib/puppet/util/command_line.rb:132:in `run'
C:/puppet/puppet/lib/puppet/util/command_line.rb:86:in `execute'
C:/puppet/puppet/bin/puppet:4:in `<main>'

[0;36mDebug: Failed to load library 'syslog' for feature 'syslog' [0m
[0;36mDebug: Failed to load library 'selinux' for feature 'selinux' [0m
[0;36mDebug: Using settings: adding file resource 'confdir': 'File[C:/ProgramData/PuppetLabs/puppet/etc]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'vardir': 'File[C:/ProgramData/PuppetLabs/puppet/var]{:path=>"C:/ProgramData/PuppetLabs/puppet/var", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'logdir': 'File[C:/ProgramData/PuppetLabs/puppet/var/log]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/log", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'statedir': 'File[C:/ProgramData/PuppetLabs/puppet/var/state]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/state", :mode=>"1755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'rundir': 'File[C:/ProgramData/PuppetLabs/puppet/var/run]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/run", :mode=>"755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'libdir': 'File[C:/ProgramData/PuppetLabs/puppet/var/lib]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/lib", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'certdir': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'ssldir': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl", :mode=>"771", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'publickeydir': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'requestdir': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certificate_requests]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/certificate_requests", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'privatekeydir': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'privatedir': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/private", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'hostcert': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/server.ep.local.pem]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/server.ep.local.pem", :mode=>"644", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'hostprivkey': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys/server.ep.local.pem]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys/server.ep.local.pem", :mode=>"600", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'hostpubkey': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys/server.ep.local.pem]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys/server.ep.local.pem", :mode=>"644", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'localcacert': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/ca.pem]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/ca.pem", :mode=>"644", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'hostcrl': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/crl.pem]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/crl.pem", :mode=>"644", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'statefile': 'File[C:/ProgramData/PuppetLabs/puppet/var/state/state.yaml]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/state/state.yaml", :mode=>"660", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'clientyamldir': 'File[C:/ProgramData/PuppetLabs/puppet/var/client_yaml]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/client_yaml", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'client_datadir': 'File[C:/ProgramData/PuppetLabs/puppet/var/client_data]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/client_data", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'classfile': 'File[C:/ProgramData/PuppetLabs/puppet/var/state/classes.txt]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/state/classes.txt", :mode=>"640", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'resourcefile': 'File[C:/ProgramData/PuppetLabs/puppet/var/state/resources.txt]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/state/resources.txt", :mode=>"640", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'clientbucketdir': 'File[C:/ProgramData/PuppetLabs/puppet/var/clientbucket]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/clientbucket", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'lastrunfile': 'File[C:/ProgramData/PuppetLabs/puppet/var/state/last_run_summary.yaml]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/state/last_run_summary.yaml", :mode=>"644", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'lastrunreport': 'File[C:/ProgramData/PuppetLabs/puppet/var/state/last_run_report.yaml]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/state/last_run_report.yaml", :mode=>"640", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'graphdir': 'File[C:/ProgramData/PuppetLabs/puppet/var/state/graphs]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/state/graphs", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Puppet::Type::File::ProviderPosix: feature posix is missing [0m
[0;36mDebug: Failed to load library 'shadow' for feature 'libshadow' [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/var/log]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/var/state]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/var/run]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/var/lib]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certificate_requests]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/server.ep.local.pem]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys/server.ep.local.pem]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys/server.ep.local.pem]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/ca.pem]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/crl.pem]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/state.yaml]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/var/client_yaml]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/var/client_data]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/classes.txt]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/resources.txt]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/var/clientbucket]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/last_run_summary.yaml]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/last_run_report.yaml]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/graphs]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state] [0m
[0;36mDebug: Finishing transaction 42603684 [0m
[0;36mDebug: Using settings: adding file resource 'confdir': 'File[C:/ProgramData/PuppetLabs/puppet/etc]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'vardir': 'File[C:/ProgramData/PuppetLabs/puppet/var]{:path=>"C:/ProgramData/PuppetLabs/puppet/var", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'logdir': 'File[C:/ProgramData/PuppetLabs/puppet/var/log]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/log", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'statedir': 'File[C:/ProgramData/PuppetLabs/puppet/var/state]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/state", :mode=>"1755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'rundir': 'File[C:/ProgramData/PuppetLabs/puppet/var/run]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/run", :mode=>"755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'libdir': 'File[C:/ProgramData/PuppetLabs/puppet/var/lib]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/lib", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'certdir': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'ssldir': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl", :mode=>"771", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'publickeydir': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'requestdir': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certificate_requests]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/certificate_requests", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'privatekeydir': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'privatedir': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/private", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'hostcert': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/server.ep.local.pem]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/server.ep.local.pem", :mode=>"644", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'hostprivkey': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys/server.ep.local.pem]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys/server.ep.local.pem", :mode=>"600", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'hostpubkey': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys/server.ep.local.pem]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys/server.ep.local.pem", :mode=>"644", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'localcacert': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/ca.pem]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/ca.pem", :mode=>"644", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'hostcrl': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/crl.pem]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/crl.pem", :mode=>"644", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/var/log]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/var/state]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/var/run]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/var/lib]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certificate_requests]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/server.ep.local.pem]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys/server.ep.local.pem]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys/server.ep.local.pem]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/ca.pem]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs] [0m
[0;36mDebug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/crl.pem]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl] [0m
[0;36mDebug: Finishing transaction 43166592 [0m
[0;36mDebug: Using cached certificate for ca [0m
[0;36mDebug: Using cached certificate for server.ep.local [0m
[0;36mDebug: Using settings: adding file resource 'statefile': 'File[C:/ProgramData/PuppetLabs/puppet/var/state/state.yaml]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/state/state.yaml", :mode=>"660", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'clientyamldir': 'File[C:/ProgramData/PuppetLabs/puppet/var/client_yaml]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/client_yaml", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'client_datadir': 'File[C:/ProgramData/PuppetLabs/puppet/var/client_data]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/client_data", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'classfile': 'File[C:/ProgramData/PuppetLabs/puppet/var/state/classes.txt]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/state/classes.txt", :mode=>"640", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'resourcefile': 'File[C:/ProgramData/PuppetLabs/puppet/var/state/resources.txt]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/state/resources.txt", :mode=>"640", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'clientbucketdir': 'File[C:/ProgramData/PuppetLabs/puppet/var/clientbucket]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/clientbucket", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'lastrunfile': 'File[C:/ProgramData/PuppetLabs/puppet/var/state/last_run_summary.yaml]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/state/last_run_summary.yaml", :mode=>"644", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'lastrunreport': 'File[C:/ProgramData/PuppetLabs/puppet/var/state/last_run_report.yaml]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/state/last_run_report.yaml", :mode=>"640", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Using settings: adding file resource 'graphdir': 'File[C:/ProgramData/PuppetLabs/puppet/var/state/graphs]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/state/graphs", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' [0m
[0;36mDebug: Finishing transaction 43093608 [0m
[0;36mDebug: Loaded state in 0.02 seconds [0m
[0;36mDebug: node supports formats: pson b64_zlib_yaml yaml raw [0m
[0;36mDebug: Using cached certificate for ca [0m
[0;36mDebug: Using cached certificate for  server.ep.local [0m
[0;36mDebug: Using cached certificate_revocation_list for ca [0m
[0;32mInfo: Retrieving plugin [0m
[0;36mDebug: file_metadata supports formats: pson b64_zlib_yaml yaml raw [0m
[0;36mDebug: Finishing transaction 23143620 [0m

Josh Cooper

unread,
Sep 18, 2013, 12:25:59 AM9/18/13
to puppet...@googlegroups.com
Can you run these two queries and reply with a gist to the output?

wmic path win32_networkadapterconfiguration where 'IPConnectionMetric IS NOT NULL and IPEnabled = true' get /format:list
wmic path win32_networkadapter get /format:list


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

cko

unread,
Sep 18, 2013, 3:43:59 AM9/18/13
to puppet...@googlegroups.com

Rob Reynolds

unread,
Sep 19, 2013, 3:47:26 PM9/19/13
to puppet...@googlegroups.com
Your network connection id (NetConnectionId) appears to be empty in this case. This is interesting and I'm not sure what would cause it to be empty.



and it is due to this coming back null:

Rob Reynolds
Developer, Puppet Labs

Join us at PuppetConf 2014September 23-24 in San Francisco

Rob Reynolds

unread,
Sep 19, 2013, 4:01:05 PM9/19/13
to puppet...@googlegroups.com
Actually I take that back, there are some that do have a NetConnectionId, but you have some adapters that do not.

Looking at the pair up, I see
  • Index=7 (Server_LAN)
  • Index=12 (Replication)
  • Index=14 (Backup-LAN)
  • Index=16 (no NetConnectionID) (the network config has ipenabled, but the adapter does not)
It's this last one that is causing the failure. Could you tell us a little more about it? We may need to additional ensure the network adapter is also enabled, which in this case it appears the configuration is enabled, but the adapter is not (for reference, this is Microsoft Failover Cluster Virtual Adapter).

Likely this is a bug in our logic and we want to understand the situation a bit more to address it appropriately.

Thanks so much.

Rob Reynolds

unread,
Sep 19, 2013, 6:42:00 PM9/19/13
to puppet...@googlegroups.com
I've added this in as http://projects.puppetlabs.com/issues/22619 and would like to get more information before we address a fix.

cko

unread,
Sep 20, 2013, 2:26:40 AM9/20/13
to puppet...@googlegroups.com
First of all: the virtual machine only has 3 virtual network devices.

Therefore the "Control Panel\ Network and Internet\ Network Connections" menu only shows the first three network adapters. (index 7, 12 and 14).

When i run "ipconfig /all" i can see that the network adapters "Index=16" and "Index=14" have very similar mac addresses .

I guess this adapter has something to do with the replication between exchange databases / cas servers.
 

On Friday, September 13, 2013 3:23:56 PM UTC+2, cko wrote:

Rich Siegel

unread,
Sep 20, 2013, 8:44:19 AM9/20/13
to puppet...@googlegroups.com
Exchange DAG is essentially a cluster and the adapter in question the dag ip.

My guess is the logic for adapters should be modded for when netconnectionid is not null.

In general don't try to mess with hidden adapters on dags unless you understand ramifications.

Message has been deleted

Rob Reynolds

unread,
Sep 20, 2013, 1:36:46 PM9/20/13
to puppet...@googlegroups.com
I would say with all of this in mind we move forward with a fix where we look to see that the network adapter itself is also enabled. This is laid out in the ticket that I noted earlier.


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Ethan Brown

unread,
Oct 2, 2013, 5:35:29 PM10/2/13
to puppet...@googlegroups.com
Christian - 

I'm doing the final verification of our fix, and was hoping that I could get the output from Facter run by itself?

--
Ethan Brown
Software Engineer

cko

unread,
Oct 2, 2013, 6:18:59 PM10/2/13
to puppet...@googlegroups.com
Hi Ethan,

what's the exact command that i would have to use? 

Rob Reynolds

unread,
Oct 3, 2013, 11:23:05 AM10/3/13
to puppet...@googlegroups.com
You should be able to run 

facter --trace --debug

cko

unread,
Oct 3, 2013, 2:15:20 PM10/3/13
to puppet...@googlegroups.com

Rob Reynolds

unread,
Oct 3, 2013, 2:41:46 PM10/3/13
to puppet...@googlegroups.com
Was this the entire log (minus anything you feel sensitive)?

Christian Koep

unread,
Oct 3, 2013, 2:42:46 PM10/3/13
to puppet...@googlegroups.com
Yes, thats all i got from facter --trace --debug


--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/_JSpNmSvg_I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.

Rob Reynolds

unread,
Oct 3, 2013, 2:47:38 PM10/3/13
to puppet...@googlegroups.com
This verifies for us that this is a gating issue. 

Would you feel comfortable helping us verify that we've fixed this issue for you?



Christian Koep

unread,
Oct 4, 2013, 6:00:08 AM10/4/13
to puppet...@googlegroups.com
Hi Rob,
i just applied the changes to the windows.rb file.

The catalog run finished as usual. Thank you ;-)

Ethan Brown

unread,
Oct 4, 2013, 8:13:23 AM10/4/13
to puppet...@googlegroups.com
Christian - 

Thanks a bunch for taking the time out to verify this.  While we believed our fix was correct, I was trying to replicate your network configuration internally to be absolutely certain.  I was having difficulty getting the virtual machines configured properly with respect to the 'Microsoft Failover Cluster Virtual Adapter', so it's fantastic to hear that you were able to verify this directly in your environment.

Jason Harmon

unread,
Oct 8, 2013, 6:25:07 PM10/8/13
to puppet...@googlegroups.com
I have the same type of setup with MSCS running in a virtual environment.
The change to the windows.rb file fixed my facter problem as well.
puppet agent --test now completes on the machines now.

Arvind P R

unread,
Dec 2, 2013, 1:31:06 PM12/2/13
to puppet...@googlegroups.com
Hello,

I am a new user.
My pupet is running on CentOS and I am facing the same issue on my windows 2012 box.
Can you please tell me where I should be running this?

on the puppetmaster server or agent?

I didnt make the changes to the windows.rb file but I still face the same issue.

[root@puppet-server-new ~]# find / -name windows.rb
/opt/puppet/libexec/mcollective/mcollective/util/puppet_agent_mgr/v3/windows.rb
/opt/puppet/libexec/mcollective/mcollective/util/puppet_agent_mgr/v2/windows.rb
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/windows.rb
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/provider/file/windows.rb
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/provider/service/windows.rb
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/provider/exec/windows.rb
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/provider/package/windows.rb
/opt/puppet/lib/ruby/site_ruby/1.9.1/facter/util/ip/windows.rb
/opt/puppet/share/puppet/modules/reboot/lib/puppet/provider/reboot/windows.rb
/opt/puppet/share/puppet/modules/pe_common/lib/facter/windows.rb
/opt/puppet/share/puppet/modules/pe_mcollective/files/plugins/util/puppet_agent_mgr/v3/windows.rb
/opt/puppet/share/puppet/modules/pe_mcollective/files/plugins/util/puppet_agent_mgr/v2/windows.rb
/opt/puppet/share/vendor/ruby/1.9.1/gems/sass-3.2.9/vendor/listen/lib/listen/adapters/windows.rb
/root/facter-1.7.3/lib/facter/util/ip/windows.rb
/var/opt/lib/pe-puppet/lib/puppet/provider/reboot/windows.rb
/var/opt/lib/pe-puppet/lib/facter/windows.rb
/usr/lib/ruby/site_ruby/1.8/facter/util/ip/windows.rb

I see a bunch of windows.rb files.

I made the changes to the below one on puppetmaster box.
[root@puppet-server-new ~]# vi /usr/lib/ruby/site_ruby/1.8/facter/util/ip/windows.rb


Still the same issue on Windows 2012 Hyper-V box running MSCS
C:\Users\administrator.A1000>puppet agent -t
Info: Retrieving plugin
Error: Could not retrieve local facts: undefined method `gsub' for nil:NilClass
Error: Failed to apply catalog: Could not retrieve local facts: undefined method
 `gsub' for nil:NilClass

Rob Reynolds

unread,
Dec 2, 2013, 2:47:29 PM12/2/13
to puppet...@googlegroups.com
Can you run facter --trace --debug as well and report what you are seeing?
 

For more options, visit https://groups.google.com/groups/opt_out.

Arvind P R

unread,
Dec 2, 2013, 2:51:59 PM12/2/13
to puppet...@googlegroups.com
Thanks for your prompt answer.

I ran this on the windows (Hyper-V) node which  is running MSCS cluster.
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\administrator.A1000>facter --trace --debug
←[0;32mNot an EC2 host←[0m
C:/Program Files (x86)/Puppet Labs/Puppet Enterprise/facter/lib/facter/util/ip.r
b:39:in `alphafy': undefined method `gsub' for nil:NilClass (NoMethodError)
        from C:/Program Files (x86)/Puppet Labs/Puppet Enterprise/facter/lib/fac
ter/interfaces.rb:35:in `block (2 levels) in <top (required)>'
        from C:/Program Files (x86)/Puppet Labs/Puppet Enterprise/facter/lib/fac
ter/interfaces.rb:34:in `each'
        from C:/Program Files (x86)/Puppet Labs/Puppet Enterprise/facter/lib/fac
ter/interfaces.rb:34:in `block in <top (required)>'
        from C:/Program Files (x86)/Puppet Labs/Puppet Enterprise/facter/lib/fac
ter/interfaces.rb:29:in `each'
        from C:/Program Files (x86)/Puppet Labs/Puppet Enterprise/facter/lib/fac
ter/interfaces.rb:29:in `<top (required)>'
        from C:/Program Files (x86)/Puppet Labs/Puppet Enterprise/facter/lib/fac
ter/util/loader.rb:95:in `load'
        from C:/Program Files (x86)/Puppet Labs/Puppet Enterprise/facter/lib/fac
ter/util/loader.rb:95:in `load_file'
        from C:/Program Files (x86)/Puppet Labs/Puppet Enterprise/facter/lib/fac
ter/util/loader.rb:46:in `block (2 levels) in load_all'
        from C:/Program Files (x86)/Puppet Labs/Puppet Enterprise/facter/lib/fac
ter/util/loader.rb:41:in `each'
        from C:/Program Files (x86)/Puppet Labs/Puppet Enterprise/facter/lib/fac
ter/util/loader.rb:41:in `block in load_all'
        from C:/Program Files (x86)/Puppet Labs/Puppet Enterprise/facter/lib/fac
ter/util/loader.rb:38:in `each'
        from C:/Program Files (x86)/Puppet Labs/Puppet Enterprise/facter/lib/fac
ter/util/loader.rb:38:in `load_all'
        from C:/Program Files (x86)/Puppet Labs/Puppet Enterprise/facter/lib/fac
ter/util/collection.rb:114:in `load_all'
        from C:/Program Files (x86)/Puppet Labs/Puppet Enterprise/facter/lib/fac
ter.rb:118:in `block (2 levels) in singletonclass'
        from C:/Program Files (x86)/Puppet Labs/Puppet Enterprise/facter/lib/fac
ter/application.rb:45:in `run'
        from C:/Program Files (x86)/Puppet Labs/Puppet Enterprise/facter/bin/fac
ter:16:in `<main>'


Thanks,
Arvind

Rob Reynolds

unread,
Dec 2, 2013, 3:27:52 PM12/2/13
to puppet...@googlegroups.com
This change would need to get applied to the node (the agent box). Apologies I missed where you said you made the change to the puppet master and not the node.

Most likely that will be at C:\Program Files (x86)\Puppet Labs\Puppet\facter\lib\facter\util\ip\windows.rb (your path may be slightly different).



For more options, visit https://groups.google.com/groups/opt_out.

Arvind P R

unread,
Dec 2, 2013, 10:44:23 PM12/2/13
to puppet...@googlegroups.com
That worked. Thank you :)
Reply all
Reply to author
Forward
0 new messages