[chef] Re: Re: Attribute domain is not defined


Chronological Thread 
  • From: Tommy Chheng < >
  • To:
  • Subject: [chef] Re: Re: Attribute domain is not defined
  • Date: Tue, 30 Mar 2010 23:51:05 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=Q+PlA+W3BjSJYhezmMFuKQZ2LJ5CxdSP8cVlKENmM6LqbXlFXHQo3DHoCxpuA04+MU id44qdZehN0HI5kcN1lOLbyut4nM38KEUsh5sWx6nhxta6JJcPYgeVBuG35+57mZitUR CzlNVvYx9oNT0vwdWh3ZekHIpitXNLciDHKQE=

Thanks, i added my domain to /etc/hostname and it fixed the attribute domain problem.

Tommy Chheng
Programmer and UC Irvine Graduate Student
Twitter @tommychheng
http://tommy.chheng.com


On 3/30/10 11:39 PM, Daniel DeLeo wrote:
The domain not defined error means your host doesn't have its fqdn
properly set. You'll need to configure the /etc/hosts file with your
fqdn. You can verify that it's correct with `hostname -f`

HTH,
Dan DeLeo

On Tue, Mar 30, 2010 at 11:35 PM, Tommy 
Chheng< >
  wrote:
  Running on ubuntu 9.10; after fixing the ruby 1.8 issue, im running into
this attribute domain is not defined.

/usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/../lib/chef/node/attribute.rb:387:in
`method_missing': Attribute domain is not defined! (ArgumentError)
        from
/usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/../lib/chef/node.rb:254:in `send'
        from
/usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/../lib/chef/node.rb:254:in
`method_missing'
        from config/../cookbooks/bootstrap/attributes/bootstrap.rb:52:in
`from_file'
        from
/usr/lib/ruby/gems/1.8/gems/chef-0.8.8/bin/../lib/chef/cookbook.rb:83:in
`load_attribute_file'

I checked ohai and no domain is defined:
$ ohai | grep domain
  "domain": null,

i came across this ticket http://tickets.opscode.com/browse/OHAI-147 and i'm
running ohai 0.5 so it should have included this patch?


--
Tommy Chheng
Programmer and UC Irvine Graduate Student
Twitter @tommychheng
http://tommy.chheng.com





Archive powered by MHonArc 2.6.16.

§