Error detecting "Microsoft Windows Server 2003 R2 Standard Edition Service Pack 2" server platform and version


#1

Hello,

Ohai is not able to detect the platform and version on one of our “Microsoft
Windows Server 2003 R2 Standard Edition Service Pack 2” physical server.

It results in an empty “Platform” attribute for the node and an error when
running chef-client.

Below all the details about the error I got.

Could you help for solving this issue please ?

Thanks in advance.

Best regards,
Christophe

knife node show TDW-NEOLOAD
Node Name: TDW-NEOLOAD
Environment: _default
FQDN:
IP:
Run List:
Roles:
Recipes:
Platform:

[Wed, 23 May 2012 10:06:30 +0200] DEBUG: Loading plugin windows::network
[Wed, 23 May 2012 10:06:33 +0200] DEBUG: ---- Begin arp -a STDOUT ----
[Wed, 23 May 2012 10:06:33 +0200] DEBUG: Interface : —
0x10003
Adresse Internet Adresse physique Type
dynamique
dynamique
dynamique

Interface : — 0x10005
Adresse Internet Adresse physique Type
dynamique
[Wed, 23 May 2012 10:06:33 +0200] DEBUG: ---- End arp -a STDOUT ----
[Wed, 23 May 2012 10:06:33 +0200] DEBUG: ---- Begin arp -a STDERR ----
[Wed, 23 May 2012 10:06:33 +0200] DEBUG:
[Wed, 23 May 2012 10:06:33 +0200] DEBUG: ---- End arp -a STDERR ----
[Wed, 23 May 2012 10:06:33 +0200] DEBUG: Ran (arp -a) returned 0
[Wed, 23 May 2012 10:06:33 +0200] DEBUG: Using default interface for default ip
and mac address
[Wed, 23 May 2012 10:06:33 +0200] DEBUG: has_ec2_mac? == true
[Wed, 23 May 2012 10:06:33 +0200] DEBUG: has_ec2_mac? == true
[Wed, 23 May 2012 10:06:33 +0200] DEBUG: has_ec2_mac? == true
[Wed, 23 May 2012 10:06:33 +0200] DEBUG: has_ec2_mac? == true
[Wed, 23 May 2012 10:06:33 +0200] DEBUG: has_ec2_mac? == false
[Wed, 23 May 2012 10:06:33 +0200] DEBUG: looks_like_ec2? == false
[Wed, 23 May 2012 10:06:33 +0200] DEBUG: Loading plugin rackspace
[Wed, 23 May 2012 10:06:33 +0200] DEBUG: Plugin rackspace threw exception
#<NoMethodError: undefined method split' for nil:NilClass> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/plugins/rackspace.rb:28:inhas_rac
kspace_kernel?'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/plugins/rackspace.rb:51:in
looks_like_rackspace? ' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/plugins/rackspace.rb:66:infrom_file’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/mixin/from_file.rb:29:in
instance_eval' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/mixin/from_file.rb:29:infrom_file’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:190:in
block in require_plugin' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:185:ineach’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:185:in
require_plugin' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/plugins/cloud.rb:20:infrom_file’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/mixin/from_file.rb:29:in
instance_eval' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/mixin/from_file.rb:29:infrom_file’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:190:in
block in require_plugin' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:185:ineach’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:185:in
require_plugin' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:117:inblock (2 levels) in all_plugins

