I upgraded chef-12.8.1-1.el6.x86_64 to chef-12.10.24-1.el6.x86_64 on our RHEL6 machines and after upgrade chef-client run started to fail on all the machines with the following error message,
Recipe: chef-client::bluepill_service
* template[/etc/bluepill/chef-client.pill] action create (up to date)
* bluepill_service[chef-client] action enable (up to date)
* bluepill_service[chef-client] action load
================================================================================
Error executing action `load` on resource 'bluepill_service[chef-client]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /opt/chef/embedded/bin/bluepill load /etc/bluepill/chef-client.pill ----
STDOUT:
STDERR: /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb:308:in `to_specs': Could not find 'activesupport' (< 5, >= 3.2) among 128 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/root/.gem/ruby/2.1.0:/opt/chef/embedded/lib/ruby/gems/2.1.0', execute `gem env` for more information
from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:1439:in `block in activate_dependencies'
from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:1428:in `each'
from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:1428:in `activate_dependencies'
from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:1410:in `activate'
from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems.rb:200:in `rescue in try_activate'
from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems.rb:193:in `try_activate'
from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:126:in `rescue in require'
from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:40:in `require'
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/bluepill-0.1.1/bin/bluepill:3:in `<top (required)>'
from /opt/chef/embedded/bin/bluepill:22:in `load'
from /opt/chef/embedded/bin/bluepill:22:in `<main>'
---- End output of /opt/chef/embedded/bin/bluepill load /etc/bluepill/chef-client.pill ----
Ran /opt/chef/embedded/bin/bluepill load /etc/bluepill/chef-client.pill returned 1
Cookbook Trace:
---------------
/var/cache/chef/cookbooks/bluepill/providers/service.rb:66:in `block (2 levels) in class_from_file'
/var/cache/chef/cookbooks/bluepill/providers/service.rb:65:in `block in class_from_file'
/var/cache/chef/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:41:in `run_action'
Resource Declaration:
---------------------
# In /var/cache/chef/cookbooks/chef-client/recipes/bluepill_service.rb
29: bluepill_service 'chef-client' do
30: action [:enable, :load, :start]
31: end
Compiled Resource:
------------------
# Declared in /var/cache/chef/cookbooks/chef-client/recipes/bluepill_service.rb:29:in `from_file'
bluepill_service("chef-client") do
action [:enable, :load, :start]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :bluepill_service
cookbook_name "chef-client"
recipe_name "bluepill_service"
service_name "chef-client"
end
Platform:
---------
x86_64-linux
So I rolled back to chef-12.8.1-1.el6.x86_64 and chef-client is running fine again without any errors.
chef-12.9.41-1.el6.x86_64 works fine as well.
Is this a known bug in chef-12.10.24-1.el6.x86_64?