chef-cookbooks / supermarket-omnibus-cookbook

A cookbook for installing supermarket from Omnibus (deb, rpm) packages
Apache License 2.0
17 stars 29 forks source link

Supermarket fails to install on Amazon Linux 2017.09 #59

Closed mbainter closed 6 years ago

mbainter commented 6 years ago

Cookbook version

0.2.1

Chef-client version

13.7.6

Platform Details

Amazon Linux 2017.09

Scenario:

Install supermarket with a wrapper cookbook

Steps to Reproduce:

I have it setup with a wrapper cookbook to specify the standard settings as documented. These can be provided if needed, but it appears to be more like this is an Amazon Linux incompatibility. Looking in the issue history it appears there were previously some issues with 2017.03 which were subsequently addressed, so I assume this is intended to be a supported platform (though it isn't listed explicitly in the README as such).

Expected Result:

Supermarket installs and is configured

Actual Result:

Chef-client run fails with:

Chef::Exceptions::ProviderNotFound: Cannot find a provider for chef_server_ingredient[supermarket] on amazon version 2017.09
chef-client output

``` * chef_server_ingredient[supermarket] action install ================================================================================ Error executing action `install` on resource 'chef_server_ingredient[supermarket]' ================================================================================ Chef::Exceptions::ProviderNotFound ---------------------------------- Cannot find a provider for chef_server_ingredient[supermarket] on amazon version 2017.09 Resource Declaration: --------------------- # In /var/chef/cache/cookbooks/supermarket-omnibus-cookbook/recipes/default.rb 32: chef_server_ingredient 'supermarket' do 33: ctl_command 'supermarket-ctl' 34: notifies :reconfigure, 'chef_server_ingredient[supermarket]' 35: end Compiled Resource: ------------------ # Declared in /var/chef/cache/cookbooks/supermarket-omnibus-cookbook/recipes/default.rb:32:in `from_file' chef_server_ingredient("supermarket") do action [:install] default_guard_interpreter :default declared_type :chef_server_ingredient cookbook_name "supermarket-omnibus-cookbook" recipe_name "default" ctl_command "supermarket-ctl" package_name "supermarket" end System Info: ------------ chef_version=13.7.16 platform=amazon platform_version=2017.09 ruby=ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux] program_name=chef-client worker: ppid=9871;start=01:41:51; executable=/opt/chef/bin/chef-client * chef_server_ingredient[supermarket] action reconfigure ================================================================================ Error executing action `reconfigure` on resource 'chef_server_ingredient[supermarket]' ================================================================================ Chef::Exceptions::ProviderNotFound ---------------------------------- Cannot find a provider for chef_server_ingredient[supermarket] on amazon version 2017.09 Resource Declaration: --------------------- # In /var/chef/cache/cookbooks/supermarket-omnibus-cookbook/recipes/default.rb 32: chef_server_ingredient 'supermarket' do 33: ctl_command 'supermarket-ctl' 34: notifies :reconfigure, 'chef_server_ingredient[supermarket]' 35: end Compiled Resource: ------------------ # Declared in /var/chef/cache/cookbooks/supermarket-omnibus-cookbook/recipes/default.rb:32:in `from_file' chef_server_ingredient("supermarket") do action [:install] default_guard_interpreter :default declared_type :chef_server_ingredient cookbook_name "supermarket-omnibus-cookbook" recipe_name "default" ctl_command "supermarket-ctl" package_name "supermarket" end System Info: ------------ chef_version=13.7.16 platform=amazon platform_version=2017.09 ruby=ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux] program_name=chef-client worker: ppid=9871;start=01:41:51; executable=/opt/chef/bin/chef-client ```

Stack trace

``` Generated at 2018-02-09 01:24:18 +0000 Chef::Exceptions::ProviderNotFound: chef_server_ingredient[supermarket] (supermarket-omnibus-cookbook::default line 32) had an error: Chef::Exceptions::ProviderNotFound: Cannot find a provider for chef_server_ingredient[supermarket] on amazon version 2017.09 /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/provider_resolver.rb:63:in `resolve' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/resource.rb:1402:in `provider_for_action' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/resource.rb:591:in `run_action' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/runner.rb:70:in `run_action' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/runner.rb:98:in `block (2 levels) in converge' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/runner.rb:98:in `each' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/runner.rb:98:in `block in converge' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/resource_collection/stepable_iterator.rb:85:in `step' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/runner.rb:97:in `converge' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/client.rb:718:in `block in converge' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/client.rb:713:in `catch' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/client.rb:713:in `converge' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/client.rb:752:in `converge_and_save' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/client.rb:286:in `run' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application.rb:292:in `block in fork_chef_client' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application.rb:280:in `fork' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application.rb:280:in `fork_chef_client' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application.rb:245:in `block in run_chef_client' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/local_mode.rb:44:in `with_server_connectivity' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application.rb:233:in `run_chef_client' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application/client.rb:469:in `sleep_then_run_chef_client' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application/client.rb:458:in `block in interval_run_chef_client' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application/client.rb:457:in `loop' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application/client.rb:457:in `interval_run_chef_client' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application/client.rb:441:in `run_application' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application.rb:59:in `run' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/bin/chef-client:26:in `' /usr/bin/chef-client:59:in `load' /usr/bin/chef-client:59:in `

' >>>> Caused by Chef::Exceptions::ProviderNotFound: Cannot find a provider for chef_server_ingredient[supermarket] on amazon version 2017.09 /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/provider_resolver.rb:63:in `resolve' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/resource.rb:1402:in `provider_for_action' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/resource.rb:591:in `run_action' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/runner.rb:70:in `run_action' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/runner.rb:98:in `block (2 levels) in converge' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/runner.rb:98:in `each' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/runner.rb:98:in `block in converge' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/resource_collection/stepable_iterator.rb:85:in `step' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/runner.rb:97:in `converge' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/client.rb:718:in `block in converge' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/client.rb:713:in `catch' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/client.rb:713:in `converge' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/client.rb:752:in `converge_and_save' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/client.rb:286:in `run' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application.rb:292:in `block in fork_chef_client' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application.rb:280:in `fork' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application.rb:280:in `fork_chef_client' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application.rb:245:in `block in run_chef_client' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/local_mode.rb:44:in `with_server_connectivity' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application.rb:233:in `run_chef_client' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application/client.rb:469:in `sleep_then_run_chef_client' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application/client.rb:458:in `block in interval_run_chef_client' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application/client.rb:457:in `loop' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application/client.rb:457:in `interval_run_chef_client' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application/client.rb:441:in `run_application' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/lib/chef/application.rb:59:in `run' /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.7.16/bin/chef-client:26:in `' /usr/bin/chef-client:59:in `load' /usr/bin/chef-client:59:in `
' ```

mbainter commented 6 years ago

Never mind. Somewhere along the way I either typed something wrong, or read some old information and accidentally pinned to an old version of the supermarket cookbook.