Last active
August 29, 2015 14:22
-
-
Save Sauraus/1e650e570422545ee85f to your computer and use it in GitHub Desktop.
undefined method `action_create' for #<Chef::Provider::Package::Yum:0x000000014591f0>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2015-06-02T23:26:42+00:00] DEBUG: yum_package[chef] checking rpm status | |
warning: /tmp/kitchen/cache/omnibus_updater/chef-12.3.0-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 83ef826a: NOKEY | |
chef 12.3.0-1.el6 | |
[2015-06-02T23:26:42+00:00] DEBUG: yum_package[chef] installed version: ["12.2.1-1.el6"] candidate version: 12.3.0-1.el6 | |
================================================================================ | |
Error executing action `create` on resource 'yum_package[chef]' | |
================================================================================ | |
NoMethodError | |
------------- | |
undefined method `action_create' for #<Chef::Provider::Package::Yum:0x000000022fcce8> | |
Resource Declaration: | |
--------------------- | |
# In /tmp/kitchen/cache/cookbooks/omnibus_updater/recipes/installer.rb | |
61: package 'chef' do | |
62: action :upgrade | |
63: package_name 'chef' | |
64: version node['omnibus_updater']['version'] | |
65: source File.join(node[:omnibus_updater][:cache_dir], File.basename(remote_path)) | |
66: subscribes :create, resources(:remote_file => "omnibus_remote[#{File.basename(remote_path)}]"), :immediately | |
67: notifies :restart, resources(:service => 'chef-client'), :immediately if node[:omnibus_updater][:restart_chef_service] | |
68: notifies :create, resources(:ruby_block => 'omnibus chef killer'), :immediately | |
69: only_if { node['chef_packages']['chef']['version'] != node['omnibus_updater']['version'] } | |
70: end | |
71: end | |
Compiled Resource: | |
------------------ | |
# Declared in /tmp/kitchen/cache/cookbooks/omnibus_updater/recipes/installer.rb:61:in `from_file' | |
yum_package("chef") do | |
action [:upgrade] | |
retries 0 | |
retry_delay 2 | |
default_guard_interpreter :default | |
package_name "chef" | |
source "/tmp/kitchen/cache/omnibus_updater/chef-12.3.0-1.el6.x86_64.rpm" | |
version "12.3.0-1.el6" | |
timeout 900 | |
flush_cache {:before=>false, :after=>false} | |
declared_type :package | |
cookbook_name "omnibus_updater" | |
recipe_name "installer" | |
only_if { #code block } | |
end | |
[2015-06-02T23:27:24+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process terminated by signal 9 (KILL) | |
D Cleaning up local sandbox in /var/folders/l9/wsv03myj7fg3_s54yjd3n0_cd7l7c0/T/default-centos-65-chef-1221-sandbox-20150602-95250-hk2qt | |
>>>>>> Converge failed on instance <default-centos-65-chef-1221>. | |
>>>>>> Please see .kitchen/logs/default-centos-65-chef-1221.log for more details | |
>>>>>> ------Exception------- | |
>>>>>> Class: Kitchen::ActionFailed | |
>>>>>> Message: SSH exited (1) for command: [sh -c ' | |
sudo -E /opt/chef/bin/chef-client --local-mode --config /tmp/kitchen/client.rb --log_level debug --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json --chef-zero-port 8889 | |
'] | |
>>>>>> ---------------------- | |
D Converge failed on instance <default-centos-65-chef-1221>. | |
D ------Exception------- | |
D Class: Kitchen::InstanceFailure | |
D Message: Converge failed on instance <default-centos-65-chef-1221>. Please see .kitchen/logs/default-centos-65-chef-1221.log for more details | |
D ---Nested Exception--- | |
D Class: Kitchen::ActionFailed | |
D Message: SSH exited (1) for command: [sh -c ' | |
sudo -E /opt/chef/bin/chef-client --local-mode --config /tmp/kitchen/client.rb --log_level debug --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json --chef-zero-port 8889 | |
'] | |
D ------Backtrace------- | |
D /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/provisioner/base.rb:74:in `rescue in call' | |
D /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/provisioner/base.rb:77:in `call' | |
D /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:366:in `block in converge_action' | |
D /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:488:in `call' | |
D /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:488:in `synchronize_or_call' | |
D /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:453:in `block in action' | |
D /opt/chefdk/embedded/lib/ruby/2.1.0/benchmark.rb:279:in `measure' | |
D /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:452:in `action' | |
D /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:362:in `converge_action' | |
D /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:341:in `block in transition_to' | |
D /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:340:in `each' | |
D /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:340:in `transition_to' | |
D /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:138:in `converge' | |
D /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/command.rb:176:in `public_send' | |
D /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/command.rb:176:in `block (2 levels) in run_action' | |
D ---------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package 'chef' do | |
action :upgrade | |
package_name 'chef' | |
version node['omnibus_updater']['version'] | |
source File.join(node[:omnibus_updater][:cache_dir], File.basename(remote_path)) | |
subscribes :create, resources(:remote_file => "omnibus_remote[#{File.basename(remote_path)}]"), :immediately | |
notifies :restart, resources(:service => 'chef-client'), :immediately if node[:omnibus_updater][:restart_chef_service] | |
notifies :create, resources(:ruby_block => 'omnibus chef killer'), :immediately | |
only_if { node['chef_packages']['chef']['version'] != node['omnibus_updater']['version'] } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment