{"action":"created","issue":{"url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/635","labels_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/635/labels{/name}","comments_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/635/comments","events_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/635/events","html_url":"https://github.com/test-kitchen/test-kitchen/issues/635","id":60941661,"number":635,"title":"Unable to parse WinRM response, missing attribute quote","user":{"login":"webframp","id":774378,"avatar_url":"https://avatars.githubusercontent.com/u/774378?v=3","gravatar_id":"","url":"https://api.github.com/users/webframp","html_url":"https://github.com/webframp","followers_url":"https://api.github.com/users/webframp/followers","following_url":"https://api.github.com/users/webframp/following{/other_user}","gists_url":"https://api.github.com/users/webframp/gists{/gist_id}","starred_url":"https://api.github.com/users/webframp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webframp/subscriptions","organizations_url":"https://api.github.com/users/webframp/orgs","repos_url":"https://api.github.com/users/webframp/repos","events_url":"https://api.github.com/users/webframp/events{/privacy}","received_events_url":"https://api.github.com/users/webframp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/test-kitchen/test-kitchen/labels/Windows","name":"Windows","color":"00ACFC"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-03-13T00:00:56Z","updated_at":"2015-03-20T16:59:36Z","closed_at":null,"body":"Running on Windows 7, using windows-guest-support branch of test-kitchen/test-kitchen@defb15bb0175db6391995957b7d671a89631bf14 and test-kitchen/kitchen-vagrant@feb5cd54c7dce83ef53dbb67c0f9729d2a08c488 to bring up a Server 2012r2 vm.\r\n\r\nkitchen setup fails, here's the exception output:\r\n\r\n```\r\n>>>>>> ------Exception-------\r\n>>>>>> Class: Kitchen::ActionFailed\r\n>>>>>> Message: Failed to complete #converge action: [[Kitchen::Transport::Winrm] Unable to parse WinRM response: #<REXML::ParseException: missing attribute quote\r\nLine: 102\r\nPosition: 4329\r\nLast 80 unconsumed characters:\r\n <STYLE id=L_10>=Content-Type content=\"text/html; charset=UTF-8\">\r\nC:/opscode/chefdk/embedded/lib/ruby/2.0.0/rexml/parsers/baseparser.rb:371:in `pull_event'\r\nC:/opscode/chefdk/embedded/lib/ruby/2.0.0/rexml/parsers/baseparser.rb:183:in `pull'\r\nC:/opscode/chefdk/embedded/lib/ruby/2.0.0/rexml/parsers/treeparser.rb:22:in `parse'\r\nC:/opscode/chefdk/embedded/lib/ruby/2.0.0/rexml/document.rb:283:in `build'\r\nC:/opscode/chefdk/embedded/lib/ruby/2.0.0/rexml/document.rb:43:in `initialize'\r\nF:/.chefdk/gem/ruby/2.0.0/gems/winrm-1.3.0/lib/winrm/http/response_handler.rb:42:in `new'\r\nF:/.chefdk/gem/ruby/2.0.0/gems/winrm-1.3.0/lib/winrm/http/response_handler.rb:42:in `response_xml'\r\nF:/.chefdk/gem/ruby/2.0.0/gems/winrm-1.3.0/lib/winrm/http/response_handler.rb:61:in `raise_if_wsman_fault'\r\nF:/.chefdk/gem/ruby/2.0.0/gems/winrm-1.3.0/lib/winrm/http/response_handler.rb:51:in `raise_if_error'\r\nF:/.chefdk/gem/ruby/2.0.0/gems/winrm-1.3.0/lib/winrm/http/response_handler.rb:35:in `parse_to_xml'\r\nF:/.chefdk/gem/ruby/2.0.0/gems/winrm-1.3.0/lib/winrm/http/transport.rb:50:in `send_request'\r\nF:/.chefdk/gem/ruby/2.0.0/gems/winrm-1.3.0/lib/winrm/winrm_service.rb:421:in `send_message'\r\nF:/.chefdk/gem/ruby/2.0.0/gems/winrm-1.3.0/lib/winrm/winrm_service.rb:126:in `open_shell'\r\nF:/.chefdk/gem/ruby/2.0.0/gems/winrm-1.3.0/lib/winrm/winrm_service.rb:305:in `run_cmd'\r\nF:/.chefdk/gem/ruby/2.0.0/gems/winrm-1.3.0/lib/winrm/winrm_service.rb:323:in `run_powershell_script'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/transport/winrm.rb:227:in `execute_with_exit'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/transport/winrm.rb:54:in `execute'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/driver/base.rb:68:in `block in converge'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/transport/base.rb:73:in `connection'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/driver/base.rb:67:in `converge'\r\nF:/.chefdk/gem/ruby/2.0.0/gems/kitchen-vagrant-0.16.0/lib/kitchen/driver/vagrant.rb:88:in `converge'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:378:in `public_send'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:378:in `block in perform_action'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:442:in `call'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:442:in `synchronize_or_call'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:407:in `block in action'\r\nC:/opscode/chefdk/embedded/lib/ruby/2.0.0/benchmark.rb:281:in `measure'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:406:in `action'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:378:in `perform_action'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:338:in `converge_action'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:318:in `block in transition_to'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:317:in `each'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:317:in `transition_to'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:149:in `setup'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/command.rb:176:in `public_send'\r\nC:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/command.rb:176:in `block (2 levels) in run_action'\r\nF:/.chefdk/gem/ruby/2.0.0/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'\r\nF:/.chefdk/gem/ruby/2.0.0/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'\r\n...\r\nmissing attribute quote\r\nLine: 102\r\nPosition: 4329\r\nLast 80 unconsumed characters:\r\n <STYLE id=L_10v=Content-Type content=\"text/html; charset=UTF-8\">\r\nLine: 102\r\nPosition: 4329\r\nLast 80 unconsumed characters:\r\n <STYLE id=L_10 (502). using shell: [powershell] and command: [ $ProgressPreference='SilentlyContinue';\r\n# @return True if chef path exist, False otherwise\r\nfunction is_chef_installed { Test-Path /opscode/chef }\r\n\r\n# @param $version the requested version of omnibus package\r\n# @return True if omnibus needs to be installed, False otherwise\r\nfunction should_update_chef($version) {\r\n  if (-Not (is_chef_installed)) { return $true }\r\n\r\n  try {\r\n    $chef_version=(chef-solo -v).split(' ',2)[1]\r\n  } catch [Exception] {\r\n    $chef_version = ''\r\n  }\r\n\r\n  switch ($version) {\r\n    { 'true', $chef_version -contains $_ } { return $false }\r\n    'latest' { return $true }\r\n    default { return $true }\r\n  }\r\n}\r\n\r\n# @param $chef_url The url where we will download chef\r\n# @param $chef_msi Temporal MSI path\r\nfunction download_chef($chef_url, $chef_msi) {\r\n  Write-Host -NoNewline \"`r`tDownloading Chef...\"\r\n  $proxy = new-object System.Net.WebProxy\r\n  $proxy.Address = $env:http_proxy\r\n  $wc = new-object system.net.WebClient\r\n  $wc.proxy = $proxy\r\n  $wc.DownloadFile($chef_url, $chef_msi)\r\n  Write-Host -NoNewline \"`r`tDone!              \"\r\n}\r\n\r\n# function to install chef with sort of a nice progress bar\r\nfunction install_chef {\r\n  $proc_msi = Start-Process -FilePath 'msiexec.exe' -ArgumentList \"/qn /i $chef_msi\" -Passthru\r\n  $bar = \"\"\r\n  while (-Not $proc_msi.HasExited ) {\r\n    Write-Host -NoNewline \"`r`t[MSI] [$bar\"\r\n    Start-Sleep 2\r\n    $bar += \"#\"\r\n  }\r\n\r\n  if ($proc_msi.ExitCode -ne 0) {\r\n    throw \"msiexec was not successful. Received exit code $($proc_msi.ExitCode)\"\r\n  }\r\n  rm -r $chef_msi\r\n  Write-Host -NoNewline \"`r`t[MSI] [$bar] Completed!\r\n\"\r\n}\r\n\r\n  $chef_msi = $env:systemdrive + \"\\chef.msi\"\r\n\r\n  If (should_update_chef true) {\r\n    Write-Host \"-----> Installing Chef Omnibus (true)\r\n\"\r\n    download_chef \"http://www.chef.io/chef/install.msi?\" $chef_msi\r\n    install_chef\r\n  } else {\r\n    Write-Host \"-----> Chef Omnibus installation detected (true)\r\n\"\r\n  }\r\n]]\r\n>>>>>> ----------------------\r\n>>>>>> Please see .kitchen/logs/kitchen.log for more details\r\n>>>>>> Also try running `kitchen diagnose --all` for configuration\r\n```"},"comment":{"url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/comments/84070080","html_url":"https://github.com/test-kitchen/test-kitchen/issues/635#issuecomment-84070080","issue_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/635","id":84070080,"user":{"login":"webframp","id":774378,"avatar_url":"https://avatars.githubusercontent.com/u/774378?v=3","gravatar_id":"","url":"https://api.github.com/users/webframp","html_url":"https://github.com/webframp","followers_url":"https://api.github.com/users/webframp/followers","following_url":"https://api.github.com/users/webframp/following{/other_user}","gists_url":"https://api.github.com/users/webframp/gists{/gist_id}","starred_url":"https://api.github.com/users/webframp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webframp/subscriptions","organizations_url":"https://api.github.com/users/webframp/orgs","repos_url":"https://api.github.com/users/webframp/repos","events_url":"https://api.github.com/users/webframp/events{/privacy}","received_events_url":"https://api.github.com/users/webframp/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T16:59:36Z","updated_at":"2015-03-20T16:59:36Z","body":"likewise, here's my diagnose output:\r\n\r\n```\r\n---\r\ntimestamp: '2015-03-20 16:57:34 UTC'\r\nkitchen_version: 1.3.2.dev\r\ninstances:\r\n  default-windows-2012R2:\r\n    platform:\r\n      os_type: windows\r\n      shell_type: powershell\r\n    state_file:\r\n      hostname: 127.0.0.1\r\n      password: vagrant\r\n      username: vagrant\r\n    driver:\r\n      box: opscode-windows-2012R2\r\n      box_check_update: \r\n      box_url: https://wrock.blob.core.windows.net/vhds/vbox2012r2.box\r\n      box_version: \r\n      customize: {}\r\n      gui: \r\n      kitchen_root: C:/src/cookbook-appserver\r\n      log_level: :info\r\n      name: vagrant\r\n      network: []\r\n      password: vagrant\r\n      pre_create_command: \r\n      provider: virtualbox\r\n      provision: false\r\n      ssh: {}\r\n      synced_folders: []\r\n      test_base_path: C:/src/cookbook-appserver/test/integration\r\n      username: vagrant\r\n      vagrantfile_erb: F:/.chefdk/gem/ruby/2.0.0/gems/kitchen-vagrant-0.16.0.dev/templates/Vagrantfile.erb\r\n      vagrantfiles: []\r\n      vm_hostname: \r\n    provisioner:\r\n      attributes: {}\r\n      chef_client_path: $env:systemdrive\\opscode\\chef\\bin\\chef-client.bat\r\n      chef_metadata_url: https://www.chef.io/chef/metadata?p=windows&m=x86_64&pv=2008r2&v=latest\r\n      chef_omnibus_install_options: \r\n      chef_omnibus_root: $env:systemdrive\\opscode\\chef\r\n      chef_omnibus_url: https://www.chef.io/chef/install.sh\r\n      chef_zero_host: \r\n      chef_zero_port: 8889\r\n      client_rb: {}\r\n      clients_path: \r\n      cookbook_files_glob: README.*,metadata.{json,rb},attributes/**/*,definitions/**/*,files/**/*,libraries/**/*,providers/**/*,recipes/**/*,resources/**/*,templates/**/*\r\n      data_bags_path: \r\n      data_path: \r\n      encrypted_data_bag_secret_key_path: \r\n      environments_path: \r\n      http_proxy: \r\n      https_proxy: \r\n      json_attributes: true\r\n      kitchen_root: C:/src/cookbook-appserver\r\n      log_file: \r\n      log_level: :info\r\n      name: chef_zero\r\n      nodes_path: \r\n      require_chef_omnibus: true\r\n      roles_path: \r\n      root_path: $env:TEMP\\kitchen\r\n      ruby_bindir: $env:systemdrive\\opscode\\chef\\embedded\\bin\r\n      run_list:\r\n      - recipe[appserver::default]\r\n      sudo: \r\n      test_base_path: C:/src/cookbook-appserver/test/integration\r\n    transport:\r\n      connection_retries: 5\r\n      connection_retry_sleep: 1\r\n      endpoint_template: http://%{hostname}:%{port}/wsman\r\n      kitchen_root: C:/src/cookbook-appserver\r\n      log_level: :info\r\n      max_wait_until_ready: 600\r\n      name: winrm\r\n      password: \r\n      port: 5985\r\n      rdp_port: 3389\r\n      test_base_path: C:/src/cookbook-appserver/test/integration\r\n      username: .\\administrator\r\n    verifier:\r\n      busser_bin: $env:TEMP\\verifier\\bin\\busser.bat\r\n      http_proxy: \r\n      https_proxy: \r\n      kitchen_root: C:/src/cookbook-appserver\r\n      log_level: :info\r\n      name: busser\r\n      root_path: $env:TEMP\\verifier\r\n      ruby_bindir: $env:systemdrive\\opscode\\chef\\embedded\\bin\r\n      sudo: \r\n      suite_name: default\r\n      test_base_path: C:/src/cookbook-appserver/test/integration\r\n      version: busser\r\n```"}}