Hostname problems

Any help would be double super awesome!

$ chef-solo -c /etc/chef/solo.rb -j /etc/chef/dna.json
[Tue, 20 Apr 2010 03:43:45 +0000] INFO: Starting Chef Solo Run
[Tue, 20 Apr 2010 03:43:47 +0000] WARN: Missing gem ‘right_aws’
[Tue, 20 Apr 2010 03:43:47 +0000] WARN: Missing gem ‘mysql’
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/…/lib/chef/node/attribute.rb:387:in
method_missing': Attribute domain is not defined! (ArgumentError) from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/node.rb:251:insend’
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/…/lib/chef/node.rb:251:in
method_missing' from /var/chef-solo/cookbooks/bootstrap/attributes/bootstrap.rb:49:infrom_file’
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/…/lib/chef/cookbook.rb:83:in
load_attribute_file' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook.rb:76:inload_attributes’
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/…/lib/chef/cookbook.rb:75:in
each' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook.rb:75:inload_attributes’
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/…/lib/chef/compile.rb:78:in
load_attributes' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook_loader.rb:132:ineach’
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/…/lib/chef/cookbook_loader.rb:131:in
each' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/compile.rb:77:inload_attributes’
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/…/lib/chef/compile.rb:52:in
initialize' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/client.rb:316:innew’
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/…/lib/chef/client.rb:316:in
converge' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/client.rb:110:inrun_solo’
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/…/lib/chef/application/solo.rb:198:in
run_application' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/application/solo.rb:190:inloop’
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/…/lib/chef/application/solo.rb:190:in
run_application' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/application.rb:57:inrun’
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/chef-solo:26
from /usr/local/bin/chef-solo:19:in `load’
from /usr/local/bin/chef-solo:19

$ cat /etc/hostname
mindbullet

$ cat /etc/hosts
127.0.0.1 localhost mindbullet.local
209.##.##.### mindbullet

$ hostname -f
mindbullet

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION=“Ubuntu 9.10”

I followed this blog post for the install

the gist is here

Thanks
Kirk

set your hostname to

'mindbullet.local'

and you should be good to go.

-Cary P

On Apr 19, 2010, at 9:17 PM, kirkosis@gmail.com kirkosis@gmail.com
wrote:

Any help would be double super awesome!

$ chef-solo -c /etc/chef/solo.rb -j /etc/chef/dna.json
[Tue, 20 Apr 2010 03:43:45 +0000] INFO: Starting Chef Solo Run
[Tue, 20 Apr 2010 03:43:47 +0000] WARN: Missing gem 'right_aws'
[Tue, 20 Apr 2010 03:43:47 +0000] WARN: Missing gem 'mysql'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/node/
attribute.rb:387:in
method_missing': Attribute domain is not defined! (ArgumentError) from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/ node.rb:251:in send'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/
node.rb:251:in
method_missing' from /var/chef-solo/cookbooks/bootstrap/attributes/bootstrap.rb:49:in from_file'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/
cookbook.rb:83:in
load_attribute_file' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/ cookbook.rb:76:in load_attributes'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/
cookbook.rb:75:in
each' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/ cookbook.rb:75:in load_attributes'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/
compile.rb:78:in
load_attributes' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/ cookbook_loader.rb:132:in each'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/
cookbook_loader.rb:131:in
each' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/ compile.rb:77:in load_attributes'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/
compile.rb:52:in
initialize' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/ client.rb:316:in new'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/
client.rb:316:in
converge' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/ client.rb:110:in run_solo'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/
application/solo.rb:198:in
run_application' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/ application/solo.rb:190:in loop'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/
application/solo.rb:190:in
run_application' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/ application.rb:57:in run'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/chef-solo:26
from /usr/local/bin/chef-solo:19:in `load'
from /usr/local/bin/chef-solo:19

$ cat /etc/hostname
mindbullet

$ cat /etc/hosts
127.0.0.1 localhost mindbullet.local
209.##.##.### mindbullet

$ hostname -f
mindbullet

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"

I followed this blog post for the install
Cooking Solo with Chef | AkitaOnRails.com

the gist is here
chef troubles · GitHub

Thanks
Kirk

Just set a FQDN in /etc/hosts. You'll know you have it right when
hostname -f is something like hostname.domainname or ohai domain
gives you the domain name.

http://wiki.opscode.com/display/chef/Bootstrap+Chef+RubyGems+Installation#BootstrapChefRubyGemsInstallation-FullyQualifiedDomainNames

