You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've been using the community custom Ohai plugin for ec2 tags for many years. It's been functioning well up until our recent Chef 17 upgrade. Once a server is upgraded to the Chef 17 client the ec2/tags attributes will be gone. Rolling back to Chef 16 makes the attributes available again.
Describe the problem
Custom Ohai plugins located in the /ohai folder should add their values to the available node attributes.
Software Version
afaik any OS (Amazon Linux 2 tested)
chef-client 17.9.52
Ohai: 17.9.0
Replication Case
Using Chef-Client 16 run a cookbook that uses the ec2-tags community ohai cookbook, all EC2 tags will be added to the node attributes. Upgrade to Chef-Client 17 and the Ohai values will be gone. Moving the plugin to the /ohai folder of a cookbook for custom Ohai plugin inclusion will not resolve the issue.
Stacktrace
No log "errors" are presented to the end user, unable to determine where the Ohai logs are written to from the plugin if there are any
Possible Solution
I've re-written the custom plugin to conform to the current Ohai Custom Plugin model by following the documentation to no avail. I also re-wrote the plugin to be a library function to add the node attributes via recipe call, that functions as expected but will run into aws-sdk gem version compatibility issues.
The text was updated successfully, but these errors were encountered:
We've been using the community custom Ohai plugin for ec2 tags for many years. It's been functioning well up until our recent Chef 17 upgrade. Once a server is upgraded to the Chef 17 client the ec2/tags attributes will be gone. Rolling back to Chef 16 makes the attributes available again.
Describe the problem
Custom Ohai plugins located in the /ohai folder should add their values to the available node attributes.
Software Version
afaik any OS (Amazon Linux 2 tested)
chef-client 17.9.52
Ohai: 17.9.0
Replication Case
Using Chef-Client 16 run a cookbook that uses the ec2-tags community ohai cookbook, all EC2 tags will be added to the node attributes. Upgrade to Chef-Client 17 and the Ohai values will be gone. Moving the plugin to the /ohai folder of a cookbook for custom Ohai plugin inclusion will not resolve the issue.
Stacktrace
No log "errors" are presented to the end user, unable to determine where the Ohai logs are written to from the plugin if there are any
Possible Solution
I've re-written the custom plugin to conform to the current Ohai Custom Plugin model by following the documentation to no avail. I also re-wrote the plugin to be a library function to add the node attributes via recipe call, that functions as expected but will run into aws-sdk gem version compatibility issues.
The text was updated successfully, but these errors were encountered: