[chef] Re: Re: Re: Re: Re: Re: chef (solo?) explanation for: Attribute hotspot is not defined


Chronological Thread 
  • From: Seth Chisamore < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: chef (solo?) explanation for: Attribute hotspot is not defined
  • Date: Wed, 9 Feb 2011 06:20:30 -0500

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: " target="_blank">
Twitter, IRC, Github: schisamo



On Wed, Feb 9, 2011 at 6:05 AM, Hedge Hog < "> > wrote:
On Wed, Feb 9, 2011 at 9:52 PM, Seth Chisamore < "> > 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.
[1] https://gist.github.com/0dc10cc79df8a0219488
> Seth
> --
> Opscode, Inc.
> Seth Chisamore, Technical Evangelist
> T: (404) 348-0505 E: ">
> Twitter, IRC, Github: schisamo
> [0] http://tickets.opscode.com/browse/COOK-447
> [1] http://tickets.opscode.com/browse/OHAI-234
> [2] http://tickets.opscode.com/browse/OHAI-227
>
> On Wed, Feb 9, 2011 at 5:39 AM, Hedge Hog < "> > wrote:
>>
>> On Wed, Feb 9, 2011 at 9:23 PM, Andrew Shafer < "> >
>> 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 < "> >
>> > 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 < "> >
>> >> 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):
>> >> > https://gist.github.com/818165
>> >> >
>> >>
>> >> The more informative log output is:
>> >> https://gist.github.com/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:
>> >> > https://gist.github.com/818174
>> >> >
>> >> > While I don't think this is a Vagrant file issue, the Vagrantfile is:
>> >> > 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
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα
>> >> [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
>> >
>> >
>>
>>
>>
>> --
>> πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα
>> [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
>
>



--
πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα
[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




Archive powered by MHonArc 2.6.16.

§