HTH,
Dan DeLeo

On Mon, Apr 19, 2010 at 9:17 PM, kirkosis@gmail.com wrote:

Any help would be double super awesome!

$ chef-solo -c /etc/chef/solo.rb -j /etc/chef/dna.json
[Tue, 20 Apr 2010 03:43:45 +0000] INFO: Starting Chef Solo Run
[Tue, 20 Apr 2010 03:43:47 +0000] WARN: Missing gem 'right_aws'
[Tue, 20 Apr 2010 03:43:47 +0000] WARN: Missing gem 'mysql'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/node/attribute.rb:387:in
method_missing': Attribute domain is not defined! (ArgumentError) from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/node.rb:251:in send'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/node.rb:251:in
method_missing' from /var/chef-solo/cookbooks/bootstrap/attributes/bootstrap.rb:49:in from_file'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook.rb:83:in
load_attribute_file' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook.rb:76:in load_attributes'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook.rb:75:in
each' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook.rb:75:in load_attributes'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/compile.rb:78:in
load_attributes' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook_loader.rb:132:in each'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook_loader.rb:131:in
each' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/compile.rb:77:in load_attributes'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/compile.rb:52:in
initialize' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/client.rb:316:in new'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/client.rb:316:in
converge' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/client.rb:110:in run_solo'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/application/solo.rb:198:in
run_application' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/application/solo.rb:190:in loop'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/application/solo.rb:190:in
run_application' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/application.rb:57:in run'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/chef-solo:26
from /usr/local/bin/chef-solo:19:in `load'
from /usr/local/bin/chef-solo:19

$ cat /etc/hostname
mindbullet

$ cat /etc/hosts
127.0.0.1 localhost mindbullet.local
209.##.##.### mindbullet

$ hostname -f
mindbullet

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"

I followed this blog post for the install
Cooking Solo with Chef | AkitaOnRails.com

the gist is here
chef troubles · GitHub

Thanks
Kirk

Thanks for the help.

Problem solved!

On Apr 20, 2010, at 12:24 AM, Daniel DeLeo wrote:

Just set a FQDN in /etc/hosts. You'll know you have it right when
hostname -f is something like hostname.domainname or ohai domain
gives you the domain name.

http://wiki.opscode.com/display/chef/Bootstrap+Chef+RubyGems+Installation#BootstrapChefRubyGemsInstallation-FullyQualifiedDomainNames

HTH,
Dan DeLeo

On Mon, Apr 19, 2010 at 9:17 PM, kirkosis@gmail.com wrote:

Any help would be double super awesome!

$ chef-solo -c /etc/chef/solo.rb -j /etc/chef/dna.json
[Tue, 20 Apr 2010 03:43:45 +0000] INFO: Starting Chef Solo Run
[Tue, 20 Apr 2010 03:43:47 +0000] WARN: Missing gem 'right_aws'
[Tue, 20 Apr 2010 03:43:47 +0000] WARN: Missing gem 'mysql'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/node/attribute.rb:387:in
method_missing': Attribute domain is not defined! (ArgumentError) from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/node.rb:251:in send'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/node.rb:251:in
method_missing' from /var/chef-solo/cookbooks/bootstrap/attributes/bootstrap.rb:49:in from_file'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook.rb:83:in
load_attribute_file' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook.rb:76:in load_attributes'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook.rb:75:in
each' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook.rb:75:in load_attributes'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/compile.rb:78:in
load_attributes' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook_loader.rb:132:in each'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook_loader.rb:131:in
each' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/compile.rb:77:in load_attributes'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/compile.rb:52:in
initialize' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/client.rb:316:in new'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/client.rb:316:in
converge' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/client.rb:110:in run_solo'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/application/solo.rb:198:in
run_application' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/application/solo.rb:190:in loop'
from
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/application/solo.rb:190:in
run_application' from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/application.rb:57:in run'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/chef-solo:26
from /usr/local/bin/chef-solo:19:in `load'
from /usr/local/bin/chef-solo:19

$ cat /etc/hostname
mindbullet

$ cat /etc/hosts
127.0.0.1 localhost mindbullet.local
209.##.##.### mindbullet

$ hostname -f
mindbullet

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"

I followed this blog post for the install
Cooking Solo with Chef | AkitaOnRails.com

the gist is here
chef troubles · GitHub

Thanks
Kirk