{"action":"created","issue":{"url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/1418","repository_url":"https://api.github.com/repos/test-kitchen/test-kitchen","labels_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/1418/labels{/name}","comments_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/1418/comments","events_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/1418/events","html_url":"https://github.com/test-kitchen/test-kitchen/issues/1418","id":331218661,"node_id":"MDU6SXNzdWUzMzEyMTg2NjE=","number":1418,"title":"Busser installation fails on Windows","user":{"login":"dmunney","id":13511217,"node_id":"MDQ6VXNlcjEzNTExMjE3","avatar_url":"https://avatars3.githubusercontent.com/u/13511217?v=4","gravatar_id":"","url":"https://api.github.com/users/dmunney","html_url":"https://github.com/dmunney","followers_url":"https://api.github.com/users/dmunney/followers","following_url":"https://api.github.com/users/dmunney/following{/other_user}","gists_url":"https://api.github.com/users/dmunney/gists{/gist_id}","starred_url":"https://api.github.com/users/dmunney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmunney/subscriptions","organizations_url":"https://api.github.com/users/dmunney/orgs","repos_url":"https://api.github.com/users/dmunney/repos","events_url":"https://api.github.com/users/dmunney/events{/privacy}","received_events_url":"https://api.github.com/users/dmunney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-11T14:41:16Z","updated_at":"2018-06-26T09:12:03Z","closed_at":null,"author_association":"NONE","body":"## Description\r\n\r\nWhile attempting to run kitchen tests on AWS EC2 instances, busser fails to install on Windows Server 2012r2.\r\n\r\n## Kitchen Version\r\n\r\nTell us which version of test-kitchen you are using (`kitchen --version`).  \r\n\r\n```ruby\r\nTest Kitchen version 1.21.2\r\n```\r\n\r\n## ChefDK Version\r\n\r\nIf you are running test-kitchen via ChefDK, `chef --version` will provide additional relevent version details.\r\n\r\n```ruby\r\nChef Development Kit Version: 3.0.36\r\nchef-client version: 14.1.12\r\ndelivery version: master (7206afaf4cf29a17d2144bb39c55b7212cfafcc7)\r\nberks version: 7.0.2\r\nkitchen version: 1.21.2\r\ninspec version: 2.1.72\r\n```\r\n\r\n## Platform Version\r\n\r\nTell us which Operating System distribution and version test-kitchen is running on.\r\n\r\n## Replication Case\r\n\r\nSample code located here: https://github.com/dmunney/kitchen-bug\r\n\r\n## Kitchen Output\r\n\r\nThe relevant output of the test-kitchen run or a link to a gist of the entire run, if there is one.\r\n\r\nThe debug output (kitchen -l debug) may be useful, but please link to a gist, or truncate it.\r\n\r\nPlease do not paste the full run out put here.  If the full output would be useful, link to it in a gist.\r\n\r\n```ruby\r\nchef exec bundle exec kitchen test\r\n-----> Starting Kitchen (v1.21.2)\r\n-----> Cleaning up any prior instances of <foo-sandbox>\r\n-----> Destroying <foo-sandbox>...\r\n       EC2 instance <i-024a55fa764954704> destroyed.\r\n       Finished destroying <foo-sandbox> (0m0.53s).\r\n-----> Testing <foo-sandbox>\r\n-----> Creating <foo-sandbox>...\r\n       Detected platform: windows version 2012r2rtm on x86_64. Instance Type: t2.micro. Default username: administrator (default).\r\n       If you are not using an account that qualifies under the AWS\r\nfree-tier, you may be charged to run these suites. The charge\r\nshould be minimal, but neither Test Kitchen nor its maintainers\r\nare responsible for your incurred costs.\r\n\r\n       Instance <i-049df53426b1d5cde> requested.\r\n       Polling AWS for existence, attempt 0...\r\n       Attempting to tag the instance, 0 retries\r\n       EC2 instance <i-049df53426b1d5cde> created.\r\n       Waited 0/300s for instance <i-049df53426b1d5cde> volumes to be ready.\r\n      ...\r\n       Waited 55/300s for instance <i-049df53426b1d5cde> to become ready.\r\n       EC2 instance <i-049df53426b1d5cde> ready (hostname: ec2-18-236-207-20.us-west-2.compute.amazonaws.com).\r\n       [WinRM] Established\r\n       \r\n       Finished creating <foo-sandbox> (1m34.57s).\r\n-----> Converging <foo-sandbox>...\r\n       Preparing files for transfer\r\n       Preparing dna.json\r\n       Preparing current project directory as a cookbook\r\n       Removing non-cookbook files before transfer\r\n       Preparing validation.pem\r\n       Preparing client.rb\r\n-----> Installing Chef Omnibus (install only if missing)\r\n       Downloading package from https://packages.chef.io/files/stable/chef/14.2.0/windows/2016/chef-client-14.2.0-1-x64.msi\r\n       Download complete.\r\n       Successfully verified C:\\Users\\CHEF-T~1\\AppData\\Local\\Temp\\chef-client-14.2.0-1-x64.msi\r\n       Installing Chef Omnibus package C:\\Users\\CHEF-T~1\\AppData\\Local\\Temp\\chef-client-14.2.0-1-x64.msi\r\n       Installation complete\r\n       Transferring files to <foo-sandbox>\r\n       Starting Chef Client, version 14.2.0\r\n       Creating a new client identity for foo-sandbox using the validator key.\r\n       resolving cookbooks for run list: [\"kitchenbug::foo\"]\r\n       Synchronizing Cookbooks:\r\n         - kitchenbug (1.0.0)\r\n       Installing Cookbook Gems:\r\n       Compiling Cookbooks...\r\n       Converging 1 resources\r\n       Recipe: kitchenbug::foo\r\n         * windows_service[w32time_start] action start\r\n           - start service windows_service[w32time_start]\r\n       \r\n       Running handlers:\r\n       Running handlers complete\r\n       Chef Client finished, 1/1 resources updated in 07 seconds\r\n       Downloading files from <foo-sandbox>\r\n       Finished converging <foo-sandbox> (1m9.67s).\r\n-----> Setting up <foo-sandbox>...\r\n       Finished setting up <foo-sandbox> (0m0.00s).\r\n-----> Verifying <foo-sandbox>...\r\n       Preparing files for transfer\r\n-----> Installing Busser (busser)\r\n       \r\n       ruby.exe : ERROR:  While executing gem ... (Gem::Package::PathError)\r\n       At line:19 char:3\r\n       +   & \"$ruby\" \"$gem\" install $gem_install_args.Split() 2>&1\r\n       +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n           + CategoryInfo          : NotSpecified: (ERROR:  While e...age::PathError):String) [], RemoteException\r\n           + FullyQualifiedErrorId : NativeCommandError\r\n        \r\n           installing into parent path bin/thor of C:/Users/CHEF-T~1/AppData/Local/Temp/verifier/gems/gems/thor-0.19.0 is not allowed\r\n       \r\n       ruby.exe : C:\\opscode\\chef\\embedded\\bin\\ruby.exe: No such file or directory -- C:/Users/CHEF-T~1/AppData/Local/Temp/verifier/gems/bin/busser (LoadError)\r\n       At line:26 char:3\r\n       +   & \"$ruby\" \"$gem_bindir\\busser\" setup --type bat 2>&1\r\n       +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n           + CategoryInfo          : NotSpecified: (C:\\opscode\\chef...ser (LoadError):String) [], RemoteException\r\n           + FullyQualifiedErrorId : NativeCommandError\r\n        \r\n       Installing Busser plugins: busser-serverspec\r\n       \r\n$$$$$$ The term 'C:\\Users\\CHEF-T~1\\AppData\\Local\\Temp\\verifier\\bin\\busser.bat' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.\r\nAt line:30 char:3\r\n$$$$$$ + & \"$busser\" plugin install $plugins.Split() 2>&1\r\n$$$$$$ +   ~~~~~~~~~\r\n    + CategoryInfo          : ObjectNotFound: (C:\\Users\\CHEF-T...\\bin\\busser.bat:String) [], CommandNotFoundException\r\n    + FullyQualifiedErrorId : CommandNotFoundException\r\n\r\n>>>>>> ------Exception-------\r\n>>>>>> Class: Kitchen::ActionFailed\r\n>>>>>> Message: 1 actions failed.\r\n>>>>>>     Verify failed on instance <foo-sandbox>.  Please see .kitchen/logs/foo-sandbox.log for more details\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\r\n\r\n```\r\n\r\n## Kitchen Diagnose\r\n\r\n```\r\n---\r\ntimestamp: 2018-06-11 14:36:23 UTC\r\nkitchen_version: 1.21.2\r\ninstances:\r\n  foo-latest:\r\n    platform:\r\n      os_type: windows\r\n      shell_type: powershell\r\n    state_file:\r\n      hostname: ec2-34-217-36-213.us-west-2.compute.amazonaws.com\r\n      last_action: setup\r\n      last_error: Kitchen::ActionFailed\r\n      server_id: i-04a0ce7b1f1478449\r\n    driver:\r\n      associate_public_ip: \r\n      availability_zone: us-west-2a\r\n      aws_access_key_id: \r\n      aws_secret_access_key: \r\n      aws_session_token: \r\n      aws_ssh_key_id: redacted\r\n      block_duration_minutes: \r\n      ebs_optimized: false\r\n      http_proxy: \r\n      iam_profile_name: redacted\r\n      image_id: ami-bbd6a7c3\r\n      image_search:\r\n        owner-id: '801119661308'\r\n        name: Windows_Server-2012-R2_RTM-English-64Bit-Base-*\r\n      instance_initiated_shutdown_behavior: \r\n      instance_type: t2.micro\r\n      interface: \r\n      kitchen_root: \"/Users/dmunroe/Dev/chefbug\"\r\n      log_level: :info\r\n      name: ec2\r\n      pre_create_command: \r\n      private_ip_address: \r\n      region: us-west-2\r\n      retry_limit: 3\r\n      retryable_sleep: 5\r\n      retryable_tries: 60\r\n      security_group_filter: \r\n      security_group_ids:\r\n      - sg-redacted\r\n      shared_credentials_profile: \r\n      skip_cost_warning: false\r\n      spot_price: \r\n      ssl_verify_peer: true\r\n      subnet_id: subnet-redacted\r\n      tags:\r\n        created-by: test-kitchen\r\n      tenancy: default\r\n      test_base_path: \"/Users/dmunroe/Dev/chefbug/test/integration\"\r\n      user_data: \"<powershell>\\n\\t$OSVersion = (get-itemproperty -Path \\\"HKLM:\\\\SOFTWARE\\\\Microsoft\\\\Windows\r\n        NT\\\\CurrentVersion\\\" -Name ProductName).ProductName\\n\\tIf($OSVersion.contains('2016'))\\n\\t{\\n\r\n        \\     \\t$logfile='C:\\\\ProgramData\\\\Amazon\\\\EC2-Windows\\\\Launch\\\\Log\\\\kitchen-ec2.log'\\n\\t#\r\n        EC2Launch doesn't init extra disks by default\\n\\tC:\\\\ProgramData\\\\Amazon\\\\EC2-Windows\\\\Launch\\\\Scripts\\\\InitializeDisks.ps1\\n\\t}\\n\\tElse\\n\\t{\\n\\t$logfile='C:\\\\Program\r\n        Files\\\\Amazon\\\\Ec2ConfigService\\\\Logs\\\\kitchen-ec2.log'\\n\\t}\\n# Allow script\r\n        execution\\nSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force\\n#PS Remoting\r\n        and & winrm.cmd basic config\\n$enableArgs=@{Force=$true}\\n$command=Get-Command\r\n        Enable-PSRemoting\\nif($command.Parameters.Keys -contains \\\"skipnetworkprofilecheck\\\"){\\n\r\n        \\   $enableArgs.skipnetworkprofilecheck=$true\\n}\\nEnable-PSRemoting @enableArgs\\n&\r\n        winrm.cmd set winrm/config '@{MaxTimeoutms=\\\"1800000\\\"}' >> $logfile\\n& winrm.cmd\r\n        set winrm/config/winrs '@{MaxMemoryPerShellMB=\\\"1024\\\"}' >> $logfile\\n& winrm.cmd\r\n        set winrm/config/winrs '@{MaxShellsPerUser=\\\"50\\\"}' >> $logfile\\n& winrm.cmd\r\n        set winrm/config/winrs '@{MaxMemoryPerShellMB=\\\"1024\\\"}' >> $logfile\\n#Firewall\r\n        Config\\n& netsh advfirewall firewall set rule name=\\\"Windows Remote Management\r\n        (HTTP-In)\\\" profile=public protocol=tcp localport=5985 remoteip=localsubnet\r\n        new remoteip=any  >> $logfile\\nSet-ItemProperty -Name LocalAccountTokenFilterPolicy\r\n        -Path HKLM:\\\\software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\system\r\n        -Value 1\\n\\n\\\"Disabling Complex Passwords\\\" >> $logfile\\n$seccfg = [IO.Path]::GetTempFileName()\\n&\r\n        secedit.exe /export /cfg $seccfg >> $logfile\\n(Get-Content $seccfg) | Foreach-Object\r\n        {$_ -replace \\\"PasswordComplexity\\\\s*=\\\\s*1\\\", \\\"PasswordComplexity = 0\\\"}\r\n        | Set-Content $seccfg\\n& secedit.exe /configure /db $env:windir\\\\security\\\\new.sdb\r\n        /cfg $seccfg /areas SECURITYPOLICY >> $logfile\\n& cp $seccfg \\\"c:\\\\\\\"\\n& del\r\n        $seccfg\\n$username=\\\"chef-test-kitchen\\\"\\n$password=\\\"im-ron-burgundy?\\\"\\n\\\"Creating\r\n        static user: $username\\\" >> $logfile\\n& net.exe user /y /add $username $password\r\n        >> $logfile\\n\\\"Adding $username to Administrators\\\" >> $logfile\\n& net.exe\r\n        localgroup Administrators /add $username >> $logfile\\n\\n</powershell>\\n\"\r\n      username: \r\n    provisioner:\r\n      always_update_cookbooks: false\r\n      architecture: \r\n      attributes: {}\r\n      channel: :stable\r\n      checksum: \r\n      chef_client_path: \"\\\\bin\\\\chef-client.bat\"\r\n      chef_omnibus_install_options: \r\n      chef_omnibus_url: https://omnitruck.chef.io/install.sh\r\n      chef_zero_host: \r\n      chef_zero_port: 8889\r\n      client_rb: {}\r\n      clients_path: \r\n      command_prefix: \r\n      config_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      debug: \r\n      deprecations_as_errors: false\r\n      download_url: \r\n      downloads: {}\r\n      encrypted_data_bag_secret_key_path: \r\n      enforce_idempotency: false\r\n      environments_path: \r\n      ftp_proxy: \r\n      http_proxy: \r\n      https_proxy: \r\n      install_strategy: once\r\n      json_attributes: true\r\n      kitchen_root: \"/Users/dmunroe/Dev/chefbug\"\r\n      log_file: \r\n      log_level: auto\r\n      max_retries: 1\r\n      multiple_converge: 1\r\n      name: chef_zero\r\n      named_run_list: {}\r\n      nodes_path: \r\n      platform: \r\n      platform_version: \r\n      policyfile: \r\n      policyfile_path: \r\n      product_name: \r\n      product_version: :latest\r\n      profile_ruby: false\r\n      require_chef_omnibus: true\r\n      retry_on_exit_code:\r\n      - 35\r\n      - 213\r\n      roles_path: \r\n      root_path: \"$env:TEMP\\\\kitchen\"\r\n      ruby_bindir: \"\\\\embedded\\\\bin\"\r\n      run_list:\r\n      - recipe[kitchenbug::foo]\r\n      sudo: \r\n      sudo_command: \r\n      test_base_path: \"/Users/dmunroe/Dev/chefbug/test/integration\"\r\n      wait_for_retry: 30\r\n    transport:\r\n      connection_retries: 5\r\n      connection_retry_sleep: 1\r\n      elevated: false\r\n      kitchen_root: \"/Users/dmunroe/Dev/chefbug\"\r\n      log_level: :info\r\n      max_wait_until_ready: 600\r\n      name: winrm\r\n      password: im-ron-burgundy?\r\n      port: 5985\r\n      rdp_port: 3389\r\n      scheme: http\r\n      ssh_key: \"/path/to/ssh/key\"\r\n      test_base_path: \"/Users/dmunroe/Dev/chefbug/test/integration\"\r\n      username: chef-test-kitchen\r\n      winrm_transport: :negotiate\r\n    verifier:\r\n      busser_bin: \"$env:TEMP\\\\verifier\\\\bin\\\\busser.bat\"\r\n      chef_omnibus_root: \"/opt/chef\"\r\n      command_prefix: \r\n      debug: \r\n      ftp_proxy: \r\n      http_proxy: \r\n      https_proxy: \r\n      kitchen_root: \"/Users/dmunroe/Dev/chefbug\"\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      sudo_command: \r\n      suite_name: foo\r\n      test_base_path: \"/Users/dmunroe/Dev/chefbug/test/integration\"\r\n      version: busser\r\n\r\n```\r\n\r\n## NOTE:\r\n\r\nThis repository is for core issues with the Test-Kitchen framework, so if the issue is with a plugin you may be referred to file the issue with the appropriate plugin."},"comment":{"url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/comments/400238419","html_url":"https://github.com/test-kitchen/test-kitchen/issues/1418#issuecomment-400238419","issue_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/1418","id":400238419,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDIzODQxOQ==","user":{"login":"kamaradclimber","id":503537,"node_id":"MDQ6VXNlcjUwMzUzNw==","avatar_url":"https://avatars1.githubusercontent.com/u/503537?v=4","gravatar_id":"","url":"https://api.github.com/users/kamaradclimber","html_url":"https://github.com/kamaradclimber","followers_url":"https://api.github.com/users/kamaradclimber/followers","following_url":"https://api.github.com/users/kamaradclimber/following{/other_user}","gists_url":"https://api.github.com/users/kamaradclimber/gists{/gist_id}","starred_url":"https://api.github.com/users/kamaradclimber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamaradclimber/subscriptions","organizations_url":"https://api.github.com/users/kamaradclimber/orgs","repos_url":"https://api.github.com/users/kamaradclimber/repos","events_url":"https://api.github.com/users/kamaradclimber/events{/privacy}","received_events_url":"https://api.github.com/users/kamaradclimber/received_events","type":"User","site_admin":false},"created_at":"2018-06-26T09:12:03Z","updated_at":"2018-06-26T09:12:03Z","author_association":"CONTRIBUTOR","body":"Same issue encountered on https://travis-ci.org/criteo-cookbooks/choregraphie/builds/396405665. All configuration is public on https://github.com/criteo-cookbooks/choregraphie"}}
{"actor":{"display_login":"kamaradclimber"}}