riptano/chef — Issue #5: Missing 'cloud' attribute causes failure
Author: araddon
Created: 2011-10-12 17:27:56+00:00
State: open

I assume this requires cloud attribute somewhere so i was getting failures on local installs

10.0.0.1 Reading package lists...
10.0.0.1
10.0.0.1 [Wed, 12 Oct 2011 10:16:30 -0700] INFO: execute[apt-get update] ran successfully
10.0.0.1 [Wed, 12 Oct 2011 10:16:30 -0700] ERROR: Running exception handlers
10.0.0.1 [Wed, 12 Oct 2011 10:16:30 -0700] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
10.0.0.1 [Wed, 12 Oct 2011 10:16:30 -0700] ERROR: Exception handlers complete
10.0.0.1 [Wed, 12 Oct 2011 10:16:30 -0700] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
10.0.0.1 [Wed, 12 Oct 2011 10:16:30 -0700] FATAL: NoMethodError: undefined method `[]' for nil:NilClass

and doing a dump of: /var/chef/cache# cat chef-stacktrace.out

NoMethodError: undefined method `[]' for nil:NilClass
/var/chef/cache/cookbooks/cassandra/recipes/additional_settings.rb:29:in `from_file'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/cookbook_version.rb:578:in `load_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/language_include_recipe.rb:40:in `include_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe'
/var/chef/cache/cookbooks/brisk/recipes/default.rb:53:in `from_file'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/cookbook_version.rb:578:in `load_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/language_include_recipe.rb:40:in `include_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/run_context.rb:72:in `load'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/run_context.rb:69:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/run_context.rb:69:in `load'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/client.rb:195:in `setup_run_context'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/client.rb:159:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/client.rb:239:in `run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/client.rb:229:in `loop'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/client.rb:229:in `run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application.rb:67:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/chef-client:26
/usr/bin/chef-client:19:in `load'