Skip to content

Instantly share code, notes, and snippets.

@haidangwa
Created June 27, 2016 20:33
Show Gist options
  • Save haidangwa/ce81d027cc6d81b3ec23812f8c5cc08a to your computer and use it in GitHub Desktop.
Save haidangwa/ce81d027cc6d81b3ec23812f8c5cc08a to your computer and use it in GitHub Desktop.
chef_ingredient fails to install opscode-push-jobs-server-1.1.6-1
Recipe: twdc_chef::push-jobs-server
* chef_ingredient[push-jobs-server] action install
* ruby_block[stop chef run] action nothing (skipped due to action :nothing)
* yum_package[push-jobs-server] action install
================================================================================
Error executing action `install` on resource 'yum_package[push-jobs-server]'
================================================================================
Chef::Exceptions::Package
-------------------------
Version 1.1.6-1.el6 of opscode-push-jobs-server not found. Did you specify both version and release? (version-release, e.g. 1.84-10.fc6)
Cookbook Trace:
---------------
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:41:in `run_action'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:41:in `run_action'
Resource Declaration:
---------------------
# In /tmp/kitchen/cache/cookbooks/chef-ingredient/libraries/default_handler.rb
70: package new_resource.product_name do # ~FC009
71: action action_name
72: package_name ingredient_package_name
73: options package_options_with_force
74: timeout new_resource.timeout
75:
76: # If the latest version is specified, we should not give any version
77: # to the package resource.
78: unless version_latest?(new_resource.version)
79: version version_for_package_resource
80: end
81:
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cache/cookbooks/chef-ingredient/libraries/default_handler.rb:70:in `configure_from_repo'
yum_package("push-jobs-server") do
package_name "opscode-push-jobs-server"
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :package
cookbook_name "twdc_chef"
flush_cache {:before=>false, :after=>false}
version "1.1.6-1.el6"
end
Platform:
---------
x86_64-linux
================================================================================
Error executing action `install` on resource 'chef_ingredient[push-jobs-server]'
================================================================================
Chef::Exceptions::Package
-------------------------
yum_package[push-jobs-server] (/tmp/kitchen/cache/cookbooks/chef-ingredient/libraries/default_handler.rb line 70) had an error: Chef::Exceptions::Package: Version 1.1.6-1.el6 of opscode-push-jobs-server not found. Did you specify both version and release? (version-release, e.g. 1.84-10.fc6)
Cookbook Trace:
---------------
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:41:in `run_action'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:41:in `run_action'
Resource Declaration:
---------------------
# In /tmp/kitchen/cache/cookbooks/twdc_chef/recipes/push-jobs-server.rb
24: chef_ingredient 'push-jobs-server' do
25: #if node.run_state['package_source'].nil?
26: version node['twdc_chef']['push-jobs-server']['package_version']
27: #else
28: # package_source node.run_state['source_path']
29: #end
30: notifies :reconfigure, "chef_ingredient[#{node.run_state['ha_ingredient']}]", :delayed
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cache/cookbooks/twdc_chef/recipes/push-jobs-server.rb:24:in `from_file'
chef_ingredient("push-jobs-server") do
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :chef_ingredient
cookbook_name "twdc_chef"
recipe_name "push-jobs-server"
version "1.1.6"
product_name "push-jobs-server"
end
Platform:
---------
x86_64-linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment