Problem with knife rackspace

So I’ve plugged in my api key into knife.rb, and I have all of the
proper gems installed TMK, but i get the following error when running
a list on my cloud instances:

knife rackspace server list

/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/knife/rackspace_server_list.rb:38:in
run': uninitialized constant Fog::Rackspace::Servers (NameError) from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/knife.rb:127:inrun’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/application/knife.rb:118:in
run' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/knife:25 from /usr/bin/knife:19:inload’
from /usr/bin/knife:19

am i missing something?

Server meta data:

Linux chef-master 2.6.35.4-rscloud #8 SMP Mon Sep 20 15:54:33 UTC 2010
x86_64 x86_64 x86_64 GNU/Linux

chef-common-0.9.8-2.el5
chef-server-api-0.9.8-3.el5
rubygem-chef-server-webui-0.9.8-2.el5
chef-0.9.8-2.el5
rubygem-chef-0.9.8-2.el5
rubygem-chef-solr-0.9.8-1.el5
chef-solr-0.9.8-1.el5
rubygem-chef-server-api-0.9.8-3.el5
chef-server-webui-0.9.8-2.el5

CentOS release 5.5 (Final)

Do you have the Fog gem installed?

Regards,
Avishai

On 03/02/2011 11:01 PM, msacks wrote:

So I've plugged in my api key into knife.rb, and I have all of the
proper gems installed TMK, but i get the following error when running
a list on my cloud instances:

knife rackspace server list

/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/knife/rackspace_server_list.rb:38:in
run': uninitialized constant Fog::Rackspace::Servers (NameError) from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/knife.rb:127:in run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/application/knife.rb:118:in
run' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/knife:25 from /usr/bin/knife:19:in load'
from /usr/bin/knife:19

am i missing something?

Server meta data:

Linux chef-master 2.6.35.4-rscloud #8 SMP Mon Sep 20 15:54:33 UTC 2010
x86_64 x86_64 x86_64 GNU/Linux

chef-common-0.9.8-2.el5
chef-server-api-0.9.8-3.el5
rubygem-chef-server-webui-0.9.8-2.el5
chef-0.9.8-2.el5
rubygem-chef-0.9.8-2.el5
rubygem-chef-solr-0.9.8-1.el5
chef-solr-0.9.8-1.el5
rubygem-chef-server-api-0.9.8-3.el5
chef-server-webui-0.9.8-2.el5

CentOS release 5.5 (Final)

see http://wiki.opscode.com/display/chef/Launch+Cloud+Instances+with+Knifefor
detail on the gems required on
the local management workstation where you use knife.

sudo gem install net-ssh net-ssh-multi fog highline

On Wed, Mar 2, 2011 at 1:08 PM, Avishai Ish-Shalom avishai@fewbytes.comwrote:

Do you have the Fog gem installed?

Regards,
Avishai

On 03/02/2011 11:01 PM, msacks wrote:

So I've plugged in my api key into knife.rb, and I have all of the
proper gems installed TMK, but i get the following error when running
a list on my cloud instances:

knife rackspace server list

/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/knife/rackspace_server_list.rb:38:in

run': uninitialized constant Fog::Rackspace::Servers (NameError) from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/knife.rb:127:in run'
from
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/application/knife.rb:118:in
run' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/knife:25 from /usr/bin/knife:19:in load'
from /usr/bin/knife:19

am i missing something?

Server meta data:

Linux chef-master 2.6.35.4-rscloud #8 SMP Mon Sep 20 15:54:33 UTC 2010
x86_64 x86_64 x86_64 GNU/Linux

chef-common-0.9.8-2.el5
chef-server-api-0.9.8-3.el5
rubygem-chef-server-webui-0.9.8-2.el5
chef-0.9.8-2.el5
rubygem-chef-0.9.8-2.el5
rubygem-chef-solr-0.9.8-1.el5
chef-solr-0.9.8-1.el5
rubygem-chef-server-api-0.9.8-3.el5
chef-server-webui-0.9.8-2.el5

CentOS release 5.5 (Final)

--

Tom Thomas | Opscode, Inc.
tom@opscode.com | (c) 206.234.1193 | www.opscode.com

Yes, I have all of them:

*** LOCAL GEMS ***

