[chef] Re: Cannot find a resource for converge on ubuntu version 11.04


Chronological Thread 
  • From: Marcelo de Moraes Serpa < >
  • To:
  • Subject: [chef] Re: Cannot find a resource for converge on ubuntu version 11.04
  • Date: Wed, 23 Jan 2013 13:03:07 -0600

Hi,

I can confirm the issue is related to the newer Chef versions. I used the --omnibus-version flag for knife-solo and used Chef 10.14.4 on my node, and now it worked flawlessly. I'll just keep using Chef 10.14.4 for now.

If anyone else has more info about this issue, though, feel free to reply to this thread.

Thanks,

- Marcelo.


On Wed, Jan 23, 2013 at 10:35 AM, Marcelo de Moraes Serpa < " target="_blank"> > wrote:
Forgot to add the versions: I'm using chef-solo (chef (10.18.2)) and knife-solo (0.1.0).


On Wed, Jan 23, 2013 at 10:09 AM, Marcelo de Moraes Serpa < " target="_blank"> > wrote:
Hi list,

I started getting this error on a cookbook of mine lately. The strange thing is that I did not change anything, but the last time I used the cookbook was ~2 months ago, so I imagine a Chef update caused it. Here's the backtrace:

NameError: deploy_revision[myapp] (/tmp/chef-solo/cookbooks/application/providers/default.rb line 130) had an error: NameError: Cannot find a resource for converge on ubuntu version 11.04
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/resource_platform_map.rb:126:in `get'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/resource.rb:841:in `resource_for_platform'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/resource.rb:858:in `resource_for_node'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/mixin/recipe_definition_dsl_core.rb:58:in `method_missing'
/tmp/chef-solo/cookbooks/application/libraries/default.rb:161:in `callback'
/tmp/chef-solo/cookbooks/application/providers/default.rb:190:in `run_actions_with_context'
/tmp/chef-solo/cookbooks/application/providers/default.rb:172:in `block (2 levels) in run_deploy'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/provider.rb:170:in `instance_eval'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/provider.rb:170:in `block in recipe_eval'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/mixin/why_run.rb:52:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/mixin/why_run.rb:52:in `add_action'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/provider.rb:152:in `converge_by'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/provider.rb:166:in `recipe_eval'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/provider/deploy.rb:182:in `callback'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/provider/deploy.rb:160:in `deploy'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/provider/deploy.rb:108:in `block in action_deploy'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/provider/deploy.rb:438:in `with_rollback_on_error'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/provider/deploy.rb:107:in `action_deploy'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/provider.rb:115:in `run_action'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/resource.rb:597:in `run_action'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/runner.rb:49:in `run_action'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/runner.rb:81:in `block (2 levels) in converge'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/runner.rb:81:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/runner.rb:81:in `block in converge'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/resource_collection.rb:94:in `block in execute_each_resource'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/resource_collection.rb:92:in `execute_each_resource'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/runner.rb:80:in `converge'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/client.rb:378:in `converge'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/client.rb:420:in `do_run'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/client.rb:176:in `run'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/application.rb:140:in `run_chef_client'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/application/solo.rb:224:in `block in run_application'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/application/solo.rb:216:in `loop'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/application/solo.rb:216:in `run_application'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/lib/chef/application.rb:72:in `run'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-10.18.2/bin/chef-solo:25:in `<top (required)>'
/usr/local/bin/chef-solo:23:in `load'
/usr/local/bin/chef-solo:23:in `<main>'

I couldn't find anything by googling around. Does anyone know what's wrong?

Thanks in advance,

- Marcelo.





Archive powered by MHonArc 2.6.16.

§