treasure-data / chef-td-agent

Chef Cookbook for td-agent (Treasure Agent or Fluentd)
https://supermarket.chef.io/cookbooks/td-agent
Apache License 2.0
127 stars 120 forks source link

Service resource not found #61

Open dieend opened 9 years ago

dieend commented 9 years ago
Chef::Exceptions::ResourceNotFound
----------------------------------
resource template[/etc/td-agent/conf.d/application.conf] is configured to notify resource service[td-agent] with action reload, but service[td-agent] cannot be found in the resource collection. template[/etc/td-agent/conf.d/application.conf] is defined in /some/path/to/cookbooks/td-agent/providers/source.rb:27:in `block in class_from_file'

I am using the td_agent_source in deploy's deployment hooks. I'm sure this was working but with new version it's now doesn't works.

yyuu commented 9 years ago

What version of Chef are you using?

dieend commented 9 years ago
$> chef-solo --version
Chef: 11.10.4
yyuu commented 9 years ago

Umm. Currently all tests are running on both Chef 11.18.12 and 12.x, and all passed. I've not yet reproduced the error on my VMs for now.

https://github.com/treasure-data/chef-td-agent/blob/200dc9ddc9b91b063fee3fef53f67b723945f90c/.kitchen.yml#L30-L36

dieend commented 9 years ago

Ah... I am using chef with amazon opsworks, and they uses chef 11.10.4. I guess I'll just locked chef-td-agent for version 2.1.0 then. Thanks!

yyuu commented 9 years ago

Actually I didn't test with OpsWorks and there might be something there. As far as I could test with our installations of 11.x, it just worked fine without such error. If you find something wrong with it, please let me know then I'll try to fix it.