Knife error uninitialized constant Chef::Knife::Ssh (NameError)

Hi

For any knife command I am using, I am getting the below error. If I
repeat the command 3-4 times it will then work. I noticed after I ran
gem update fog

So, knife is now useless in a production env. How do I resolve?
Again, this is for any knife command, not specific to the command I
used below.

knife cloudstack server create ‘role[nginx_server]’ …

/usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/knife/bootstrap.rb:33:
uninitialized constant Chef::knife::Ssh (NameError)
from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/knife.rb:204:in call' from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/knife.rb:204:inload_deps’
from /usr/lib/ruby/gems/1.8/gems/knife-cloudstack-fog-0.2.10/lib/chef/knife/cloudstack_server_create.rb:19
from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/knife/core/subcommand_loader.rb:37:in
load' from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/knife/core/subcommand_loader.rb:37:inload_commands’
from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/knife/core/subcommand_loader.rb:37:in
each' from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/knife/core/subcommand_loader.rb:37:inload_commands’
from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/knife.rb:114:in
load_commands' from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/knife.rb:162:inrun’
from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/application/knife.rb:123:in
run' from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/bin/knife:25 from /usr/bin/knife:19:inload’
from /usr/bin/knife:19

On Saturday, June 30, 2012 at 9:04 AM, David Montgomery wrote:

Hi

For any knife command I am using, I am getting the below error. If I
repeat the command 3-4 times it will then work. I noticed after I ran
gem update fog

So, knife is now useless in a production env. How do I resolve?
Again, this is for any knife command, not specific to the command I
used below.

knife cloudstack server create 'role[nginx_server]' .........

/usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/knife/bootstrap.rb:33:
uninitialized constant Chef::knife::Ssh (NameError)
from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/knife.rb:204:in call' from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/knife.rb:204:in load_deps'
from /usr/lib/ruby/gems/1.8/gems/knife-cloudstack-fog-0.2.10/lib/chef/knife/cloudstack_server_create.rb:19

Based on that line, I'd guess the knife cloudstack plugin isn't specifying its dependencies?

from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/knife/core/subcommand_loader.rb:37:in
load' from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/knife/core/subcommand_loader.rb:37:in load_commands'
from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/knife/core/subcommand_loader.rb:37:in
each' from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/knife/core/subcommand_loader.rb:37:in load_commands'
from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/knife.rb:114:in
load_commands' from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/knife.rb:162:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/lib/chef/application/knife.rb:123:in
run' from /usr/lib/ruby/gems/1.8/gems/chef-0.10.10/bin/knife:25 from /usr/bin/knife:19:in load'
from /usr/bin/knife:19

--
Dan DeLeo