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

Test Kitchen fails to converge on Windows 2008r2 #1351

Closed
skopak opened this issue Jan 29, 2018 · 3 comments
Closed

Test Kitchen fails to converge on Windows 2008r2 #1351

skopak opened this issue Jan 29, 2018 · 3 comments

Comments

@skopak
Copy link

skopak commented Jan 29, 2018

Description

test-kitchen converge fails on Windows 2008r2. Error resolving cookbooks for runlist. Seems that after running kitchen converge command the cookbook cannot be found.

Kitchen Version

Test Kitchen version: 1.17.0

-----> Starting Kitchen (v1.17.0)
-----> Converging <default-windows-2008r2>...
       Preparing files for transfer
       Preparing dna.json
       Resolving cookbook dependencies with Berkshelf 6.3.1...
       Removing non-cookbook files before transfer
       Preparing validation.pem
       Preparing client.rb
-----> Installing Chef Omnibus (install only if missing)
       Downloading package from https://packages.chef.io/files/stable/chef/13.7.16/windows/2016/chef-client-13.7.16-1-x64.msi
       Download complete.
       Successfully verified C:\Users\vagrant\AppData\Local\Temp\chef-client-13.7.16-1-x64.msi
       Installing Chef Omnibus package C:\Users\vagrant\AppData\Local\Temp\chef-client-13.7.16-1-x64.msi
       Installation complete
       Transferring files to <default-windows-2008r2>
       Starting Chef Client, version 13.7.16
       Creating a new client identity for default-windows-2008r2 using the validator key.
       resolving cookbooks for run list: ["ecitations::installers", "ecitations::ecitationcfg"]

       ================================================================================
       Error Resolving Cookbooks for Run List:
       ================================================================================

       Missing Cookbooks:
       ------------------
       No such cookbook: ecitations

       Expanded Run List:
       ------------------
       * ecitations::installers
       * ecitations::ecitationcfg

       System Info:
       ------------
       chef_version=13.7.16
       platform=windows
       platform_version=6.1.7601
       ruby=ruby 2.4.3p205 (2017-12-14 revision 61247) [x64-mingw32]
       program_name=C:/opscode/chef/bin/chef-client
       executable=C:/opscode/chef/bin/chef-client


       Running handlers:
       [2018-01-29T09:46:09-08:00] ERROR: Running exception handlers
       [2018-01-29T09:46:09-08:00] ERROR: Running exception handlers
       Running handlers complete
       [2018-01-29T09:46:09-08:00] ERROR: Exception handlers complete
       [2018-01-29T09:46:09-08:00] ERROR: Exception handlers complete
       Chef Client failed. 0 resources updated in 03 seconds
       [2018-01-29T09:46:09-08:00] FATAL: Stacktrace dumped to C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/chef-stacktrace.out
       [2018-01-29T09:46:09-08:00] FATAL: Stacktrace dumped to C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/chef-stacktrace.out
       [2018-01-29T09:46:09-08:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
       [2018-01-29T09:46:09-08:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
       [2018-01-29T09:46:09-08:00] FATAL: Net::HTTPServerException: 412 "Precondition Failed"
       [2018-01-29T09:46:09-08:00] FATAL: Net::HTTPServerException: 412 "Precondition Failed"
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>>     Converge failed on instance <default-windows-2008r2>.  Please see .kitchen/logs/default-windows-2008r2.log for more details
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

This error happens even when trying to run the default recipe.

ChefDK Version

Chef Development Kit version: 2.3.4

Platform Version

Operating System: Windows 2008 (64-bit)
Vagrant version: 2.0.1
Virtualbox version: 5.1.3

Replication Case

chef generate cookbook ecitations
kitchen create
kitchen converge

link for .kitchen.yml:
.kitchen.yml

Kitchen Output

kitchen -l debug

Kitchen Diagnose

kitchen diagnose --all

@cheeseplus
Copy link

This looks like an upstream bug in winrm-fs, we've since fixed it but in order to do get that you'll need at least ChefDK 2.4.17. If you upgrade and are still experiencing the issue please let us know but that should resolve this assuming you've named the cookbooks correctly in metadata.rb.

@skopak
Copy link
Author

skopak commented Jan 30, 2018

@cheeseplus Sorry for the feedback delay. Upgrading the ChefDK fixed the problem. Thanks for the help!

@skopak skopak closed this as completed Jan 30, 2018
@lock
Copy link

lock bot commented Jan 18, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
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

2 participants