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
chef-client -v
Traceback (most recent call last):
3: from /usr/bin/chef-client:45:in `<main>'
2: from /opt/chef/embedded/lib/ruby/2.7.0/rubygems/core_ext/kernel_gem.rb:62:in `gem'
1: from /opt/chef/embedded/lib/ruby/2.7.0/rubygems/dependency.rb:323:in `to_spec'
/opt/chef/embedded/lib/ruby/2.7.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'faraday' (= 1.3.0) - did find: [faraday-1.0.1] (Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=/root/.gem/ruby/2.7.0:/opt/chef/embedded/lib/ruby/gems/2.7.0', execute `gem env` for more information
So now you need to put in your metadata.rb that you don't support Chef higher then 16.9.29, until you convince the diplomat gem to fix the faraday requirement or chose a different implementation then diplomat gem
The text was updated successfully, but these errors were encountered:
This is really an upstream issue. I'm happy to see that you've opened up an issue and PR to get it fixed there.
This does bring up the fact that we don't test this at all in the current kitchen tests. Do you think you could add a suite which tests it so we can verify this is fixed upstream when it's released?
It seems the kitchen tests are on chef 17.0.1
Not sure how you want to test a combination of OS and chef version, it can easily explode into a cartesian product
π£οΈ Foreword
Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.
π» Brief Description
Cookbooks fails to load
diplomat
gemπ₯ Cookbook version
4.3.1
π©βπ³ Chef-Infra Version
Chef Infra Client: 16.9.29
π© Platform details
Amazon Linux AMI release 2018.03
Steps To Reproduce
Steps to reproduce the behavior:
π Expected behavior
I expect the cookbook to run without errors
β Additional context
According to Chef release notes https://docs.chef.io/release_notes_client/#whats-new-in-16929 most notable change was
Going down the rabbit hole, and comparing embedded gem list between 16.9.20 and 16.9.29 the
faraday
gem was bumped to1.3.0
among others.However, according to diplomat gemspec: https://github.com/WeAreFarmGeek/diplomat/blob/master/diplomat.gemspec#L28
They require
faraday
lower then 1.1.0, to support older versions of ruby.So while this seems like a diplomat gem issue, it's really a cookbook issue that decided to use this gem.
According to chef stacktrace:
If we try to forcefully remove faraday 1.3.0:
Then we break chef entirely:
So now you need to put in your
metadata.rb
that you don't support Chef higher then16.9.29
, until you convince thediplomat
gem to fix the faraday requirement or chose a different implementation thendiplomat
gemThe text was updated successfully, but these errors were encountered: