# Chef (solo?) explanation for: Attribute hotspot is not defined

**URL:** <https://discourse.chef.io/t/chef-solo-explanation-for-attribute-hotspot-is-not-defined/1724>\
**Category:** Chef Infra (archive)\
**Created:** [February 9, 2011, 9:06am UTC](https://discourse.chef.io/t/chef-solo-explanation-for-attribute-hotspot-is-not-defined/1724 "2011-02-09T09:06:53Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![hedgehog](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/hedgehog/32/620_2.png) [@hedgehog](https://discourse.chef.io/u/hedgehog)\
**Post date:** [February 9, 2011, 9:06am UTC](https://discourse.chef.io/t/chef-solo-explanation-for-attribute-hotspot-is-not-defined/1724/1 "2011-02-09T09:06:53Z")

</div>

Hi,  
I’m wrestling with starting a chef server under Vagrant 0.7, while  
things ran under Vagrant 0.6.8, I think the error I’m seeing here is  
related to chef (0.9.12):

> <https://gist.github.com/hedgehog/818165>

Can anyone suggest what may be the cause, or how to debug this.  
The Cookbooks I grab are described here:

> <https://gist.github.com/hedgehog/818174>

While I don’t think this is a Vagrant file issue, the Vagrantfile is:

> <https://gist.github.com/hedgehog/818177>

Appreciate any insight, or tips.

TIA

–  
πόλλ’ οἶδ ἀλώπηξ, ἀλλ’ ἐχῖνος ἓν μέγα  
[The fox knows many things, but the hedgehog knows one big thing.]  
Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
[http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)

---

<div class="post-metadata">

**Author:** ![hedgehog](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/hedgehog/32/620_2.png) [@hedgehog](https://discourse.chef.io/u/hedgehog)\
**Post date:** [February 9, 2011, 9:40am UTC](https://discourse.chef.io/t/chef-solo-explanation-for-attribute-hotspot-is-not-defined/1724/2 "2011-02-09T09:40:22Z")

</div>

OK, so I managed to get Vagrant to set the log level to debug....

On Wed, Feb 9, 2011 at 8:06 PM, Hedge Hog [hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com) wrote:

> Hi,  
> I'm wrestling with starting a chef server under Vagrant 0.7, while  
> things ran under Vagrant 0.6.8, I think the error I'm seeing here is  
> related to chef (0.9.12):  
> [Chef-solo: Attribute hotspot is not defined · GitHub](https://gist.github.com/818165)

The more informative log output is:

> <https://gist.github.com/hedgehog/818208>

The offending code is line 55:

> <https://github.com/cookbooks/java/blob/qa-latest/recipes/default.rb>

Is this a bug (how to report it) or misconfiguration?

Appreciate any tips or suggestions.

> Can anyone suggest what may be the cause, or how to debug this.  
> The Cookbooks I grab are described here:  
> [chef server cookbooks gemfile · GitHub](https://gist.github.com/818174)
> 
> While I don't think this is a Vagrant file issue, the Vagrantfile is:  
> [Chef-server Vagrantfile (Vagrant 0.7) · GitHub](https://gist.github.com/818177)
> 
> Appreciate any insight, or tips.
> 
> TIA
> 
> --  
> πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> [The fox knows many things, but the hedgehog knows one big thing.]  
> Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)

--  
πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
[The fox knows many things, but the hedgehog knows one big thing.]  
Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
[http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)

---

<div class="post-metadata">

**Author:** ![Thibaut\_Barrere](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/thibaut_barrere/32/761_2.png) [@Thibaut\_Barrere](https://discourse.chef.io/u/Thibaut_Barrere)\
**Post date:** [February 9, 2011, 10:12am UTC](https://discourse.chef.io/t/chef-solo-explanation-for-attribute-hotspot-is-not-defined/1724/3 "2011-02-09T10:12:20Z")

</div>

> Appreciate any tips or suggestions.

After a quick look at the recipe and attributes definition, the recipe  
looks for an attribute called java.hotspot, which isn't defined  
anywhere apparently.

You can either fix the recipe or find an equivalent one I guess.

-- Thibaut

---

<div class="post-metadata">

**Author:** ![Andrew\_Shafer](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@Andrew\_Shafer](https://discourse.chef.io/u/Andrew_Shafer)\
**Post date:** [February 9, 2011, 10:23am UTC](https://discourse.chef.io/t/chef-solo-explanation-for-attribute-hotspot-is-not-defined/1724/4 "2011-02-09T10:23:24Z")

</div>

what is the output from running 'ohai languages'?

On Wed, Feb 9, 2011 at 2:40 AM, Hedge Hog [hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com) wrote:

> OK, so I managed to get Vagrant to set the log level to debug....
> 
> On Wed, Feb 9, 2011 at 8:06 PM, Hedge Hog [hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com)  
> wrote:
> 
> > Hi,  
> > I'm wrestling with starting a chef server under Vagrant 0.7, while  
> > things ran under Vagrant 0.6.8, I think the error I'm seeing here is  
> > related to chef (0.9.12):  
> > [Chef-solo: Attribute hotspot is not defined · GitHub](https://gist.github.com/818165)
> 
> The more informative log output is:  
> [Vagrant chef-solo debug log · GitHub](https://gist.github.com/818208)
> 
> The offending code is line 55:  
> [java/recipes/default.rb at qa-latest · cookbooks/java · GitHub](https://github.com/cookbooks/java/blob/qa-latest/recipes/default.rb)
> 
> Is this a bug (how to report it) or misconfiguration?
> 
> Appreciate any tips or suggestions.
> 
> > Can anyone suggest what may be the cause, or how to debug this.  
> > The Cookbooks I grab are described here:  
> > [chef server cookbooks gemfile · GitHub](https://gist.github.com/818174)
> > 
> > While I don't think this is a Vagrant file issue, the Vagrantfile is:  
> > [Chef-server Vagrantfile (Vagrant 0.7) · GitHub](https://gist.github.com/818177)
> > 
> > Appreciate any insight, or tips.
> > 
> > TIA
> > 
> > --  
> > πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> > [The fox knows many things, but the hedgehog knows one big thing.]  
> > Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> > [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)
> 
> --  
> πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> [The fox knows many things, but the hedgehog knows one big thing.]  
> Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)

---

<div class="post-metadata">

**Author:** ![hedgehog](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/hedgehog/32/620_2.png) [@hedgehog](https://discourse.chef.io/u/hedgehog)\
**Post date:** [February 9, 2011, 10:39am UTC](https://discourse.chef.io/t/chef-solo-explanation-for-attribute-hotspot-is-not-defined/1724/5 "2011-02-09T10:39:39Z")

</div>

On Wed, Feb 9, 2011 at 9:23 PM, Andrew Shafer [andrew@cloudscaling.com](mailto:andrew@cloudscaling.com) wrote:

> what is the output from running 'ohai languages'?

> <https://gist.github.com/818280>

For the minute, as a workaround, I've wrapped the offending code in:

if node.languages.java.attribute?('hotspot')  
...  
end

That feels like a hack.

Open to suggestions, and helping to debug the cause of this.

TIA

> On Wed, Feb 9, 2011 at 2:40 AM, Hedge Hog [hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com) wrote:
> 
> > OK, so I managed to get Vagrant to set the log level to debug....
> > 
> > On Wed, Feb 9, 2011 at 8:06 PM, Hedge Hog [hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com)  
> > wrote:
> > 
> > > Hi,  
> > > I'm wrestling with starting a chef server under Vagrant 0.7, while  
> > > things ran under Vagrant 0.6.8, I think the error I'm seeing here is  
> > > related to chef (0.9.12):  
> > > [Chef-solo: Attribute hotspot is not defined · GitHub](https://gist.github.com/818165)
> > 
> > The more informative log output is:  
> > [Vagrant chef-solo debug log · GitHub](https://gist.github.com/818208)
> > 
> > The offending code is line 55:  
> > [java/recipes/default.rb at qa-latest · cookbooks/java · GitHub](https://github.com/cookbooks/java/blob/qa-latest/recipes/default.rb)
> > 
> > Is this a bug (how to report it) or misconfiguration?
> > 
> > Appreciate any tips or suggestions.
> > 
> > > Can anyone suggest what may be the cause, or how to debug this.  
> > > The Cookbooks I grab are described here:  
> > > [chef server cookbooks gemfile · GitHub](https://gist.github.com/818174)
> > > 
> > > While I don't think this is a Vagrant file issue, the Vagrantfile is:  
> > > [Chef-server Vagrantfile (Vagrant 0.7) · GitHub](https://gist.github.com/818177)
> > > 
> > > Appreciate any insight, or tips.
> > > 
> > > TIA
> > > 
> > > --  
> > > πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> > > [The fox knows many things, but the hedgehog knows one big thing.]  
> > > Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> > > [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)
> > 
> > --  
> > πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> > [The fox knows many things, but the hedgehog knows one big thing.]  
> > Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> > [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)

--  
πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
[The fox knows many things, but the hedgehog knows one big thing.]  
Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
[http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)

---

<div class="post-metadata">

**Author:** ![Seth\_Chisamore](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/seth_chisamore/32/488_2.png) [@Seth\_Chisamore](https://discourse.chef.io/u/Seth_Chisamore)\
**Post date:** [February 9, 2011, 10:52am UTC](https://discourse.chef.io/t/chef-solo-explanation-for-attribute-hotspot-is-not-defined/1724/6 "2011-02-09T10:52:27Z")

</div>

Ohai!

This is a known bug with the Java cookbook and was reported in COOK-447 [0].  
That ticket also contains a temporary fix towards the bottom. Ohai  
basically fails to extract the java/languages/hotspot attribute on certain  
platforms [1] (CentOS I'm looking at you). Use of the "hotspot" attribute  
was also fallback until languages/java/runtime [2] is properly extracted on  
all platforms.

Seth

--  
Opscode, Inc.  
Seth Chisamore, Technical Evangelist  
T: (404) 348-0505 E: [schisamo@opscode.com](mailto:schisamo@opscode.com)  
Twitter, IRC, Github: schisamo

[0] [http://tickets.opscode.com/browse/COOK-447](http://tickets.opscode.com/browse/COOK-447)  
[1] [http://tickets.opscode.com/browse/OHAI-234](http://tickets.opscode.com/browse/OHAI-234)  
[2] [http://tickets.opscode.com/browse/OHAI-227](http://tickets.opscode.com/browse/OHAI-227)

On Wed, Feb 9, 2011 at 5:39 AM, Hedge Hog [hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com) wrote:

> On Wed, Feb 9, 2011 at 9:23 PM, Andrew Shafer [andrew@cloudscaling.com](mailto:andrew@cloudscaling.com)  
> wrote:
> 
> > what is the output from running 'ohai languages'?
> 
> [818280’s gists · GitHub](https://gist.github.com/818280)
> 
> For the minute, as a workaround, I've wrapped the offending code in:
> 
> if node.languages.java.attribute?('hotspot')  
> ...  
> end
> 
> That feels like a hack.
> 
> Open to suggestions, and helping to debug the cause of this.
> 
> TIA
> 
> > On Wed, Feb 9, 2011 at 2:40 AM, Hedge Hog [hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com)  
> > wrote:
> > 
> > > OK, so I managed to get Vagrant to set the log level to debug....
> > > 
> > > On Wed, Feb 9, 2011 at 8:06 PM, Hedge Hog [hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com)  
> > > wrote:
> > > 
> > > > Hi,  
> > > > I'm wrestling with starting a chef server under Vagrant 0.7, while  
> > > > things ran under Vagrant 0.6.8, I think the error I'm seeing here is  
> > > > related to chef (0.9.12):  
> > > > [Chef-solo: Attribute hotspot is not defined · GitHub](https://gist.github.com/818165)
> > > 
> > > The more informative log output is:  
> > > [Vagrant chef-solo debug log · GitHub](https://gist.github.com/818208)
> > > 
> > > The offending code is line 55:  
> > > [java/recipes/default.rb at qa-latest · cookbooks/java · GitHub](https://github.com/cookbooks/java/blob/qa-latest/recipes/default.rb)
> > > 
> > > Is this a bug (how to report it) or misconfiguration?
> > > 
> > > Appreciate any tips or suggestions.
> > > 
> > > > Can anyone suggest what may be the cause, or how to debug this.  
> > > > The Cookbooks I grab are described here:  
> > > > [chef server cookbooks gemfile · GitHub](https://gist.github.com/818174)
> > > > 
> > > > While I don't think this is a Vagrant file issue, the Vagrantfile is:  
> > > > [Chef-server Vagrantfile (Vagrant 0.7) · GitHub](https://gist.github.com/818177)
> > > > 
> > > > Appreciate any insight, or tips.
> > > > 
> > > > TIA
> > > > 
> > > > --  
> > > > πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> > > > [The fox knows many things, but the hedgehog knows one big thing.]  
> > > > Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> > > > [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)
> > > 
> > > --  
> > > πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> > > [The fox knows many things, but the hedgehog knows one big thing.]  
> > > Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> > > [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)
> 
> --  
> πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> [The fox knows many things, but the hedgehog knows one big thing.]  
> Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)

---

<div class="post-metadata">

**Author:** ![hedgehog](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/hedgehog/32/620_2.png) [@hedgehog](https://discourse.chef.io/u/hedgehog)\
**Post date:** [February 9, 2011, 11:05am UTC](https://discourse.chef.io/t/chef-solo-explanation-for-attribute-hotspot-is-not-defined/1724/7 "2011-02-09T11:05:33Z")

</div>

On Wed, Feb 9, 2011 at 9:52 PM, Seth Chisamore [schisamo@opscode.com](mailto:schisamo@opscode.com) wrote:

> Ohai!  
> This is a known bug with the Java cookbook and was reported in COOK-447 [0].  
> That ticket also contains a temporary fix towards the bottom. Ohai  
> basically fails to extract the java/languages/hotspot attribute on certain  
> platforms [1] (CentOS I'm looking at you). Use of the "hotspot" attribute  
> was also fallback until languages/java/runtime [2] is properly extracted on  
> all platforms.

Thanks for the insight.  
However, it is not clear to me, from the comment in [0], under what  
conditions to run:

notifies :run, resources(:execute =\> "update-java-alternatives"), :immediately

Refering to [1]:  
a) all packages (at th end of the block)  
b) Only for the pltforms "ubuntu", "debian"  
c) Only for Sun -jvm on the platforms "ubuntu", "debian"

Appreciate any suggestions.

[0] [http://tickets.opscode.com/browse/COOK-447](http://tickets.opscode.com/browse/COOK-447)  
[1] [java\_recipes\_default.rb · GitHub](https://gist.github.com/0dc10cc79df8a0219488)

> ## Seth
> 
> Opscode, Inc.  
> Seth Chisamore, Technical Evangelist  
> T: (404) 348-0505 E: [schisamo@opscode.com](mailto:schisamo@opscode.com)  
> Twitter, IRC, Github: schisamo  
> [0] [http://tickets.opscode.com/browse/COOK-447](http://tickets.opscode.com/browse/COOK-447)  
> [1] [http://tickets.opscode.com/browse/OHAI-234](http://tickets.opscode.com/browse/OHAI-234)  
> [2] [http://tickets.opscode.com/browse/OHAI-227](http://tickets.opscode.com/browse/OHAI-227)
> 
> On Wed, Feb 9, 2011 at 5:39 AM, Hedge Hog [hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com) wrote:
> 
> > On Wed, Feb 9, 2011 at 9:23 PM, Andrew Shafer [andrew@cloudscaling.com](mailto:andrew@cloudscaling.com)  
> > wrote:
> > 
> > > what is the output from running 'ohai languages'?
> > 
> > [818280’s gists · GitHub](https://gist.github.com/818280)
> > 
> > For the minute, as a workaround, I've wrapped the offending code in:
> > 
> > if node.languages.java.attribute?('hotspot')  
> > ...  
> > end
> > 
> > That feels like a hack.
> > 
> > Open to suggestions, and helping to debug the cause of this.
> > 
> > TIA
> > 
> > > On Wed, Feb 9, 2011 at 2:40 AM, Hedge Hog [hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com)  
> > > wrote:
> > > 
> > > > OK, so I managed to get Vagrant to set the log level to debug....
> > > > 
> > > > On Wed, Feb 9, 2011 at 8:06 PM, Hedge Hog [hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com)  
> > > > wrote:
> > > > 
> > > > > Hi,  
> > > > > I'm wrestling with starting a chef server under Vagrant 0.7, while  
> > > > > things ran under Vagrant 0.6.8, I think the error I'm seeing here is  
> > > > > related to chef (0.9.12):  
> > > > > [Chef-solo: Attribute hotspot is not defined · GitHub](https://gist.github.com/818165)
> > > > 
> > > > The more informative log output is:  
> > > > [Vagrant chef-solo debug log · GitHub](https://gist.github.com/818208)
> > > > 
> > > > The offending code is line 55:  
> > > > [java/recipes/default.rb at qa-latest · cookbooks/java · GitHub](https://github.com/cookbooks/java/blob/qa-latest/recipes/default.rb)
> > > > 
> > > > Is this a bug (how to report it) or misconfiguration?
> > > > 
> > > > Appreciate any tips or suggestions.
> > > > 
> > > > > Can anyone suggest what may be the cause, or how to debug this.  
> > > > > The Cookbooks I grab are described here:  
> > > > > [chef server cookbooks gemfile · GitHub](https://gist.github.com/818174)
> > > > > 
> > > > > While I don't think this is a Vagrant file issue, the Vagrantfile is:  
> > > > > [Chef-server Vagrantfile (Vagrant 0.7) · GitHub](https://gist.github.com/818177)
> > > > > 
> > > > > Appreciate any insight, or tips.
> > > > > 
> > > > > TIA
> > > > > 
> > > > > --  
> > > > > πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> > > > > [The fox knows many things, but the hedgehog knows one big thing.]  
> > > > > Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> > > > > [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)
> > > > 
> > > > --  
> > > > πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> > > > [The fox knows many things, but the hedgehog knows one big thing.]  
> > > > Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> > > > [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)
> > 
> > --  
> > πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> > [The fox knows many things, but the hedgehog knows one big thing.]  
> > Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> > [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)

--  
πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
[The fox knows many things, but the hedgehog knows one big thing.]  
Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
[http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)

---

<div class="post-metadata">

**Author:** ![Seth\_Chisamore](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/seth_chisamore/32/488_2.png) [@Seth\_Chisamore](https://discourse.chef.io/u/Seth_Chisamore)\
**Post date:** [February 9, 2011, 11:20am UTC](https://discourse.chef.io/t/chef-solo-explanation-for-attribute-hotspot-is-not-defined/1724/8 "2011-02-09T11:20:30Z")

</div>

update-java-alternatives is run automatically by apt when the java related  
packages are installed on Ubuntu. The only reason that logic was in there  
was for the case where a person was switching back and forth between the Sun  
and OpenJDK flavors on the same node. This use case seems fairly small.  
For now pick your install flavor ahead of time per the README's  
instructions. If you just use the contents of that gist as is you should be  
good to go.

Seth

--  
Opscode, Inc.  
Seth Chisamore, Technical Evangelist  
T: (404) 348-0505 E: [schisamo@opscode.com](mailto:schisamo@opscode.com)  
Twitter, IRC, Github: schisamo

On Wed, Feb 9, 2011 at 6:05 AM, Hedge Hog [hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com) wrote:

> On Wed, Feb 9, 2011 at 9:52 PM, Seth Chisamore [schisamo@opscode.com](mailto:schisamo@opscode.com)  
> wrote:
> 
> > Ohai!  
> > This is a known bug with the Java cookbook and was reported in COOK-447  
> > [0].  
> > That ticket also contains a temporary fix towards the bottom. Ohai  
> > basically fails to extract the java/languages/hotspot attribute on  
> > certain  
> > platforms [1] (CentOS I'm looking at you). Use of the "hotspot"  
> > attribute  
> > was also fallback until languages/java/runtime [2] is properly extracted  
> > on  
> > all platforms.
> 
> Thanks for the insight.  
> However, it is not clear to me, from the comment in [0], under what  
> conditions to run:
> 
> notifies :run, resources(:execute =\> "update-java-alternatives"),  
> :immediately
> 
> Refering to [1]:  
> a) all packages (at th end of the block)  
> b) Only for the pltforms "ubuntu", "debian"  
> c) Only for Sun -jvm on the platforms "ubuntu", "debian"
> 
> Appreciate any suggestions.
> 
> [0] [http://tickets.opscode.com/browse/COOK-447](http://tickets.opscode.com/browse/COOK-447)  
> [1] [java\_recipes\_default.rb · GitHub](https://gist.github.com/0dc10cc79df8a0219488)
> 
> > ## Seth
> > 
> > Opscode, Inc.  
> > Seth Chisamore, Technical Evangelist  
> > T: (404) 348-0505 E: [schisamo@opscode.com](mailto:schisamo@opscode.com)  
> > Twitter, IRC, Github: schisamo  
> > [0] [http://tickets.opscode.com/browse/COOK-447](http://tickets.opscode.com/browse/COOK-447)  
> > [1] [http://tickets.opscode.com/browse/OHAI-234](http://tickets.opscode.com/browse/OHAI-234)  
> > [2] [http://tickets.opscode.com/browse/OHAI-227](http://tickets.opscode.com/browse/OHAI-227)
> > 
> > On Wed, Feb 9, 2011 at 5:39 AM, Hedge Hog [hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com)  
> > wrote:
> > 
> > > On Wed, Feb 9, 2011 at 9:23 PM, Andrew Shafer [andrew@cloudscaling.com](mailto:andrew@cloudscaling.com)  
> > > wrote:
> > > 
> > > > what is the output from running 'ohai languages'?
> > > 
> > > [818280’s gists · GitHub](https://gist.github.com/818280)
> > > 
> > > For the minute, as a workaround, I've wrapped the offending code in:
> > > 
> > > if node.languages.java.attribute?('hotspot')  
> > > ...  
> > > end
> > > 
> > > That feels like a hack.
> > > 
> > > Open to suggestions, and helping to debug the cause of this.
> > > 
> > > TIA
> > > 
> > > > On Wed, Feb 9, 2011 at 2:40 AM, Hedge Hog [hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com)  
> > > > wrote:
> > > > 
> > > > > OK, so I managed to get Vagrant to set the log level to debug....
> > > > > 
> > > > > On Wed, Feb 9, 2011 at 8:06 PM, Hedge Hog \<[hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com)
> > 
> > > > > wrote:
> > > > > 
> > > > > > Hi,  
> > > > > > I'm wrestling with starting a chef server under Vagrant 0.7, while  
> > > > > > things ran under Vagrant 0.6.8, I think the error I'm seeing here  
> > > > > > is  
> > > > > > related to chef (0.9.12):  
> > > > > > [Chef-solo: Attribute hotspot is not defined · GitHub](https://gist.github.com/818165)
> > > > > 
> > > > > The more informative log output is:  
> > > > > [Vagrant chef-solo debug log · GitHub](https://gist.github.com/818208)
> > > > > 
> > > > > The offending code is line 55:  
> > > > > [java/recipes/default.rb at qa-latest · cookbooks/java · GitHub](https://github.com/cookbooks/java/blob/qa-latest/recipes/default.rb)
> > > > > 
> > > > > Is this a bug (how to report it) or misconfiguration?
> > > > > 
> > > > > Appreciate any tips or suggestions.
> > > > > 
> > > > > > Can anyone suggest what may be the cause, or how to debug this.  
> > > > > > The Cookbooks I grab are described here:  
> > > > > > [chef server cookbooks gemfile · GitHub](https://gist.github.com/818174)
> > > > > > 
> > > > > > While I don't think this is a Vagrant file issue, the Vagrantfile  
> > > > > > is:  
> > > > > > [Chef-server Vagrantfile (Vagrant 0.7) · GitHub](https://gist.github.com/818177)
> > > > > > 
> > > > > > Appreciate any insight, or tips.
> > > > > > 
> > > > > > TIA
> > > > > > 
> > > > > > --  
> > > > > > πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> > > > > > [The fox knows many things, but the hedgehog knows one big thing.]  
> > > > > > Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> > > > > > [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)
> > > > > 
> > > > > --  
> > > > > πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> > > > > [The fox knows many things, but the hedgehog knows one big thing.]  
> > > > > Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> > > > > [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)
> > > 
> > > --  
> > > πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> > > [The fox knows many things, but the hedgehog knows one big thing.]  
> > > Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> > > [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)
> 
> --  
> πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> [The fox knows many things, but the hedgehog knows one big thing.]  
> Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)

---

<div class="post-metadata">

**Author:** ![hedgehog](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/hedgehog/32/620_2.png) [@hedgehog](https://discourse.chef.io/u/hedgehog)\
**Post date:** [February 9, 2011, 11:22am UTC](https://discourse.chef.io/t/chef-solo-explanation-for-attribute-hotspot-is-not-defined/1724/9 "2011-02-09T11:22:35Z")

</div>

On Wed, Feb 9, 2011 at 10:20 PM, Seth Chisamore [schisamo@opscode.com](mailto:schisamo@opscode.com) wrote:

> update-java-alternatives is run automatically by apt when the java related  
> packages are installed on Ubuntu. The only reason that logic was in there  
> was for the case where a person was switching back and forth between the Sun  
> and OpenJDK flavors on the same node. This use case seems fairly small.  
> For now pick your install flavor ahead of time per the README's  
> instructions. If you just use the contents of that gist as is you should be  
> good to go.

OK, thanks. Much appreciated!

> ## Seth
> 
> Opscode, Inc.  
> Seth Chisamore, Technical Evangelist  
> T: (404) 348-0505 E: [schisamo@opscode.com](mailto:schisamo@opscode.com)  
> Twitter, IRC, Github: schisamo
> 
> On Wed, Feb 9, 2011 at 6:05 AM, Hedge Hog [hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com) wrote:
> 
> > On Wed, Feb 9, 2011 at 9:52 PM, Seth Chisamore [schisamo@opscode.com](mailto:schisamo@opscode.com)  
> > wrote:
> > 
> > > Ohai!  
> > > This is a known bug with the Java cookbook and was reported in COOK-447  
> > > [0].  
> > > That ticket also contains a temporary fix towards the bottom. Ohai  
> > > basically fails to extract the java/languages/hotspot attribute on  
> > > certain  
> > > platforms [1] (CentOS I'm looking at you). Use of the "hotspot"  
> > > attribute  
> > > was also fallback until languages/java/runtime [2] is properly extracted  
> > > on  
> > > all platforms.
> > 
> > Thanks for the insight.  
> > However, it is not clear to me, from the comment in [0], under what  
> > conditions to run:
> > 
> > notifies :run, resources(:execute =\> "update-java-alternatives"),  
> > :immediately
> > 
> > Refering to [1]:  
> > a) all packages (at th end of the block)  
> > b) Only for the pltforms "ubuntu", "debian"  
> > c) Only for Sun -jvm on the platforms "ubuntu", "debian"
> > 
> > Appreciate any suggestions.
> > 
> > [0] [http://tickets.opscode.com/browse/COOK-447](http://tickets.opscode.com/browse/COOK-447)  
> > [1] [java\_recipes\_default.rb · GitHub](https://gist.github.com/0dc10cc79df8a0219488)
> > 
> > > ## Seth
> > > 
> > > Opscode, Inc.  
> > > Seth Chisamore, Technical Evangelist  
> > > T: (404) 348-0505 E: [schisamo@opscode.com](mailto:schisamo@opscode.com)  
> > > Twitter, IRC, Github: schisamo  
> > > [0] [http://tickets.opscode.com/browse/COOK-447](http://tickets.opscode.com/browse/COOK-447)  
> > > [1] [http://tickets.opscode.com/browse/OHAI-234](http://tickets.opscode.com/browse/OHAI-234)  
> > > [2] [http://tickets.opscode.com/browse/OHAI-227](http://tickets.opscode.com/browse/OHAI-227)
> > > 
> > > On Wed, Feb 9, 2011 at 5:39 AM, Hedge Hog [hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com)  
> > > wrote:
> > > 
> > > > On Wed, Feb 9, 2011 at 9:23 PM, Andrew Shafer [andrew@cloudscaling.com](mailto:andrew@cloudscaling.com)  
> > > > wrote:
> > > > 
> > > > > what is the output from running 'ohai languages'?
> > > > 
> > > > [818280’s gists · GitHub](https://gist.github.com/818280)
> > > > 
> > > > For the minute, as a workaround, I've wrapped the offending code in:
> > > > 
> > > > if node.languages.java.attribute?('hotspot')  
> > > > ...  
> > > > end
> > > > 
> > > > That feels like a hack.
> > > > 
> > > > Open to suggestions, and helping to debug the cause of this.
> > > > 
> > > > TIA
> > > > 
> > > > > On Wed, Feb 9, 2011 at 2:40 AM, Hedge Hog [hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com)  
> > > > > wrote:
> > > > > 
> > > > > > OK, so I managed to get Vagrant to set the log level to debug....
> > > > > > 
> > > > > > On Wed, Feb 9, 2011 at 8:06 PM, Hedge Hog  
> > > > > > [hedgehogshiatus@gmail.com](mailto:hedgehogshiatus@gmail.com)  
> > > > > > wrote:
> > > > > > 
> > > > > > > Hi,  
> > > > > > > I'm wrestling with starting a chef server under Vagrant 0.7, while  
> > > > > > > things ran under Vagrant 0.6.8, I think the error I'm seeing here  
> > > > > > > is  
> > > > > > > related to chef (0.9.12):  
> > > > > > > [Chef-solo: Attribute hotspot is not defined · GitHub](https://gist.github.com/818165)
> > > > > > 
> > > > > > The more informative log output is:  
> > > > > > [Vagrant chef-solo debug log · GitHub](https://gist.github.com/818208)
> > > > > > 
> > > > > > The offending code is line 55:  
> > > > > > [java/recipes/default.rb at qa-latest · cookbooks/java · GitHub](https://github.com/cookbooks/java/blob/qa-latest/recipes/default.rb)
> > > > > > 
> > > > > > Is this a bug (how to report it) or misconfiguration?
> > > > > > 
> > > > > > Appreciate any tips or suggestions.
> > > > > > 
> > > > > > > Can anyone suggest what may be the cause, or how to debug this.  
> > > > > > > The Cookbooks I grab are described here:  
> > > > > > > [chef server cookbooks gemfile · GitHub](https://gist.github.com/818174)
> > > > > > > 
> > > > > > > While I don't think this is a Vagrant file issue, the Vagrantfile  
> > > > > > > is:  
> > > > > > > [Chef-server Vagrantfile (Vagrant 0.7) · GitHub](https://gist.github.com/818177)
> > > > > > > 
> > > > > > > Appreciate any insight, or tips.
> > > > > > > 
> > > > > > > TIA
> > > > > > > 
> > > > > > > --  
> > > > > > > πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> > > > > > > [The fox knows many things, but the hedgehog knows one big thing.]  
> > > > > > > Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> > > > > > > [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)
> > > > > > 
> > > > > > --  
> > > > > > πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> > > > > > [The fox knows many things, but the hedgehog knows one big thing.]  
> > > > > > Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> > > > > > [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)
> > > > 
> > > > --  
> > > > πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> > > > [The fox knows many things, but the hedgehog knows one big thing.]  
> > > > Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> > > > [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)
> > 
> > --  
> > πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
> > [The fox knows many things, but the hedgehog knows one big thing.]  
> > Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
> > [http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)

--  
πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
[The fox knows many things, but the hedgehog knows one big thing.]  
Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
[http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)

---

<div class="post-metadata">

**Author:** ![ringods](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/ringods/32/154_2.png) [@ringods](https://discourse.chef.io/u/ringods)\
**Post date:** [February 9, 2011, 1:19pm UTC](https://discourse.chef.io/t/chef-solo-explanation-for-attribute-hotspot-is-not-defined/1724/10 "2011-02-09T13:19:22Z")

</div>

Hello,

On 9 February 2011 11:52, Seth Chisamore [schisamo@opscode.com](mailto:schisamo@opscode.com) wrote:

> Ohai!  
> This is a known bug with the Java cookbook and was reported in COOK-447 [0].  
> That ticket also contains a temporary fix towards the bottom. Ohai  
> basically fails to extract the java/languages/hotspot attribute on certain  
> platforms [1] (CentOS I'm looking at you). Use of the "hotspot" attribute  
> was also fallback until languages/java/runtime [2] is properly extracted on  
> all platforms.

Also added this as a comment to COOK-447:

For the original author: are you bitten by OHAI-235?

Greetz,

Ringo

(1) [http://tickets.opscode.com/browse/OHAI-235](http://tickets.opscode.com/browse/OHAI-235)

---

<div class="post-metadata">

**Author:** ![hedgehog](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/hedgehog/32/620_2.png) [@hedgehog](https://discourse.chef.io/u/hedgehog)\
**Post date:** [February 9, 2011, 8:00pm UTC](https://discourse.chef.io/t/chef-solo-explanation-for-attribute-hotspot-is-not-defined/1724/11 "2011-02-09T20:00:28Z")

</div>

On Thu, Feb 10, 2011 at 12:19 AM, Ringo De Smet [ringo.desmet@gmail.com](mailto:ringo.desmet@gmail.com) wrote:

> Hello,
> 
> On 9 February 2011 11:52, Seth Chisamore [schisamo@opscode.com](mailto:schisamo@opscode.com) wrote:
> 
> > Ohai!  
> > This is a known bug with the Java cookbook and was reported in COOK-447 [0].  
> > That ticket also contains a temporary fix towards the bottom. Ohai  
> > basically fails to extract the java/languages/hotspot attribute on certain  
> > platforms [1] (CentOS I'm looking at you). Use of the "hotspot" attribute  
> > was also fallback until languages/java/runtime [2] is properly extracted on  
> > all platforms.
> 
> Also added this as a comment to COOK-447:
> 
> For the original author: are you bitten by OHAI-235?

Yes I am. Thank you for the heads-up, I'll keep an eye out for Ohai 0.5.10

> Greetz,
> 
> Ringo
> 
> (1) [http://tickets.opscode.com/browse/OHAI-235](http://tickets.opscode.com/browse/OHAI-235)

--  
πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα  
[The fox knows many things, but the hedgehog knows one big thing.]  
Archilochus, Greek poet (c. 680 BC – c. 645 BC)  
[http://wiki.hedgehogshiatus.com](http://wiki.hedgehogshiatus.com)
