chef-boneyard / push-jobs-cookbook

Development repository for Chef Cookbook push-jobs
https://supermarket.chef.io/cookbooks/push-jobs
Apache License 2.0
21 stars 43 forks source link

Missing push-jobs-client run template #68

Closed mcquin closed 8 years ago

mcquin commented 8 years ago

It looks like the runit_service resource references a template that is not provided by the cookbook.

push-jobs version: 2.6.4

Error executing action `enable` on resource 'runit_service[push-jobs-client]'
================================================================================

 Chef::Exceptions::FileNotFound
------------------------------
template[/etc/sv/push-jobs-client/run] (/var/chef/cache/cookbooks/runit/libraries/provider_runit_service.rb line 82) had an error: Chef::Exceptions::FileNotFound: Cookbook 'push-jobs' (2.6.4) does not contain a file at any of these locations:
  templates/ubuntu-14.04/sv-push-jobs-client-run.erb
  templates/ubuntu/sv-push-jobs-client-run.erb
  templates/default/sv-push-jobs-client-run.erb
  templates/sv-push-jobs-client-run.erb

This cookbook _does_ contain: ['/var/chef/cache/cookbooks/push-jobs/templates/default/sv-opscode-push-jobs-client-run.erb','/var/chef/cache/cookbooks/push-jobs/templates/default/push-jobs-client.rb.erb']

Cookbook Trace:
---------------
/var/chef/cache/cookbooks/runit/libraries/provider_runit_service.rb:280:in `block in <class:RunitService>'

Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/push-jobs/recipes/service_runit.rb

28: runit_service 'push-jobs-client' do
29:   options('logging_level' => node['push_jobs']['logging_level'],
30:           'node' => { 'push_jobs' => node['push_jobs'] },
31:           'config' => PushJobsHelper.config_path)
32:   default_logger true
33:   subscribes :restart, "template[#{PushJobsHelper.config_path}]"
34:   action [:enable, :start]
35:   retries 15
36: end
mcquin commented 8 years ago

It appears Berks was vendoring a "2.6.4" version of this cookbook with the following in recipes/service_runit.rb:

runit_service 'push-jobs-client' do
  ...
end

when the content on GitHub and Supermarket is:

runit_service 'opscode-push-jobs-client' do
  ...
end

Interestingly, removing the vendored push-jobs cookbook and running berks vendor pulled the same (incorrect) recipe. Blowing away all vendored cookbooks and running berks vendor resolved the problem.