[chef] Re: Re: include_recipe failing


Chronological Thread 
  • From: Matt Matson < >
  • To:
  • Subject: [chef] Re: Re: include_recipe failing
  • Date: Tue, 25 Aug 2009 16:55:27 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=IVo6ZsFjVmhwWWwQ5ADlfj4W4ZcYBNrE7KBEd7ewCuT349wR8krAsl/bvwH1ag5Jb/ H/a/IBvnRofrgqEwq8PsCSnUogS8SFHtMZQmF/bPqKRPhPxoFWtACd8+pWu1G5m5Bor9 XdMM8odH7LyvTpC3LDChFrj7FzN3qFntR9GvY=

A-ha!  I had to manually add "depends 'java'" to the hadoop cookbook metadata.rb and run 'rake install'.  Is manually updating metadata required for all cross-cookbook include_recipe's?

That did the trick.  Thanks Adam!

On Tue, Aug 25, 2009 at 4:33 PM, Adam Jacob < "> > wrote:
Does the hadoop cookbook's metadata say that it requires java?

Adam

On Tue, Aug 25, 2009 at 4:30 PM, < "> > wrote:
> Hi.  I'm trying to include a java recipe inside of a hadoop recipe.  I've
> re-created the java cookbook to make sure the metadata, etc. is correct.  I get
> the following error & log output.
>
> chef-client -l debug
> /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/cookbook_loader.rb:111:in `[]':
> Cannot find a cookbook named java; did you forget to add metadata to a
> cookbook? (http://wiki.opscode.com/display/chef/Metadata) (ArgumentError)
>        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/recipe.rb:78:in
> `include_recipe'
>        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/recipe.rb:64:in
> `each'
>        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/recipe.rb:64:in
> `include_recipe'
>        from /usr/local/chef/cache/cookbooks/hadoop/recipes/default.rb:20:in
> `from_file'
>        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/cookbook.rb:139:in
> `load_recipe'
>        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/compile.rb:124:in
> `load_recipes'
>        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/compile.rb:110:in
> `each'
>        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/compile.rb:110:in
> `load_recipes'
>        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/client.rb:378:in
> `converge'
>        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/client.rb:82:in
> `run'
>        from
> /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/application/client.rb:186:in
> `run_application'
>        from
> /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/application/client.rb:178:in
> `loop'
>        from
> /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/application/client.rb:178:in
> `run_application'
>        from
> /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/application.rb:57:in `run'
>        from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/bin/chef-client:26
>        from /usr/bin/chef-client:19:in `load'
>        from /usr/bin/chef-client:19
>
>
> tail /var/log/chef/client.log
> [Tue, 25 Aug 2009 22:44:21 +0000] DEBUG: Loading Recipe hadoop
> [Tue, 25 Aug 2009 22:44:21 +0000] DEBUG: Found recipe default in cookbook
> hadoop
> [Tue, 25 Aug 2009 22:44:21 +0000] DEBUG: Loading Recipe java via include_recipe
>



--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: ">



--
Matt Matson
">
415.254.2777

AIM: flagsout



Archive powered by MHonArc 2.6.16.

§