- From: Hedge Hog <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: Re: Re: chef (solo?) explanation for: Attribute hotspot is not defined
- Date: Wed, 9 Feb 2011 22:22:35 +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=qKBAO1kNd5J3mH8JQJWcLbkVWyKqn8z/NHwQIX9KKm/VZajKoM0Zsti0QS2YhAL67a w27iZOCC86kut+UoJzF0UL4SqJDMS96nDNsBwMC9J0Ech2sLHih4pBrpq5lkiHuzfWK3 dQ+g5H2OFnFirqtnMI2cm3mS49Au14VPusWnw=
On Wed, Feb 9, 2011 at 10:20 PM, Seth Chisamore
<
>
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:
>
>
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.
>
>
>
> [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
>
>
--
πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα
[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.