chef-boneyard / chef-vault

chef-vault cookbook
https://supermarket.chef.io/cookbooks/chef-vault
Apache License 2.0
60 stars 53 forks source link

Incorrect chef-vault gem is selected for Chef 12 #74

Closed Sean89us closed 4 years ago

Sean89us commented 4 years ago

Cookbook version

3.1.1

Chef-client version

12.19.36 12.22.5

Platform Details

Oracle Enterprise Linux (RHEL) 6.10 Oracle Enterprise Linux (RHEL) 7

Scenario:

Installing cookbook gems selects the brand-new 4.0.1 chef-vault gem which is incompatible with Chef 12's embedded Ruby 2.3. This breaks the entire chef-client run.

Steps to Reproduce:

Include this cookbook in the run-list of a node running Chef 12, then chef-client

Expected Result:

Chef-client completes

Actual Result:

Chef-client breaks at 'installing cookbook gems'

$ sudo cat /var/chef/cache/chef-stacktrace.out
Generated at 2019-12-30 13:54:37 -0600
Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '5'
---- Begin output of bundle install ----
STDOUT: Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using aws-eventstream 1.0.3
Using aws-partitions 1.228.0
Using aws-sigv4 1.1.0
Using jmespath 1.4.0
Using aws-sdk-core 3.71.0
Using aws-sdk-cloudformation 1.21.0
Using aws-sdk-cloudwatch 1.22.0
Using aws-sdk-dynamodb 1.28.0
Using aws-sdk-ec2 1.115.0
Using aws-sdk-elasticloadbalancing 1.14.0
Using aws-sdk-iam 1.22.0
Using aws-sdk-kinesis 1.15.0
Using aws-sdk-kms 1.20.0
Using aws-sdk-route53 1.24.0
Using aws-sdk-s3 1.38.0
Using aws-sdk-ssm 1.46.0
Using bundler 1.16.6
Fetching chef-vault 4.0.1
Installing chef-vault 4.0.1
Gem::RuntimeRequirementNotMetError: chef-vault requires Ruby version >= 2.4. The
current ruby version is 2.3.0.
An error occurred while installing chef-vault (4.0.1), and Bundler cannot
continue.
Make sure that `gem install chef-vault -v '4.0.1'` succeeds before bundling.
In Gemfile:
  chef-vault
welcomebot commented 4 years ago

Hey There It looks like this is the first issue you've filed against the chef-cookbooks project. I'm here to offer you a bit of extra help to make sure we can quickly get back to you. Make sure you've filled out all the fields in our issue template. Make sure you've provided us with the version of chef-client you're running, your operating system and the version of the cookbook. If you're not using the most up to date version of the cookbook then please make sure to update first. Lots of things change between versions even if you're issue isn't listed in the changelog. Finally please give us a detailed description of the issue you're having. The more we know about what you're trying to do, what actually happens, and how you can reproduce the problem, the better.

If you're looking for more immediate troubleshooting help make sure to check out #general on the Chef Community Slack. There's plenty of folks there willing to lend a helping hand. Thanks for the first issue. We hope we can get back to you soon with a solution.

tas50 commented 4 years ago

3.1.2 resolves the Chef 12 incompatibilities.