ChefZero: Upgrading cookbook from 2.0.1 -> 3.0.1 gives Ohai errors #451
Labels
Status: Incomplete
A pull request that is not ready to be merged as noted by the author.
Type: Bug
Doesn't work as expected.
Cookbook version
Windows cookbook > 2.0.1
Chef-client version
Chef client >=12.14 running with Chef-Zero with local cookbooks.
Platform Details
Windows Server 2012 R2 on AWS.
Scenario:
When using any version of the Windows cookbook after 2.0.1 and a recipe that uses the windows_feature option we get the following output:
[2017-03-21T12:36:46+00:00] INFO: Processing windows_feature_dism[IIS-WebServerRole] action install (C:/Windows/system32/config/systemprofile/.chef/local-mode-cache/cache/cookbooks/windows/resources/feature.rb line 44)
[2017-03-21T12:36:46+00:00] INFO: node['dism_features'] data missing. Installing the dism_features Ohai plugin
[2017-03-21T12:36:46+00:00] INFO: Processing ohai_plugin[dism_features] action create (C:/Windows/system32/config/systemprofile/.chef/local-mode-cache/cache/cookbooks/windows/resources/feature_dism.rb line 57)
[2017-03-21T12:36:46+00:00] FATAL: No chef config file defined. Are you running chef-solo? If so you will need to define a path for the ohai_plugin as the path cannot be determined
Steps to Reproduce:
Create a recipe that uses the windows_package feature (or use a cookbook that uses it such as the IIS cookbook). Run this cookbook using Chef-Zero.
Expected Result:
The relevant Windows features should be installed.
The text was updated successfully, but these errors were encountered: