- From: Torben Knerr <
>
- To: "
" <
>
- Subject: [chef] An error occurred when querying namesp ace 'root/cimv2' with query 'select * from Win32_OperatingSys tem'
- Date: Tue, 5 May 2015 22:40:55 +0200
Hi everybody,
I'm seeing this stacktrace
below
trying to run ChefSpec with Chef 12.3.0
. This is from a client's Windows7 machine where chefspec was run.
Any idea what's going on there?
Observations from my side so far:
rspec -fd --color -I test/chefspec test/chefspec
W:/home/.chefdk/gem/ruby/2.1.0/gems/wmi-lite-1.0.0/lib/wmi-lite/wmi.rb:69:in `rescue in start_query':
An error occurred when querying namespace 'root/cimv2' with query 'select * from Win32_OperatingSystem'. (WmiLite::WmiException)
(in OLE method `ExecQuery': )
OLE error code:80041001 in SWbemServicesEx
Allgemeiner Fehler
HRESULT error code:0x80020009
Exception occurred.
from W:/home/.chefdk/gem/ruby/2.1.0/gems/wmi-lite-1.0.0/lib/wmi-lite/wmi.rb:65:in `start_query'
from W:/home/.chefdk/gem/ruby/2.1.0/gems/wmi-lite-1.0.0/lib/wmi-lite/wmi.rb:39:in `first_of'
from W:/home/.chefdk/gem/ruby/2.1.0/gems/chef-12.3.0-x86-mingw32/lib/chef/platform/query_helpers.rb:40:in `windows_server_2003?'
from W:/home/.chefdk/gem/ruby/2.1.0/gems/chef-12.3.0-x86-mingw32/lib/chef/event_loggers/windows_eventlog.rb:22:in `<top (required)>'
from W:/home/.chefdk/gem/ruby/2.1.0/gems/chef-12.3.0-x86-mingw32/lib/chef/client.rb:41:in `require'
from W:/home/.chefdk/gem/ruby/2.1.0/gems/chef-12.3.0-x86-mingw32/lib/chef/client.rb:41:in `<top (required)>'
from W:/home/.chefdk/gem/ruby/2.1.0/bundler/gems/chefspec-5b9b64184f10/lib/chefspec/extensions/chef/client.rb:8:in `require'
from W:/home/.chefdk/gem/ruby/2.1.0/bundler/gems/chefspec-5b9b64184f10/lib/chefspec/extensions/chef/client.rb:8:in `<top (required)>'
from W:/home/.chefdk/gem/ruby/2.1.0/bundler/gems/chefspec-5b9b64184f10/lib/chefspec.rb:46:in `require_relative'
from W:/home/.chefdk/gem/ruby/2.1.0/bundler/gems/chefspec-5b9b64184f10/lib/chefspec.rb:46:in `<top (required)>'
from W:/repo/vagrant-workflow-tests/playground/sample-toplevel-cookbook/test/chefspec/spec_helper.rb:1:in `require'
from W:/repo/vagrant-workflow-tests/playground/sample-toplevel-cookbook/test/chefspec/spec_helper.rb:1:in `<top (required)>'
from W:/repo/vagrant-workflow-tests/playground/sample-toplevel-cookbook/test/chefspec/default_spec.rb:1:in `require'
from W:/repo/vagrant-workflow-tests/playground/sample-toplevel-cookbook/test/chefspec/default_spec.rb:1:in `<top (required)>'
from W:/home/.chefdk/gem/ruby/2.1.0/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1226:in `load'
from W:/home/.chefdk/gem/ruby/2.1.0/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1226:in `block in load_spec_files'
from W:/home/.chefdk/gem/ruby/2.1.0/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1224:in `each'
from W:/home/.chefdk/gem/ruby/2.1.0/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1224:in `load_spec_files'
from W:/home/.chefdk/gem/ruby/2.1.0/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:97:in `setup'
from W:/home/.chefdk/gem/ruby/2.1.0/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:85:in `run'
from W:/home/.chefdk/gem/ruby/2.1.0/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:70:in `run'
from W:/home/.chefdk/gem/ruby/2.1.0/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:38:in `invoke'
from W:/home/.chefdk/gem/ruby/2.1.0/gems/rspec-core-3.2.3/exe/rspec:4:in `<top (required)>'
from W:/home/.chefdk/gem/ruby/2.1.0/bin/rspec:23:in `load'
- [chef] An error occurred when querying namesp ace 'root/cimv2' with query 'select * from Win32_OperatingSys tem', Torben Knerr, 05/05/2015
Archive powered by MHonArc 2.6.16.