`render_template': uninitialized constant Chef::Knife::Core::BootstrapContext (NameError) ?

(this may be an issue with some 3rd-party cookbooks I’m using, but I figure
I would ask here:)

Does the error below ring any bells for anyone? Any pointers on where I
should be poking to try and figure out why this is happening and fix it?

$ knife cluster bootstrap cm-cassandra datanode
mumble.compute-1.amazonaws.com -VV
DEBUG: Using configuration from /Users/dhaskin/.chef/knife.rb
Bootstrapping Chef on mumble.compute-1.amazonaws.com
DEBUG: Looking for bootstrap template in
/Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef
/gems/chef-0.10.0/lib/chef/knife/bootstrap
DEBUG: Found bootstrap template in
/Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef
/gems/chef-0.10.0/lib/chef/knife/bootstrap
/Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife/bootstrap.rb:131:in
render_template': uninitialized constant Chef::Knife::Core::BootstrapContext (NameError) from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife/bootstrap.rb:187:inssh_command’
from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife/bootstrap.rb:169:in
knife_ssh' from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife/bootstrap.rb:147:inrun’
from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife/cluster_bootstrap.rb:81:in
run' from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife.rb:391:inrun_with_pretty_exceptions’
from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife.rb:166:in
run' from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/application/knife.rb:128:inrun’
from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/bin/knife:25:in
<top (required)>' from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/bin/knife:19:inload’
from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/bin/knife:19:in `’

Thanks,

dwh

On Monday, May 9, 2011 at 12:23 PM, Denis Haskin wrote:
(this may be an issue with some 3rd-party cookbooks I'm using, but I figure I would ask here:)

Does the error below ring any bells for anyone? Any pointers on where I should be poking to try and figure out why this is happening and fix it?

$ knife cluster bootstrap cm-cassandra datanode mumble.compute-1.amazonaws.com -VV
DEBUG: Using configuration from /Users/dhaskin/.chef/knife.rb
Bootstrapping Chef on mumble.compute-1.amazonaws.com
DEBUG: Looking for bootstrap template in /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife/bootstrap
DEBUG: Found bootstrap template in /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife/bootstrap
/Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife/bootstrap.rb:131:in render_template': uninitialized constant Chef::Knife::Core::BootstrapContext (NameError) from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife/bootstrap.rb:187:in ssh_command'
from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife/bootstrap.rb:169:in knife_ssh' from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife/bootstrap.rb:147:in run'
from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife/cluster_bootstrap.rb:81:in run' from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife.rb:391:in run_with_pretty_exceptions'
from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife.rb:166:in run' from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/application/knife.rb:128:in run'
from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/bin/knife:25:in <top (required)>' from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/bin/knife:19:in load'
from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/bin/knife:19:in `'

Looks like a bug in your cluster bootstrap command. You could put this:

deps { Chef::knife::Bootstrap.load_deps }

in the class body to fix it.

--
Dan DeLeo

Thanks,

dwh

Thanks - it seems the cookbooks I'm using (cluster_chef) aren't real happy
with chef 0.10; downgrading to the last 0.9 version fixed this.

dwh

Sent from my mobile
On May 10, 2011 2:28 AM, "Daniel DeLeo" dan@kallistec.com wrote:

On Monday, May 9, 2011 at 12:23 PM, Denis Haskin wrote:
(this may be an issue with some 3rd-party cookbooks I'm using, but I
figure I would ask here:)

Does the error below ring any bells for anyone? Any pointers on where I
should be poking to try and figure out why this is happening and fix it?

$ knife cluster bootstrap cm-cassandra datanode
mumble.compute-1.amazonaws.com -VV
DEBUG: Using configuration from /Users/dhaskin/.chef/knife.rb
Bootstrapping Chef on mumble.compute-1.amazonaws.com
DEBUG: Looking for bootstrap template in
/Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef
/gems/chef-0.10.0/lib/chef/knife/bootstrap
DEBUG: Found bootstrap template in
/Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef
/gems/chef-0.10.0/lib/chef/knife/bootstrap
/Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife/bootstrap.rb:131:in
render_template': uninitialized constant Chef::Knife::Core::BootstrapContext (NameError) from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife/bootstrap.rb:187:in ssh_command'
from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife/bootstrap.rb:169:in
knife_ssh' from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife/bootstrap.rb:147:in run'
from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife/cluster_bootstrap.rb:81:in
run' from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife.rb:391:in run_with_pretty_exceptions'
from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/knife.rb:166:in
run' from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/lib/chef/application/knife.rb:128:in run'
from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/gems/chef-0.10.0/bin/knife:25:in
<top (required)>' from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/bin/knife:19:in load'
from /Users/dhaskin/.rvm/gems/ruby-1.9.2-p180@chef/bin/knife:19:in
`'

Looks like a bug in your cluster bootstrap command. You could put this:

deps { Chef::knife::Bootstrap.load_deps }

in the class body to fix it.

--
Dan DeLeo

Thanks,

dwh