[chef] Re: Re: Ohai returning 'lxc'.


Chronological Thread 
  • From: Morgan Blackthorne < >
  • To: " " < >
  • Subject: [chef] Re: Re: Ohai returning 'lxc'.
  • Date: Wed, 18 Feb 2015 11:22:46 -0800

Ah, then I bet the "first run" symptom is probably a result of using something like omnibus_updater.

--
~*~ StormeRider ~*~

"Every world needs its heroes [...] They inspire us to be better than we are. And they protect from the darkness that's just around the corner."

(from Smallville Season 6x1: "Zod")

On why I hate the phrase "that's so lame"... http://bit.ly/Ps3uSS

On Wed, Feb 18, 2015 at 11:04 AM, Brian Hatfield < " target="_blank"> > wrote:
I actually JUST had this problem!

If you're using chef before 11.18.6 on Ubuntu > 12.04, upgrade chef - there's a guard since added to Ohai that fixes this issue.

Here's what the older version looks like: https://github.com/chef/ohai/blob/7.0.2/lib/ohai/plugins/linux/virtualization.rb#L130-L156

And here's the more recent fixed version: https://github.com/chef/ohai/blob/7.4.0/lib/ohai/plugins/linux/virtualization.rb#L153-L190

Brian

On Wed, Feb 18, 2015 at 1:27 PM, Douglas Garstang < " target="_blank"> > wrote:
This is mighty strange, and something I haven't seen before. With a recent cookbook, node[:virtualization][:system] as reported by ohai is coming up as 'lxc' on AWS EC2 instances when the chef-client first runs. It should be 'xen'.

However, when chef runs again, it returns 'xen', and every attempt I've made to look at it with ohai (even before the chef client starts) shows 'xen'.

What's up with that?

Doug







Archive powered by MHonArc 2.6.16.

§