{"action":"created","issue":{"url":"https://api.github.com/repos/chef/inspec/issues/784","repository_url":"https://api.github.com/repos/chef/inspec","labels_url":"https://api.github.com/repos/chef/inspec/issues/784/labels{/name}","comments_url":"https://api.github.com/repos/chef/inspec/issues/784/comments","events_url":"https://api.github.com/repos/chef/inspec/issues/784/events","html_url":"https://github.com/chef/inspec/issues/784","id":158754168,"number":784,"title":"WinRM error when running inspec verifier on windows 2008 with kitchen test","user":{"login":"mhedgpeth","id":3209401,"avatar_url":"https://avatars.githubusercontent.com/u/3209401?v=3","gravatar_id":"","url":"https://api.github.com/users/mhedgpeth","html_url":"https://github.com/mhedgpeth","followers_url":"https://api.github.com/users/mhedgpeth/followers","following_url":"https://api.github.com/users/mhedgpeth/following{/other_user}","gists_url":"https://api.github.com/users/mhedgpeth/gists{/gist_id}","starred_url":"https://api.github.com/users/mhedgpeth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhedgpeth/subscriptions","organizations_url":"https://api.github.com/users/mhedgpeth/orgs","repos_url":"https://api.github.com/users/mhedgpeth/repos","events_url":"https://api.github.com/users/mhedgpeth/events{/privacy}","received_events_url":"https://api.github.com/users/mhedgpeth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef/inspec/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-06-06T19:23:51Z","updated_at":"2016-07-26T17:58:11Z","closed_at":null,"body":"### Description\r\n\r\nWhen I run `kitchen test` I get a winrm error. When I do a `kitchen converge` afterwards, the tests pass.\r\n\r\n### InSpec and Platform Version\r\n\r\n0.24, kitchen 1.8\r\n\r\n### Replication Case\r\n\r\nUse `ncr/win2008r2` as your virtual box for vagrant. Run `kitchen test` with these tests:\r\n\r\n```\r\ncontrol 'd-drive-should-exist' do\r\n  impact 1\r\n  title 'Image should have a D: on it'\r\n  desc 'The images used by kitchen should have a D: on them to make them like Production'\r\n  tag 'chef-312'\r\n  describe directory('D:/') do\r\n    it { should exist }\r\n  end\r\nend\r\n\r\ncontrol 'chef-client-should-be-available' do\r\n  impact 1\r\n  title 'Chef Client should be installed'\r\n  desc 'To save time with kitchen converges, chef-client should be installed'\r\n  describe command('chef-client') do\r\n    it { should exist }\r\n  end\r\nend\r\n```\r\n\r\nYou will get an error when you try to run the tests:\r\n\r\n```\r\n  1) Command chef-client should exist\r\n     Failure/Error: fail WinRMWSManFault.new(fault.to_s, fault.attributes['Code']) unless fault.nil?\r\n\r\n     WinRM::WinRMWSManFault:\r\n       [WSMAN ERROR CODE: 2150859174]: <f:WSManFault Code='2150859174' Machine='127.0.0.1' xmlns:f='http://schemas.micro\r\nsoft.com/wbem/wsman/1/wsmanfault'><f:Message>The WS-Management service cannot process the request. This user is allowed\r\na maximum number of 15 concurrent operations, which has been exceeded. Close existing operations for this user, or raise\r\n the quota for this user. </f:Message></f:WSManFault>\r\n     # C:/Users/mh185122/AppData/Local/chefdk/gem/ruby/2.1.0/gems/inspec-0.24.0/lib/resources/os.rb:33:in `[]'\r\n     # C:/Users/mh185122/AppData/Local/chefdk/gem/ruby/2.1.0/gems/inspec-0.24.0/lib/resources/command.rb:48:in `exist?'\r\n     # ./test/integration/default/inspec/image.rb:17:in `block (3 levels) in load'\r\n     # C:/Users/mh185122/AppData/Local/chefdk/gem/ruby/2.1.0/gems/inspec-0.24.0/lib/inspec/runner_rspec.rb:66:in `run'\r\n```\r\n### Possible Solutions\r\n\r\nThis could not be related to inspec but could be related to winrm in kitchen. I'll post this internally with Chef on the windows channel as well."},"comment":{"url":"https://api.github.com/repos/chef/inspec/issues/comments/235351553","html_url":"https://github.com/chef/inspec/issues/784#issuecomment-235351553","issue_url":"https://api.github.com/repos/chef/inspec/issues/784","id":235351553,"user":{"login":"mwrock","id":655165,"avatar_url":"https://avatars.githubusercontent.com/u/655165?v=3","gravatar_id":"","url":"https://api.github.com/users/mwrock","html_url":"https://github.com/mwrock","followers_url":"https://api.github.com/users/mwrock/followers","following_url":"https://api.github.com/users/mwrock/following{/other_user}","gists_url":"https://api.github.com/users/mwrock/gists{/gist_id}","starred_url":"https://api.github.com/users/mwrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwrock/subscriptions","organizations_url":"https://api.github.com/users/mwrock/orgs","repos_url":"https://api.github.com/users/mwrock/repos","events_url":"https://api.github.com/users/mwrock/events{/privacy}","received_events_url":"https://api.github.com/users/mwrock/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T17:58:11Z","updated_at":"2016-07-26T17:58:11Z","body":"FYI: just waiting on winrm-v2 review - https://github.com/WinRb/WinRM/pull/191 now. It definitely addresses this issue."}}
{"actor":{"display_login":"mwrock"}}