- From: Hedge Hog <
>
- To:
- Subject: [chef] Re: Re: looks_like_ec2? fallback gist
- Date: Wed, 22 Feb 2012 07:32:46 +1100
- Authentication-results: mr.google.com; spf=pass (google.com: domain of
designates 10.220.115.133 as permitted sender)
; dkim=pass
On Wed, Feb 22, 2012 at 2:58 AM, Bryan McLellan
<
>
wrote:
>
On Tue, Feb 21, 2012 at 12:05 AM, Hedge Hog
>
<
>
>
wrote:
>
> Ohai `looks_like_ec2?` seems to be on the blink in version 0.6.10 on a
>
> tiny ec2 instance (if the detail helps/matters it was launched via a
>
> stack template).
>
>
>
> Below is the gist I've been resorting to that has proved robust in
>
> these situations (0.6.4 was another occasion):
>
>
>
> https://gist.github.com/1873800
>
>
I've been poking around that code as I've been discussing OHAI-310
>
[1]. How is it broken?
looks_like_ec2? returns false/nil when it should return true.
Given the moving target(s) your trying to hit I wonder if it isn't
better to just say that people have to target a cloud VM by setting
some attribute - it is not clear what that convention should be.
looks_like_ec? whould then become looks_cloudy?, check for that
attribute(s) and compose what information it can for that provider?
This would be quite a change in behavior, but maybe could be
implemented so that the attribute only need be set once, anywhere?
>
What happens?
As above. It don't see any exception.
>
Is there a bug for the issue
>
you're experiencing?
Possibly, apologies for this but I don't really hunt in opscode's bug
database too much anymore - from memory I do have an account (for a
different role) I could use. Simple reason is that, if you are
serious about participating in squashing a bug, it is too frustrating
to encounter this sort of thing[0], ironic that there is an example of
this in the bug you cite.
For the moment I find it suffices to google for people publishing
gists/workarounds - just like this :)
[0]:
http://tickets.opscode.com/browse/OHAI-310?focusedCommentId=21505&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-21505
>
>
Bryan
>
>
[1] http://tickets.opscode.com/browse/OHAI-310
--
πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα
[The fox knows many things, but the hedgehog knows one big thing.]
Archilochus, Greek poet (c. 680 BC – c. 645 BC)
http://hedgehogshiatus.com
Archive powered by MHonArc 2.6.16.