{"action":"created","issue":{"url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/820","repository_url":"https://api.github.com/repos/test-kitchen/test-kitchen","labels_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/820/labels{/name}","comments_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/820/comments","events_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/820/events","html_url":"https://github.com/test-kitchen/test-kitchen/issues/820","id":102390183,"number":820,"title":"Windows guests ignore chef_omnibus_url, require override of chef_metadata_url","user":{"login":"gh2k","id":6530014,"avatar_url":"https://avatars.githubusercontent.com/u/6530014?v=3","gravatar_id":"","url":"https://api.github.com/users/gh2k","html_url":"https://github.com/gh2k","followers_url":"https://api.github.com/users/gh2k/followers","following_url":"https://api.github.com/users/gh2k/following{/other_user}","gists_url":"https://api.github.com/users/gh2k/gists{/gist_id}","starred_url":"https://api.github.com/users/gh2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gh2k/subscriptions","organizations_url":"https://api.github.com/users/gh2k/orgs","repos_url":"https://api.github.com/users/gh2k/repos","events_url":"https://api.github.com/users/gh2k/events{/privacy}","received_events_url":"https://api.github.com/users/gh2k/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-21T14:25:08Z","updated_at":"2016-03-18T23:00:15Z","closed_at":null,"body":"I'm trying to use a custom omnibus url on Windows, as I've needed to patch a file in chef in order for something to work.\r\n\r\nHere's a sample kitchen.yml:\r\n```yaml\r\n---\r\ndriver:\r\n  name: vagrant\r\n\r\nprovisioner:\r\n  name: chef_solo\r\n  require_chef_omnibus: true\r\n\r\nplatforms:\r\n  - name: opentable/win-2012r2-standard-amd64-nocm\r\n    os_type: windows\r\n    shell_type: powershell\r\n    transport:\r\n      name: winrm\r\n    provisioner:\r\n      chef_omnibus_url: https://myhost/chef-client-12.4.1-1-patched.msi\r\n\r\nsuites:\r\n  - name: default\r\n    run_list:\r\n      - recipe[symboliser::default]\r\n```\r\n\r\nHere's what `kitchen diagnose` has to say about that:\r\n```\r\n---\r\ntimestamp: 2015-08-21 14:12:01 UTC\r\nkitchen_version: 1.4.2\r\ninstances:\r\n  default-opentable-win-2012r2-standard-amd64-nocm:\r\n    platform:\r\n      os_type: windows\r\n      shell_type: powershell\r\n    state_file: {}\r\n    driver:\r\n      box: opentable/win-2012r2-standard-amd64-nocm\r\n      box_check_update: \r\n      box_url: \r\n      box_version: \r\n      customize:\r\n        memory: 2048\r\n        cpus: 4\r\n      gui: \r\n      kitchen_root: \"/home/simon/code/cookbooks/symboliser-cookbook\"\r\n      log_level: :info\r\n      name: vagrant\r\n      network: []\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: \"/home/simon/code/cookbooks/symboliser-cookbook/test/integration\"\r\n      vagrantfile_erb: \"/home/simon/.rvm/gems/ruby-2.2.1/gems/kitchen-vagrant-0.18.0/templates/Vagrantfile.erb\"\r\n      vagrantfiles: []\r\n      vm_hostname: \r\n    provisioner:\r\n      attributes: {}\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://myhost/chef-client-12.4.1-1-patched.msi\r\n      chef_solo_path: \"$env:systemdrive\\\\opscode\\\\chef\\\\bin\\\\chef-solo.bat\"\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      kitchen_root: \"/home/simon/code/cookbooks/symboliser-cookbook\"\r\n      log_file: \r\n      log_level: :info\r\n      name: chef_solo\r\n      nodes_path: \r\n      require_chef_omnibus: true\r\n      roles_path: \r\n      root_path: \"$env:TEMP\\\\kitchen\"\r\n      run_list:\r\n      - recipe[symboliser::default]\r\n      solo_rb: {}\r\n      sudo: \r\n      sudo_command: \r\n      test_base_path: \"/home/simon/code/cookbooks/symboliser-cookbook/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: \"/home/simon/code/cookbooks/symboliser-cookbook\"\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: \"/home/simon/code/cookbooks/symboliser-cookbook/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: \"/home/simon/code/cookbooks/symboliser-cookbook\"\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: default\r\n      test_base_path: \"/home/simon/code/cookbooks/symboliser-cookbook/test/integration\"\r\n      version: busser\r\n```\r\n\r\nHere's what `kitchen test` does:\r\n```\r\n-> be kitchen test\r\n-----> Starting Kitchen (v1.4.2)\r\n-----> Cleaning up any prior instances of <default-opentable-win-2012r2-standard-amd64-nocm>\r\n-----> Destroying <default-opentable-win-2012r2-standard-amd64-nocm>...\r\n       Finished destroying <default-opentable-win-2012r2-standard-amd64-nocm> (0m0.00s).\r\n-----> Testing <default-opentable-win-2012r2-standard-amd64-nocm>\r\n-----> Creating <default-opentable-win-2012r2-standard-amd64-nocm>...\r\n       Bringing machine 'default' up with 'virtualbox' provider...\r\n       ==> default: Importing base box 'opentable/win-2012r2-standard-amd64-nocm'...\r\n==> default: Matching MAC address for NAT networking...\r\n       ==> default: Checking if box 'opentable/win-2012r2-standard-amd64-nocm' is up to date...\r\n       ==> default: Setting the name of the VM: kitchen-symboliser-cookbook-default-opentable-win-2012r2-standard-amd64-nocm_default_1440166508782_409\r\n       ==> default: Clearing any previously set network interfaces...\r\n       ==> default: Preparing network interfaces based on configuration...\r\n           default: Adapter 1: nat\r\n       ==> default: Forwarding ports...\r\n           default: 5985 => 55985 (adapter 1)\r\n           default: 22 => 2222 (adapter 1)\r\n       ==> default: Running 'pre-boot' VM customizations...\r\n       ==> default: Booting VM...\r\n       ==> default: Waiting for machine to boot. This may take a few minutes...==> default: Machine booted and ready!\r\n       ==> default: Checking for guest additions in VM...\r\n       ==> default: Machine not provisioning because `--no-provision` is specified.\r\n       [WinRM] Established\r\n       Vagrant instance <default-opentable-win-2012r2-standard-amd64-nocm> created.\r\n       Finished creating <default-opentable-win-2012r2-standard-amd64-nocm> (1m54.62s).\r\n-----> Converging <default-opentable-win-2012r2-standard-amd64-nocm>...\r\n       Preparing files for transfer\r\n       Preparing dna.json\r\n       Resolving cookbook dependencies with Berkshelf 3.3.0...\r\n       Removing non-cookbook files before transfer\r\n       Preparing solo.rb\r\n-----> Installing Chef Omnibus (install only if missing)\r\n       Downloading package from https://opscode-omnibus-packages.s3.amazonaws.com/windows/2008r2/x86_64/chef-client-12.4.1-1.msi\r\n```\r\n\r\nIf I create a file that says:\r\n```\r\nurl\thttps://myhost/chef-client-12.4.1-1-patched.msi\r\nmd5\t5d186fb37cc254b7f0da345ef8fa5757\r\nsha256\t82961bc0374ac684f8b1d4a66a8c719182a06b6c70f3aa089bb51708310abc2d\r\n```\r\n\r\nand update my .kitchen.yml to say:\r\n```yaml\r\n\r\n---\r\ndriver:\r\n  name: vagrant\r\n\r\nprovisioner:\r\n  name: chef_solo\r\n  require_chef_omnibus: true\r\n\r\nplatforms:\r\n  - name: opentable/win-2012r2-standard-amd64-nocm\r\n    os_type: windows\r\n    shell_type: powershell\r\n    transport:\r\n      name: winrm\r\n    provisioner:\r\n      chef_metadata_url: https://myhost/chef-metadata.txt\r\n\r\nsuites:\r\n  - name: default\r\n    run_list:\r\n      - recipe[symboliser::default]\r\n```\r\nthen it installs the msi that I want.\r\n\r\nThis is not what it says in the documentation... I would expect that if chef_omnibus_url is provided then it skips the metadata request and downloads the specified msi instead."},"comment":{"url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/comments/198572343","html_url":"https://github.com/test-kitchen/test-kitchen/issues/820#issuecomment-198572343","issue_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/820","id":198572343,"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-03-18T23:00:15Z","updated_at":"2016-03-18T23:00:15Z","body":"This could be an entirely separate issue from the `:chef_omnibus_url` one. What version of the chef_zero_scheduled_task provisioner are you using? 0.0.11 had an issue that manifested similarly to this output. You might try to ensure you are using 0.0.12 or temporarily run with just chef_zero to and also add `-l debug` to your kitchen command so you see what is happening when your url is consumed."}}