C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:110:in
each' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:110:inblock in all_plugins’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:108:in
each' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:108:inall_plugins’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/client.rb:208:in
run_ohai' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/client.rb:149:inrun’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/client.rb:239:in
block in run_applic ation' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/client.rb:229:inloop’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/client.rb:229:in
run_application' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application.rb:67:inrun’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/bin/chef-client:26:in
<top (required)>' C:/opscode/chef/bin/chef-client:19:inload’
C:/opscode/chef/bin/chef-client:19:in <main>' [Wed, 23 May 2012 10:06:33 +0200] DEBUG: Loading plugin eucalyptus [Wed, 23 May 2012 10:06:33 +0200] DEBUG: has_euca_mac? == false [Wed, 23 May 2012 10:06:33 +0200] DEBUG: has_euca_mac? == false [Wed, 23 May 2012 10:06:33 +0200] DEBUG: has_euca_mac? == false [Wed, 23 May 2012 10:06:33 +0200] DEBUG: has_euca_mac? == false [Wed, 23 May 2012 10:06:33 +0200] DEBUG: has_euca_mac? == false [Wed, 23 May 2012 10:06:33 +0200] DEBUG: looks_like_euca? == false [Wed, 23 May 2012 10:06:33 +0200] DEBUG: Loading plugin command [Wed, 23 May 2012 10:06:33 +0200] DEBUG: Loading plugin dmi [Wed, 23 May 2012 10:06:33 +0200] DEBUG: Plugin dmi threw exception #<NameError: uninitialized constant Fcntl::F_SETFD> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/mixin/command.rb:162:inpopen4’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/plugins/dmi.rb:46:in
from_file' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/mixin/from_file.rb:29:ininstance_eval’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/mixin/from_file.rb:29:in
from_file' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:190:inblock in require_plugin’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:185:in
each' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:185:inrequire_plugin’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:117:in
block (2 levels) in all_plugins ' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:110:ineach’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:110:in
block in all_plugins' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:108:ineach’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:108:in
all_plugins' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/client.rb:208:inrun_ohai’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/client.rb:149:in
run' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/client.rb:239:inblock in run_applic
ation’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/client.rb:229:in
loop' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/client.rb:229:inrun_application’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application.rb:67:in
run' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/bin/chef-client:26:in<top (required)>'
C:/opscode/chef/bin/chef-client:19:in load' C:/opscode/chef/bin/chef-client:19:in'
[Wed, 23 May 2012 10:06:33 +0200] DEBUG: Loading plugin dmi_common
[Wed, 23 May 2012 10:06:33 +0200] DEBUG: Loading plugin erlang
[Wed, 23 May 2012 10:06:34 +0200] DEBUG: Failed to run: erl +V, assuming
command not found
[Wed, 23 May 2012 10:06:34 +0200] DEBUG: ---- Begin erl +V STDOUT ----
[Wed, 23 May 2012 10:06:34 +0200] DEBUG:
[Wed, 23 May 2012 10:06:34 +0200] DEBUG: ---- End erl +V STDOUT ----
[Wed, 23 May 2012 10:06:34 +0200] DEBUG: ---- Begin erl +V STDERR ----
[Wed, 23 May 2012 10:06:34 +0200] DEBUG: Failed to run: erl +V, assuming
command not found
[Wed, 23 May 2012 10:06:34 +0200] DEBUG: ---- End erl +V STDERR ----
[Wed, 23 May 2012 10:06:34 +0200] DEBUG: Ran (erl +V) returned 42
[Wed, 23 May 2012 10:06:34 +0200] DEBUG: Loading plugin groovy
[Wed, 23 May 2012 10:06:35 +0200] DEBUG: Failed to run: groovy -v, assuming
command not found
[Wed, 23 May 2012 10:06:35 +0200] DEBUG: ---- Begin groovy -v STDOUT ----
[Wed, 23 May 2012 10:06:35 +0200] DEBUG:
[Wed, 23 May 2012 10:06:35 +0200] DEBUG: ---- End groovy -v STDOUT ----
[Wed, 23 May 2012 10:06:35 +0200] DEBUG: ---- Begin groovy -v STDERR ----
[Wed, 23 May 2012 10:06:35 +0200] DEBUG: Failed to run: groovy -v, assuming
command not found
[Wed, 23 May 2012 10:06:35 +0200] DEBUG: ---- End groovy -v STDERR ----
[Wed, 23 May 2012 10:06:35 +0200] DEBUG: Ran (groovy -v) returned 42
[Wed, 23 May 2012 10:06:35 +0200] DEBUG: Loading plugin ip_scopes
[Wed, 23 May 2012 10:06:35 +0200] DEBUG: ip_scopes: cannot load gem, plugin
disabled: no such file to load – ipaddr_ext
ensions
[Wed, 23 May 2012 10:06:35 +0200] DEBUG: Loading plugin java
[Wed, 23 May 2012 10:06:36 +0200] DEBUG: ---- Begin java -version STDOUT ----
[Wed, 23 May 2012 10:06:36 +0200] DEBUG:
[Wed, 23 May 2012 10:06:36 +0200] DEBUG: ---- End java -version STDOUT ----
[Wed, 23 May 2012 10:06:36 +0200] DEBUG: ---- Begin java -version STDERR ----
[Wed, 23 May 2012 10:06:36 +0200] DEBUG: java version "1.6.0_31"
Java™ SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot™ Client VM (build 20.6-b01, mixed mode, sharing)
[Wed, 23 May 2012 10:06:36 +0200] DEBUG: ---- End java -version STDERR ----
[Wed, 23 May 2012 10:06:36 +0200] DEBUG: Ran (java -version) returned 0
[Wed, 23 May 2012 10:06:36 +0200] DEBUG: Loading plugin keys
[Wed, 23 May 2012 10:06:36 +0200] DEBUG: Loading plugin lua
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: Failed to run: lua -v, assuming
command not found
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: ---- Begin lua -v STDOUT ----
[Wed, 23 May 2012 10:06:37 +0200] DEBUG:
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: ---- End lua -v STDOUT ----
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: ---- Begin lua -v STDERR ----
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: Failed to run: lua -v, assuming
command not found
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: ---- End lua -v STDERR ----
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: Ran (lua -v) returned 42
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: Loading plugin mono
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: Failed to run: mono -V, assuming
command not found
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: ---- Begin mono -V STDOUT ----
[Wed, 23 May 2012 10:06:37 +0200] DEBUG:
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: ---- End mono -V STDOUT ----
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: ---- Begin mono -V STDERR ----
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: Failed to run: mono -V, assuming
command not found
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: ---- End mono -V STDERR ----
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: Ran (mono -V) returned 42
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: Loading plugin network_listeners
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: Plugin network_listeners threw
exception #<LoadError: no such file to load – s
igar>
C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require' C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/plugins/network_listeners.rb:19:in
from_file' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/mixin/from_file.rb:29:ininstance_eval’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/mixin/from_file.rb:29:in
from_file' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:190:inblock in require_plugin’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:185:in
each' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:185:inrequire_plugin’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:117:in
block (2 levels) in all_plugins ' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:110:ineach’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:110:in
block in all_plugins' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:108:ineach’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:108:in
all_plugins' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/client.rb:208:inrun_ohai’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/client.rb:149:in
run' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/client.rb:239:inblock in run_applic
ation’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/client.rb:229:in
loop' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/client.rb:229:inrun_application’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application.rb:67:in
run' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/bin/chef-client:26:in<top (required)>'
C:/opscode/chef/bin/chef-client:19:in load' C:/opscode/chef/bin/chef-client:19:in'
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: Loading plugin ohai
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: Loading plugin ohai_time
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: Loading plugin passwd
[Wed, 23 May 2012 10:06:37 +0200] DEBUG: Loading plugin perl
[Wed, 23 May 2012 10:06:38 +0200] DEBUG: Failed to run: perl -V:version
-V:archname, assuming command not found
[Wed, 23 May 2012 10:06:38 +0200] DEBUG: ---- Begin perl -V:version -V:archname
STDOUT ----
[Wed, 23 May 2012 10:06:38 +0200] DEBUG:
[Wed, 23 May 2012 10:06:38 +0200] DEBUG: ---- End perl -V:version -V:archname
STDOUT ----
[Wed, 23 May 2012 10:06:38 +0200] DEBUG: ---- Begin perl -V:version -V:archname
STDERR ----
[Wed, 23 May 2012 10:06:38 +0200] DEBUG: Failed to run: perl -V:version
-V:archname, assuming command not found
[Wed, 23 May 2012 10:06:38 +0200] DEBUG: ---- End perl -V:version -V:archname
STDERR ----
[Wed, 23 May 2012 10:06:38 +0200] DEBUG: Ran (perl -V:version -V:archname)
returned 42
[Wed, 23 May 2012 10:06:38 +0200] DEBUG: Loading plugin php
[Wed, 23 May 2012 10:06:39 +0200] DEBUG: Failed to run: php -v, assuming
command not found
[Wed, 23 May 2012 10:06:39 +0200] DEBUG: ---- Begin php -v STDOUT ----
[Wed, 23 May 2012 10:06:39 +0200] DEBUG:
[Wed, 23 May 2012 10:06:39 +0200] DEBUG: ---- End php -v STDOUT ----
[Wed, 23 May 2012 10:06:39 +0200] DEBUG: ---- Begin php -v STDERR ----
[Wed, 23 May 2012 10:06:39 +0200] DEBUG: Failed to run: php -v, assuming
command not found
[Wed, 23 May 2012 10:06:39 +0200] DEBUG: ---- End php -v STDERR ----
[Wed, 23 May 2012 10:06:39 +0200] DEBUG: Ran (php -v) returned 42
[Wed, 23 May 2012 10:06:39 +0200] DEBUG: Loading plugin platform
[Wed, 23 May 2012 10:06:39 +0200] DEBUG: Loading plugin windows::platform
[Wed, 23 May 2012 10:06:39 +0200] DEBUG: Loading plugin python
[Wed, 23 May 2012 10:06:40 +0200] DEBUG: Failed to run: python -c “import sys;
print sys.version”, assuming command not
found
[Wed, 23 May 2012 10:06:40 +0200] DEBUG: ---- Begin python -c “import sys;
print sys.version” STDOUT ----
[Wed, 23 May 2012 10:06:40 +0200] DEBUG:
[Wed, 23 May 2012 10:06:40 +0200] DEBUG: ---- End python -c “import sys; print
sys.version” STDOUT ----
[Wed, 23 May 2012 10:06:40 +0200] DEBUG: ---- Begin python -c “import sys;
print sys.version” STDERR ----
[Wed, 23 May 2012 10:06:40 +0200] DEBUG: Failed to run: python -c “import sys;
print sys.version”, assuming command not
found
[Wed, 23 May 2012 10:06:40 +0200] DEBUG: ---- End python -c “import sys; print
sys.version” STDERR ----
[Wed, 23 May 2012 10:06:40 +0200] DEBUG: Ran (python -c “import sys; print
sys.version”) returned 42
[Wed, 23 May 2012 10:06:40 +0200] DEBUG: Loading plugin uptime
[Wed, 23 May 2012 10:06:40 +0200] DEBUG: Loading plugin virtualization
[Wed, 23 May 2012 10:06:40 +0200] DEBUG: Loading plugin windows::virtualization
[Wed, 23 May 2012 10:06:40 +0200] DEBUG: Plugin windows::virtualization threw
exception #<IOError: Cannot open or read C
:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/plugins/windows/virtualization.rb!>
C:/opscode/che
f/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/mixin/from_file.rb:31:in
from_file' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:190:inblock in require_plugin’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:185:in
each' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:185:inrequire_plugin’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/plugins/virtualization.rb:21:in
from_file' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/mixin/from_file.rb:29:ininstance_eval’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/mixin/from_file.rb:29:in
from_file' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:190:inblock in require_plugin’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:185:in
each' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:185:inrequire_plugin’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:117:in
block (2 levels) in all_plugins ' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:110:ineach’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:110:in
block in all_plugins' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:108:ineach’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:108:in
all_plugins' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/client.rb:208:inrun_ohai’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/client.rb:149:in
run' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/client.rb:239:inblock in run_applic
ation’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/client.rb:229:in
loop' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/client.rb:229:inrun_application’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application.rb:67:in
run' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/bin/chef-client:26:in<top (required)>'
C:/opscode/chef/bin/chef-client:19:in load' C:/opscode/chef/bin/chef-client:19:in
[Wed, 23 May 2012 10:06:40 +0200] DEBUG: Loading plugin windows::cpu
[Wed, 23 May 2012 10:06:44 +0200] DEBUG: Plugin windows::cpu threw exception
#<NoMethodError: unknown property or method
: numberofcores' HRESULT error code:0x80020006 Nom inconnu.> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/plugins/windows/cpu.rb:28:inmethod_missing’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/plugins/windows/cpu.rb:28:in
`block in from_file’

C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/plugins/windows/cpu.rb:27:in
each' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/plugins/windows/cpu.rb:27:infrom_file’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/mixin/from_file.rb:29:in
instance_eval' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/mixin/from_file.rb:29:infrom_file’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:190:in
block in require_plugin' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:185:ineach’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:185:in
require_plugin' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:117:inblock (2 levels) in all_plugins

C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:110:in
each' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:110:inblock in all_plugins’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:108:in
each' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-0.6.10/lib/ohai/system.rb:108:inall_plugins’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/client.rb:208:in
run_ohai' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/client.rb:149:inrun’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/client.rb:239:in
block in run_applic ation' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/client.rb:229:inloop’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/client.rb:229:in
run_application' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application.rb:67:inrun’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/bin/chef-client:26:in
<top (required)>' C:/opscode/chef/bin/chef-client:19:inload’
C:/opscode/chef/bin/chef-client:19:in <main>' [Wed, 23 May 2012 10:06:44 +0200] DEBUG: Loading plugin windows::filesystem [Wed, 23 May 2012 10:06:45 +0200] DEBUG: Loading plugin windows::kernel [Wed, 23 May 2012 10:06:55 +0200] DEBUG: Client key C:/opscode/chef/client.pem is present - skipping registration [Wed, 23 May 2012 10:06:55 +0200] DEBUG: Building node object for TDW-NEOLOAD [Wed, 23 May 2012 10:06:55 +0200] DEBUG: Signing the request as TDW-NEOLOAD [Wed, 23 May 2012 10:06:57 +0200] DEBUG: String to sign: 'Method:GET Hashed Path:vHcPh5+CXUyLy1KdZNzWGJCwHe4= X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk= X-Ops-Timestamp:2012-05-23T08:06:55Z X-Ops-UserId:TDW-NEOLOAD' Header hash: {"X-Ops-Sign"=>"version=1.0", "X-Ops-Userid"=>"TDW-NEOLOAD", "X-Ops-Timestamp"=>"2012-05-23T08:06:55Z", "X- Ops-Content-Hash"=>"2jmj7l5rSw0yVb/vlWAYkK/YBwk=", "X-Ops-Authorization-1"=>"UsRnkUEHaWOM1zJcwaQFeEWPTMHTyOwD+FsHrWT1zqG Ev0En2JgmjLtQEAZM", "X-Ops-Authorization-2"=>"Cf6jrb2fdCpUeGeu3aliTKujvYPvkyR3WhXXnr1gS2/dAnyU6un3pRXocXVE", "X-Ops-Auth orization-3"=>"NRWbhaA04e2yRiik8JhvYFAYqDM5l2j15P6Qb0KBPuF8Veqj+/bu7ewtYs+y", "X-Ops-Authorization-4"=>"uU6XnrHqiZtjZsHj dcOpNkBmK3AeYM4FzhAmS81mbDCx95FXdcwm9fA75SUS", "X-Ops-Authorization-5"=>"GOfSJf2tyJgDK9bgYOTeJqJp0O47hHHQ8a/3oVLdSIYHEBn wbAWXA6wgBI/3", "X-Ops-Authorization-6"=>"gs0h0+ECZw6By1T/M3ebc3PraDtJiv5i+AJWHWuZEQ=="} [Wed, 23 May 2012 10:06:57 +0200] DEBUG: Sending HTTP Request via GET to tddv-che-mas-01:4000/nodes/T DW-NEOLOAD [Wed, 23 May 2012 10:06:57 +0200] DEBUG: Extracting run list from JSON attributes provided on command line [Wed, 23 May 2012 10:06:57 +0200] DEBUG: Applying attributes from json file [Wed, 23 May 2012 10:06:57 +0200] FATAL: Stacktrace dumped to C:/opscode/chef/cache/chef-stacktrace.out [Wed, 23 May 2012 10:06:57 +0200] DEBUG: ArgumentError: Cannot find a version for node[TDW-NEOLOAD] C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/platform.rb:312:infind_platform_and_version’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/node.rb:384:in
consume_external_attrs' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/client.rb:247:inbuild_node’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/client.rb:151:in
run' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/client.rb:239:inblock in run_applic
ation’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/client.rb:229:in
loop' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/client.rb:229:inrun_application’
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application.rb:67:in
run' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/bin/chef-client:26:in<top (required)>'
C:/opscode/chef/bin/chef-client:19:in load' C:/opscode/chef/bin/chef-client:19:in'
[Wed, 23 May 2012 10:06:57 +0200] FATAL: ArgumentError: Cannot find a version
for node[TDW-NEOLOAD]


#2

On Wed, May 23, 2012 at 10:42 AM, cl.subscription@gmail.com wrote:

Ohai is not able to detect the platform and version on one of our “Microsoft
Windows Server 2003 R2 Standard Edition Service Pack 2” physical server.

Can you please file a bug against the Ohai project at
http://tickets.opscode.com? Please include all the relevant
information for reproducing the error, e.g. version of Ohai, version
of Windows, output of ‘ohai -l debug’

Thanks,
Bryan