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

ChefZero: Upgrading cookbook from 2.0.1 -> 3.0.1 gives Ohai errors #451

Closed
adhodgson1 opened this issue Mar 21, 2017 · 4 comments
Closed
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.

Comments

@adhodgson1
Copy link

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.

@adhodgson1
Copy link
Author

I think the issue is related to this:

chef-boneyard/ohai#55

@smurawski smurawski added Status: Blocked Type: Bug Doesn't work as expected. labels Mar 31, 2017
@iennae
Copy link
Contributor

iennae commented Mar 31, 2017

Thanks for reporting. This is definitely an issue, and it is related to the Issue 55 in the Ohai cookbook.

@smurawski
Copy link
Contributor

This is blocked on chef-boneyard/ohai#55 getting resolved

@tas50
Copy link
Contributor

tas50 commented Mar 2, 2018

This is fixed by #530

@tas50 tas50 closed this as completed Mar 2, 2018
@tas50 tas50 added Status: Incomplete A pull request that is not ready to be merged as noted by the author. and removed Status: Blocked labels Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Development

No branches or pull requests

4 participants