firewall: Intermittent ProviderNotFound Exception
I have the firewall cookbook in my base cookbook repo and a resource that configures the firewall for my centos nodes. I’ve been getting these at random points, usually when the base cookbook is specified in the run list before the node’s recipes. If I reverse the order and have the base last in the order in the run list, I don’t get this Exception. I want to be able to specify the base cookbook first in the run list for obvious reasons. What’s going on with this?
================================================================================
Error executing action `enable` on resource 'firewall[centos-firewall]'
================================================================================
Chef::Exceptions::ProviderNotFound
----------------------------------
Cannot find a provider for firewall[centos-firewall] on centos version 7.0.1406
Resource Declaration:
---------------------
# In /tmp/kitchen/cache/cookbooks/discogs-base/recipes/default.rb
91: firewall 'centos-firewall' do
92: action :enable
93: end
94:
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cache/cookbooks/discogs-base/recipes/default.rb:91:in `from_file'
firewall("centos-firewall") do
action [:enable]
retries 0
retry_delay 2
default_guard_interpreter :default
subresources [firewall_rule[consul], firewall_rule[consul400], firewall_rule[consul500], firewall_rule[consul600], firewall_rule[nrpe], firewall_rule[ssh], firewall_rule[mysql], firewall_rule[app], firewall_rule[http]]
declared_type :firewall
cookbook_name "discogs-base"
recipe_name "default"
end
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 19 (11 by maintainers)
Hi @rayterrill – I’m not sure what your error has to do with this cookbook… since
dsc_resourceis a core resource in Chef, you could probably open an issue on that project: https://github.com/chef/chef/issues/new