Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Win2012r2) Chef-client version to install seems to be ignored #882

Closed
vinyar opened this issue Nov 29, 2015 · 11 comments
Closed

(Win2012r2) Chef-client version to install seems to be ignored #882

vinyar opened this issue Nov 29, 2015 · 11 comments

Comments

@vinyar
Copy link

vinyar commented Nov 29, 2015

Bug:
It doesn't seem to matter what version is specified in the .kitchen.yml file. That version is reported as having been detected.

Example:
.kitchen.yml

---
driver:
  name: vagrant
provisioner:
  require_chef_omnibus: 57.24.0
platforms:
  - name: win2012_chef11_14_2
suites:
  - name: default
    run_list:
      - recipe[ces_chefworkstation::default]
    attributes:

output:

-----> Converging <default-win2012-chef11-14-2>...
       Preparing files for transfer
       Preparing dna.json
       Resolving cookbook dependencies with Berkshelf 4.0.1...
       Removing non-cookbook files before transfer
       Preparing solo.rb
-----> Chef Omnibus installation detected (57.24.0)
       Transferring files to <default-win2012-chef11-14-2>
....
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
       Starting Chef Client, version 11.14.2
       Compiling Cookbooks...

Dev env info:
$ chef -v
Chef Development Kit Version: 0.10.0
chef-client version: 12.5.1
berks version: 4.0.1
kitchen version: 1.4.2
$ vagrant plugin list
kitchen-nodes (0.5.0)
vagrant-azure (1.3.0)
vagrant-berkshelf (4.1.0)
vagrant-cachier (1.2.1)
vagrant-omnibus (1.4.1)
vagrant-share (1.1.4, system)
vagrant-winrm (0.7.0)

Notes:

reference: chef-boneyard/vagrant-omnibus#125

@ghost
Copy link

ghost commented Dec 2, 2015

This appears to be a duplicate of #847.

@mwrock
Copy link
Member

mwrock commented Dec 4, 2015

yeah this definitely seems broken. However as of current kitchen master and future releases, the bug resides in the mixlib/install gem and a fix is in chef/mixlib-install#21

@cheeseplus
Copy link

Blocked on chef/mixlib-install#21

@cheeseplus
Copy link

Closing as it's a dupe of #882

@ghost
Copy link

ghost commented Jan 27, 2016

@cheeseplus This is #882. Did you mean to close this a duplicate of #847?

@vinyar
Copy link
Author

vinyar commented Mar 16, 2016

@cheeseplus I just tested this with latest chefdk - and I'm getting same behavior.

$ chef -v
Chef Development Kit Version: 0.11.2
chef-client version: 12.7.2
berks version: 4.2.0
kitchen version: 1.5.0

@mwrock
Copy link
Member

mwrock commented Mar 18, 2016

I just tried this on:
chef-dk: 0.11.2
kitchen: 1.6.0
mixlib-install: 0.7.1

And a provisoner config:

provisioner:
  name: chef_zero
  require_chef_omnibus: 12.5.1

The provisioner successful downloaded and installed chef v12.5.1.

@vinyar
Copy link
Author

vinyar commented Mar 18, 2016

@mwrock can you try setting the installer to lets say 12.1, run a converge, then set it to 12.5, or even something non existent as in the example? Perhaps the difference is that I'm starting out with a windows box that has 11.14 installed.

There's gotta be something different between our setups.

$ kitchen converge
-----> Starting Kitchen (v1.5.0)
-----> Converging <default-win2012-chef11-14-2>...
       Preparing files for transfer
       Preparing dna.json
       Preparing cookbooks from project directory
       Removing non-cookbook files before transfer
       Preparing validation.pem
       Preparing client.rb
-----> Chef Omnibus installation detected (57.24.0)

       Transferring files to <default-win2012-chef11-14-2>
       Starting Chef Client, version 11.14.2
...

@mwrock
Copy link
Member

mwrock commented Mar 18, 2016

I get this:

-----> Installing Chef Omnibus (57.24.0)

       Downloading package from

       Skipping md5 verification

       Installing Chef Omnibus package C:\Users\vagrant\AppData\Local\Temp\chef-57.24.0.msi

$$$$$$ Exception calling "DownloadString" with "1" argument(s): "The remote server
$$$$$$ returned an error: (404) Not Found."

Have you tried with TK 1.6.0? And what version of mixlib-install do you have?

@smurawski
Copy link
Contributor

@vinyar, I get the same results as @mwrock with Test-Kitchen 1.6 and mixlib-install 0.7.1. But I have seen that behavior on earlier versions of mixlib-install and test-kitchen before it used mixlib-install.

@vinyar
Copy link
Author

vinyar commented Mar 22, 2016

with TK 1.6 I get the expected behavior

@test-kitchen test-kitchen locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants