[chef] Re: Knife error uninitialized constant Chef::Knife::Ssh (NameError)


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Knife error uninitialized constant Chef::Knife::Ssh (NameError)
  • Date: Mon, 2 Jul 2012 08:49:47 -0700



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





  • [chef] Re: Knife error uninitialized constant Chef::Knife::Ssh (NameError), Daniel DeLeo, 07/02/2012

Archive powered by MHonArc 2.6.16.

§