abstract (1.0.0)
builder (3.0.0)
bunny (0.6.0)
chef (0.9.8)
chef-server-api (0.9.8)
chef-server-webui (0.9.8)
chef-solr (0.9.8)
coderay (0.8.312)
daemons (1.0.10)
diff-lcs (1.1.2)
erubis (2.6.5)
eventmachine (0.12.10)
excon (0.5.6)
extlib (0.9.13)
fog (0.6.0)
formatador (0.0.16)
haml (2.2.20)
highline (1.6.1, 1.4.0)
hpricot (0.8.2)
json (1.4.6)
libxml-ruby (1.1.3)
merb-assets (1.0.15)
merb-core (1.0.15)
merb-haml (1.0.15)
merb-helpers (1.0.15)
merb-param-protection (1.0.15)
merb-slices (1.0.15)
mime-types (1.16)
mixlib-authentication (1.1.4)
mixlib-cli (1.2.0)
mixlib-config (1.1.0)
mixlib-log (1.1.0)
moneta (0.6.0)
net-ssh (2.1.3)
net-ssh-gateway (1.0.1)
net-ssh-multi (1.0.1)
nokogiri (1.4.4)
ohai (0.5.6)
ParseTree (3.0.4)
rack (1.1.0)
rake (0.8.7)
rest-client (1.3.1)
rspec (1.3.0)
ruby-hmac (0.4.0)
ruby2ruby (1.2.4)
ruby_parser (2.0.4)
RubyInline (3.8.4)
sexp_processor (3.0.4)
systemu (1.2.0)
term-ansicolor (1.0.5)
thin (1.2.5)
thor (0.12.0)
uuidtools (2.1.1)
ZenTest (4.3.3)

On Wed, Mar 2, 2011 at 1:11 PM, Tom Thomas tom@opscode.com wrote:

see http://wiki.opscode.com/display/chef/Launch+Cloud+Instances+with+Knife
for detail on the gems required on the local management workstation where
you use knife.
sudo gem install net-ssh net-ssh-multi fog highline

On Wed, Mar 2, 2011 at 1:08 PM, Avishai Ish-Shalom avishai@fewbytes.com
wrote:

Do you have the Fog gem installed?

Regards,
Avishai

On 03/02/2011 11:01 PM, msacks wrote:

So I've plugged in my api key into knife.rb, and I have all of the
proper gems installed TMK, but i get the following error when running
a list on my cloud instances:

knife rackspace server list

/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/knife/rackspace_server_list.rb:38:in
run': uninitialized constant Fog::Rackspace::Servers (NameError) from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/knife.rb:127:in run'
from
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef/application/knife.rb:118:in
run' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/knife:25 from /usr/bin/knife:19:in load'
from /usr/bin/knife:19

am i missing something?

Server meta data:

Linux chef-master 2.6.35.4-rscloud #8 SMP Mon Sep 20 15:54:33 UTC 2010
x86_64 x86_64 x86_64 GNU/Linux

chef-common-0.9.8-2.el5
chef-server-api-0.9.8-3.el5
rubygem-chef-server-webui-0.9.8-2.el5
chef-0.9.8-2.el5
rubygem-chef-0.9.8-2.el5
rubygem-chef-solr-0.9.8-1.el5
chef-solr-0.9.8-1.el5
rubygem-chef-server-api-0.9.8-3.el5
chef-server-webui-0.9.8-2.el5

CentOS release 5.5 (Final)

--

Tom Thomas | Opscode, Inc.
tom@opscode.com | (c) 206.234.1193 | www.opscode.com

On Wednesday, March 2, 2011 at 3:28 PM, msacks wrote:
Yes, I have all of them:

*** LOCAL GEMS ***

abstract (1.0.0)
fog (0.6.0)

Might be the new version of Fog. I think upgraded our fog usage in the 0.9.14 RC, can you try installing it with gem install chef --pre and see if that fixes your issue?

--
Dan DeLeo

On Wed, Mar 2, 2011 at 3:40 PM, Daniel DeLeo dan@kallistec.com wrote:

Might be the new version of Fog. I think upgraded our fog usage in the
0.9.14 RC, can you try installing it with gem install chef --pre and see
if that fixes your issue?

Fog v0.5.3 was the last version that supported
Fog::Rackspace::Servers. As Dan notes 0.9.14 will have CHEF-1727 [1]
which switches to use Fog::Rackspace::Compute which is compatible with
Fog 0.6.0, so you can use the current prerelease 0.9.14.rc.1 via 'gem
install chef --pre' or you could downgrade to Fog 0.5.3.

Bryan

[1] http://tickets.opscode.com/browse/CHEF-1727