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


Chronological Thread 
  • From: Hedge Hog < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: chef (solo?) explanation for: Attribute hotspot is not defined
  • Date: Wed, 9 Feb 2011 22:05:33 +1100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=IJcR7pG9Jwp4w8BU7zNaVMI8bQXd1Fh/eI9M9ShxaNkYjTMtfsge5qUjshtZ4kncfP x/7H/aOnnEM7GB9wiTf/fxCiQxNROIiT5hS181ZBGVU1ssg95fKdpRLHELuEswxxBKeU 2o2gI4QZ+rILrzHJYVCWdnGfCvho14nWYtoAg=

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.

[0] http://tickets.opscode.com/browse/COOK-447
[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.

§