Details
Description
btm@btm-mbp-dev:~/devel/platform/rsprod$ knife bootstrap 172.30.0.104 -x root
INFO: Bootstrapping Chef on
/var/lib/gems/1.8/gems/chef-0.9.12/lib/chef/knife/bootstrap.rb:127:in `run': uninitialized constant Net::SSH (NameError)
from /var/lib/gems/1.8/gems/chef-0.9.12/lib/chef/knife.rb:127:in `run'
from /var/lib/gems/1.8/gems/chef-0.9.12/lib/chef/application/knife.rb:121:in `run'
from /var/lib/gems/1.8/gems/chef-0.9.12/bin/knife:25
from /var/lib/gems/1.8/bin/knife:19:in `load'
from /var/lib/gems/1.8/bin/knife:19
btm@btm-mbp-dev:~/devel/platform/rsprod$ gem list net*
-
-
- LOCAL GEMS ***
-
net-ssh (2.0.23)
net-ssh-gateway (1.0.1)
net-ssh-multi (1.0.1)
btm@btm-mbp-dev:~/devel/platform/rsprod$ gem list chef
-
-
- LOCAL GEMS ***
-
chef (0.9.12)
From http://likens.us/logs/%23chef.10-24.log:
12:19 <steph021> i get this error: /var/lib/gems/1.8/gems/chef-0.9.12/lib/chef/knife/bootstrap.rb:126:in `run': uninitialized constant Net::SSH (NameError)
12:19 <steph021> i've installed net-ssh and net-ssh-multi. does anyone know how to resolve this?
12:23 <kallistec> steph021: looks like a bug. work around it with `require "chef/knife/ssh"` in your knife.rb
12:39 <steph021> kallistec: i put this into ~/.chef/knife.rb require 'chef/knife/ssh' but I still am getting the same error message
12:40 <kallistec> steph021: can you gist me the full stack trace?
12:49 <steph021> kallistec: sorry im not sure how to get a full stack trace, but is this what you need http://gist.github.com/643902
12:51 <kallistec> steph021: what if you put `require 'net/ssh'` in your knife.rb?
12:53 <steph021> kallistec: ok i think that fixed it
12:56 <steph021> kallistec: thank you
Also this was here: http://help.opscode.com/discussions/problems/112-configuring-run_list-before-node-installation
Adding "require 'net/ssh'" to the first line of my knife.rb works around.