Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I use "ohai.primary_nic" with Chef's Kitchen CI? #7

Open
Joseph-R opened this issue Feb 6, 2015 · 29 comments
Open

How do I use "ohai.primary_nic" with Chef's Kitchen CI? #7

Joseph-R opened this issue Feb 6, 2015 · 29 comments

Comments

@Joseph-R
Copy link

Joseph-R commented Feb 6, 2015

Hello!

How do I set up a primary nic which is not a private network, e.g. when using a bridge, using the primary_nic option when using Vagrant and Chef under Kitchen CI?

In other words, how best do I translate the Vagrantfile entry into the .kitchen.yml?
config.ohai.primary_nic = "eth1"

I've tried the following, neither of which work:

.kitchen.yml, under driver:


---
driver:
  name: vagrant
    config:
      ohai:
        primary_nic: "eth1"

From .kitchen.yml, under suites:

  - name: appserver
    driver:
      vm_hostname: appserver.local
      network:
      - ["private_network", {ip: "33.33.33.111"}]
      - ["forwarded_port", {guest: 2181, host: 2181}] # Service1
      - ["forwarded_port", {guest: 8020, host: 8020}] # Service2
      synced_folders:
      - ["~/folder", "create: true, type: :nfs"]
      customize:
        memory: 4096
        ohai:
          primary_nic: "eth1"

The use case is a set of local VMs, each of which have an internal IP on the 10.x.x.x range, and a private_network (psuedo public IP) on the 33.x.x.x range. Ideally I'd like to pull attributes for both out of Ohai. I'd appreciate any insight on how best to go about doing that.

Regards,
Joe Reid

@nukemberg
Copy link
Owner

looking at the kitchen-vagrant readme i think the solution is to use the vagrantfiles or vagrantfile_erb options

@alainchiasson
Copy link

@avishai-ish-shalom Did you get this working ? I have tried both ways vagrantfiles and vagrantfile_erb and neither has worked.

Any insight would be appreciated.

I inserted the lines in a local erb file. From the following kitchen.yml,

driver:
  name: vagrant
  vagrantfile_erb: "Vagrant_ohai.erb"
  customize:
    memory: 4096
  network:
    - ["public_network", bridge: "en4: USB Ethernet"]

Kitchen created the following vagrant file:

Vagrant.configure("2") do |c|
  c.berkshelf.enabled = false if Vagrant.has_plugin?("vagrant-berkshelf")
  c.vm.box = "opscode-ubuntu-14.04"
  c.ohai.enable = true
  c.ohai.primary_nic = "eth1"
  c.vm.box_url = "https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-14.04_chef-provisionerless.box"
  c.vm.hostname = "default-ubuntu-1404"
  c.vm.network(:public_network, {:bridge=>"en4: USB Ethernet"})
  c.vm.synced_folder ".", "/vagrant", disabled: true
  c.vm.provider :virtualbox do |p|
    p.customize ["modifyvm", :id, "--memory", "4096"]
  end
end

Here is the config from the machine :

...
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:e2:b2:5d brd ff:ff:ff:ff:ff:ff
    inet 172.27.100.105/24 brd 172.27.100.255 scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fee2:b25d/64 scope link
       valid_lft forever preferred_lft forever

And the resulting ohai command.

ohai ipaddress
[
  "10.0.2.15"
]

I also tried the vagrantfile directive to add :

driver:
  name: vagrant
  vagrantfiles:
   - Vagrant.ohai_nic.rb
  customize:
    memory: 4096
  network:
    - ["public_network", bridge: "en4: USB Ethernet"]

With the contents of Vagrant.ohai_nic.rb as

Vagrant.configure("2") do |c|
    c.ohai.enable = true
    c.ohai.primary_nic = "eth1"
end

Which give me the same result. The created Vagrant file is :

require "/Users/MyPath/Vagrant.ohai_nic.rb"
Vagrant.configure("2") do |c|
  c.berkshelf.enabled = false if Vagrant.has_plugin?("vagrant-berkshelf")
  c.vm.box = "opscode-ubuntu-14.04"
  c.vm.box_url = "https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-14.04_chef-provisionerless.box"
  c.vm.hostname = "default-ubuntu-1404"
  c.vm.network(:public_network, {:bridge=>"en4: USB Ethernet"})
  c.vm.synced_folder ".", "/vagrant", disabled: true
  c.vm.provider :virtualbox do |p|
    p.customize ["modifyvm", :id, "--memory", "4096"]
  end
end

I am using :
± |master S:13 U:2 ?:2 ✗| → chef --version
Chef Development Kit Version: 0.7.0
chef-client version: 12.4.1
berks version: 3.2.4
kitchen version: 1.4.2

chef exec vagrant plugin list
vagrant-ohai (0.1.12)
vagrant-share (1.1.4, system)

@nukemberg
Copy link
Owner

your config looks ok. can you ran in debug mode to see if the plugin is loading?

@alainchiasson
Copy link

Do you mean :

kitchen converge --log-level=debug

So I can become a little more self-sufficient - what am I looking for ? And I'm looking for the plugin loading pretty early in the run ? Right now - I'm not seeing anything obvious telling me the plugin is loaded (or any plugin). I'll redo a minimum cookbook and run it again.

@nukemberg
Copy link
Owner

it seems test-kitchen will not run vagrant with the vagrant --debug flag.
can you run vagrant directly using the generated vagrant files and --debug?

On Tue, Aug 25, 2015 at 11:08 PM alainchiasson [email protected]
wrote:

Do you mean :

kitchen converge --log-level=debug

So I can become a little more self-sufficient - what am I looking for ?
And I'm looking for the plugin loading pretty early in the run ? Right now

  • I'm not seeing anything obvious telling me the plugin is loaded (or any
    plugin). I'll redo a minimum cookbook and run it again.


Reply to this email directly or view it on GitHub
#7 (comment)
.

@alainchiasson
Copy link

Ok ... Here are some "parts"

Plugins seem to be there

INFO global: VAGRANT_LOG="debug"
 INFO global: Plugins:
 INFO global:   - bundler = 1.10.5
 INFO global:   - mime-types = 1.25.1
 INFO global:   - rest-client = 1.6.9
 INFO global:   - vagrant-ohai = 0.1.12
 INFO global:   - vagrant-share = 1.1.4

and loaded

DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/synced_folders/smb/plugin.rb
 INFO manager: Registered plugin: SMB synced folders
 INFO global: Loading plugins!
 INFO manager: Registered plugin: vagrant-share
 INFO manager: Registered plugin: vagrant-ohai
 INFO vagrant: `vagrant` invoked: ["up", "--debug"]
DEBUG vagrant: Creating Vagrant environment
 INFO environment: Environment initialized (#<Vagrant::Environment:0x000001022028f0>)
 INFO environment:   - cwd: /Users/achiass1/Documents/WorkProjects/MyProd/vagrant_ohai_test
 INFO environment: Home path: /Users/achiass1/.vagrant.d

2 Interfaces are being created on the VBox

==> default: Preparing network interfaces based on configuration...
 INFO interface: detail: Adapter 1: nat
 INFO interface: detail:     default: Adapter 1: nat
    default: Adapter 1: nat
 INFO interface: detail: Adapter 2: bridged
 INFO interface: detail:     default: Adapter 2: bridged
    default: Adapter 2: bridged
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "modifyvm", "f760258b-14f2-4cec-9e32-c78e51b8425a", "--nic1", "nat", "--nic2", "bridged", "--bridgeadapter2", "en4: USB Ethernet", "--cableconnected2", "on"]
DEBUG subprocess: Command not in installer, not touching env vars.
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
 INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::ForwardPorts:0x000001021929d8>
 INFO interface: output: Forwarding ports...
 INFO interface: output: ==> default: Forwarding ports...
==> default: Forwarding ports...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "f760258b-14f2-4cec-9e32-c78e51b8425a", "--machinereadable"]

Doing the DHCP discovery on eth1

==> default: Preparing network interfaces based on configuration...
 INFO interface: detail: Adapter 1: nat
 INFO interface: detail:     default: Adapter 1: nat
    default: Adapter 1: nat
 INFO interface: detail: Adapter 2: bridged
 INFO interface: detail:     default: Adapter 2: bridged
    default: Adapter 2: bridged
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "modifyvm", "f760258b-14f2-4cec-9e32-c78e51b8425a", "--nic1", "nat", "--nic2", "bridged", "--bridgeadapter2", "en4: USB Ethernet", "--cableconnected2", "on"]
DEBUG subprocess: Command not in installer, not touching env vars.
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
 INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::ForwardPorts:0x000001021929d8>
 INFO interface: output: Forwarding ports...
 INFO interface: output: ==> default: Forwarding ports...
==> default: Forwarding ports...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "f760258b-14f2-4cec-9e32-c78e51b8425a", "--machinereadable"]

and the installation of the OHAI plugins

DEBUG ssh: Re-using SSH connection.
 INFO ssh: Execute:  (sudo=false)
DEBUG ssh: Exit status: 0
 INFO interface: info: Installing Ohai plugin
 INFO interface: info: ==> default: Installing Ohai plugin
==> default: Installing Ohai plugin
DEBUG ssh: Re-using SSH connection.
 INFO ssh: Execute: mkdir -p /etc/chef/ohai_plugins (sudo=true)
DEBUG ssh: stderr: stdin: is not a tty

After that chef is installed and nothing else.

In /etc/chef/ohai_plugins, there are 2 files :

vagrant.json

{"box":"opscode-ubuntu-14.04","primary_nic":"eth1","private_ipv4":null}

vagrant.rb

Ohai.plugin(:VboxIpaddress) do

  def read_json(filename)
    if defined? FFI_Yajl::Parser
      FFI_Yajl::Parser.new.parse(IO.read(filename))
    else
      require 'json'
      JSON.parse(IO.read(filename))
    end
  end

  def lookup_address_by_nic(network, nic)
    if network['interfaces'][nic]
      network['interfaces'][nic]['addresses'].each do |ip, params|
        if params['family'] == ('inet')
          return [nic, ip]
        end
      end
    end
    return [nil, nil]
  end

  def lookup_address_by_ipaddress(network, ip)
    nic = network['interfaces'].find do |nic, nic_info|
      nic_info['addresses'].select {|addr, addr_info| addr_info['family'] == 'inet'}.keys.include?(ip)
    end
    if nic
      return [nic, ip]
    end
    return [nil, nil]
  end

  provides 'ipaddress'

  depends 'ipaddress'
  depends 'network'
  depends 'network/interfaces'
  depends 'virtualization/system'
  depends 'etc/passwd'

  collect_data(:default) do
  # Ohai hint
    unless File.exist?('/etc/chef/ohai_plugins/vagrant.json')
      Ohai::Log.fail('Ohai has not set :ipaddress (Missing vagrant.json)')
    else
      vagrant = read_json('/etc/chef/ohai_plugins/vagrant.json')

      # requested nit
      nic = vagrant['primary_nic']
      if etc['passwd'].keys.include?('vagrant') && virtualization['system'] == 'vbox'
        if nic
          nic, addr = lookup_address_by_nic(network, nic)
        elsif vagrant['private_ipv4']
          nic, addr = lookup_address_by_ipaddress(network, vagrant['private_ipv4'])
        else
          nic, addr = nil, nil
          Ohai::Log.info("Neither nic nor private_ipv4 are set, skipping")
        end
        if addr
          Ohai::Log.info("Ohai override :ipaddress to #{addr} from #{nic}")
          ipaddress addr
        end
      end
    end
  end
end

The following are the outputs:

ohai ipaddress

[
  "10.0.2.15"
]

ip addr

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:91:14:ca brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe91:14ca/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:dd:33:09 brd ff:ff:ff:ff:ff:ff
    inet 172.27.100.125/24 brd 172.27.100.255 scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fedd:3309/64 scope link
       valid_lft forever preferred_lft forever

Running ohai on debug :

ohai ipaddress -l debug

[2015-08-26T12:49:06+00:00] DEBUG: Parsing default via 10.0.2.2 dev eth0
[2015-08-26T12:49:06+00:00] DEBUG: Parsing 10.0.2.0/24 dev eth0  proto kernel  scope link  src 10.0.2.15
[2015-08-26T12:49:06+00:00] DEBUG: Parsing 172.27.100.0/24 dev eth1  proto kernel  scope link  src 172.27.100.125
[2015-08-26T12:49:06+00:00] DEBUG: default_interface set to eth0
[2015-08-26T12:49:06+00:00] DEBUG: default_gateway set to 10.0.2.2
[2015-08-26T12:49:06+00:00] DEBUG: Parsing fe80::/64 dev eth0  proto kernel  metric 256
[2015-08-26T12:49:06+00:00] DEBUG: Parsing fe80::/64 dev eth1  proto kernel  metric 256
[2015-08-26T12:49:06+00:00] DEBUG: Unable to determine default inet6 interface
[2015-08-26T12:49:06+00:00] DEBUG: [inet] Using default interface eth0 and default gateway 10.0.2.2 to set the default ip to 10.0.2.15
[2015-08-26T12:49:06+00:00] DEBUG: [inet6] no default interface, picking the first ipaddress
[
  "10.0.2.15"
]

Going through IRB on the node - and this is pretty new to me - I can't tell if it is loaded or not.

Do attache the log file to this ? or does it go somewhere else?

@nukemberg
Copy link
Owner

{"box":"opscode-ubuntu-14.04","primary_nic":"eth1","private_ipv4":null} - aha!
is the ipaddress for eth1 assigned by dhcp? can you send the output of ohai network ?

@alainchiasson
Copy link

Yes - it is via DHCP - I cannot just pick IP's. I need a bridged interface so that I can get external access to this machine. My ultimate goal is to get the "bridge ip" registered with a DNS.

vagrant@vagrant-ohai-test:~$ ohai network
{
  "interfaces": {
    "lo": {
      "mtu": "65536",
      "flags": [
        "LOOPBACK",
        "UP",
        "LOWER_UP"
      ],
      "encapsulation": "Loopback",
      "addresses": {
        "127.0.0.1": {
          "family": "inet",
          "prefixlen": "8",
          "netmask": "255.0.0.0",
          "scope": "Node"
        },
        "::1": {
          "family": "inet6",
          "prefixlen": "128",
          "scope": "Node"
        }
      },
      "state": "unknown"
    },
    "eth0": {
      "type": "eth",
      "number": "0",
      "mtu": "1500",
      "flags": [
        "BROADCAST",
        "MULTICAST",
        "UP",
        "LOWER_UP"
      ],
      "encapsulation": "Ethernet",
      "addresses": {
        "08:00:27:91:14:CA": {
          "family": "lladdr"
        },
        "10.0.2.15": {
          "family": "inet",
          "prefixlen": "24",
          "netmask": "255.255.255.0",
          "broadcast": "10.0.2.255",
          "scope": "Global"
        },
        "fe80::a00:27ff:fe91:14ca": {
          "family": "inet6",
          "prefixlen": "64",
          "scope": "Link"
        }
      },
      "state": "up",
      "arp": {
        "10.0.2.2": "52:54:00:12:35:02",
        "10.0.2.3": "52:54:00:12:35:03"
      },
      "routes": [
        {
          "destination": "default",
          "family": "inet",
          "via": "10.0.2.2"
        },
        {
          "destination": "10.0.2.0/24",
          "family": "inet",
          "scope": "link",
          "proto": "kernel",
          "src": "10.0.2.15"
        },
        {
          "destination": "fe80::/64",
          "family": "inet6",
          "metric": "256",
          "proto": "kernel"
        }
      ]
    },
    "eth1": {
      "type": "eth",
      "number": "1",
      "mtu": "1500",
      "flags": [
        "BROADCAST",
        "MULTICAST",
        "UP",
        "LOWER_UP"
      ],
      "encapsulation": "Ethernet",
      "addresses": {
        "08:00:27:EC:C1:1A": {
          "family": "lladdr"
        },
        "172.27.100.130": {
          "family": "inet",
          "prefixlen": "24",
          "netmask": "255.255.255.0",
          "broadcast": "172.27.100.255",
          "scope": "Global"
        },
        "fe80::a00:27ff:feec:c11a": {
          "family": "inet6",
          "prefixlen": "64",
          "scope": "Link"
        }
      },
      "state": "up",
      "routes": [
        {
          "destination": "172.27.100.0/24",
          "family": "inet",
          "scope": "link",
          "proto": "kernel",
          "src": "172.27.100.130"
        },
        {
          "destination": "fe80::/64",
          "family": "inet6",
          "metric": "256",
          "proto": "kernel"
        }
      ]
    }
  },
  "default_interface": "eth0",
  "default_gateway": "10.0.2.2"
}

NOTE I rebooted the VM ...so the IP has changed:

ohai ipaddress

[
  "10.0.2.15"
]

ip addr

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:91:14:ca brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe91:14ca/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:ec:c1:1a brd ff:ff:ff:ff:ff:ff
    inet 172.27.100.130/24 brd 172.27.100.255 scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:feec:c11a/64 scope link
       valid_lft forever preferred_lft forever

@nukemberg
Copy link
Owner

This is really strange. As far as I can see it should work. I now suspect the if etc['passwd'].keys.include?('vagrant') && virtualization['system'] == 'vbox' line. Can you copy paste the output of ohai etc and ohai virtualization ?

@alainchiasson
Copy link

I was reading through Customizing Chef (yeah - that new) and thought I would see inside :

root@vagrant-ohai-test:~# /opt/chef/embedded/bin/irb

irb(main):001:0> require 'ohai'
=> true

irb(main):002:0> o = Ohai::System.new
=> #<Ohai::System:0x00000001b01980 @plugin_path="", @data={}, @provides_map=#<Ohai::ProvidesMap:0x00000001b018e0 @map={}>, @v6_dependency_solver={}, @loader=#<Ohai::Loader:0x00000001b01840 @controller=#<Ohai::System:0x00000001b01980 ...>, @v6_plugin_classes=[], @v7_plugin_classes=[]>, @runner=#<Ohai::Runner:0x00000001b017c8 @provides_map=#<Ohai::ProvidesMap:0x00000001b018e0 @map={}>, @safe_run=true>>

irb(main):003:0> o.all_plugins.each { |plugin| puts plugin.name }; nil
Rust
Groovy
Perl
Powershell
Lua
Ruby
Mono
C
Java
Nodejs
Languages
PHP
Go
Erlang
Python
Elixir
Joyent
Virtualization
VirtualizationInfo
PS
Command
RootGroup
NetworkListeners
Network
NetworkRoutes
Platform
NetworkAddresses
CPU
Memory
Filesystem
SSHHostKey
Keys
Uptime
OhaiTime
Mdadm
LSB
BlockDevice
DMI
IpScopes
Hostname
DigitalOcean
Ohai
Chef
GCE
Passwd
EC2
CloudV2
Drivers
Kernel
Azure
Linode
Rackspace
Cloud
Openstack
SystemProfile
Eucalyptus
OS
InitPackage
Zpools
=> nil

irb(main):004:0> Ohai::Config[:plugin_path]
=> ["/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins"]

irb(main):005:0> Ohai::Config[:plugin_path] << '/etc/chef/ohai_plugins'

=> ["/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins", "/etc/chef/ohai_plugins"]

irb(main):006:0> o.all_plugins.each { |plugin| puts plugin.name }; nil

/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/network.rb:57: warning: already initialized constant ETHERNET_ENCAPS
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/network.rb:57: warning: previous definition of ETHERNET_ENCAPS was here
Rust
Groovy
Perl
Powershell
Lua
Ruby

Mono
C
Java
Nodejs
Languages
PHP
Go
Erlang
Python
Elixir
Joyent
Virtualization
VirtualizationInfo
PS
Command
RootGroup
NetworkListeners
Network
NetworkRoutes
Platform
NetworkAddresses
VboxIpaddress
CPU
Memory
Filesystem
SSHHostKey
Keys
Uptime
OhaiTime
Mdadm
LSB
BlockDevice
DMI
IpScopes
Hostname
DigitalOcean
Ohai
Chef
GCE
Passwd
EC2
CloudV2
Drivers
Kernel
Azure
Linode
Rackspace
Cloud
Openstack
SystemProfile
Eucalyptus
OS
InitPackage
Zpools
=> nil

Though I don't see differences.

@alainchiasson
Copy link

root@vagrant-ohai-test:~# ohai virtualization
{
  "systems": {
    "vbox": "guest"
  },
  "system": "vbox",
  "role": "guest"
}

@alainchiasson
Copy link

root@vagrant-ohai-test:~# ohai etc
{
  "passwd": {
    "root": {
      "dir": "/root",
      "gid": 0,
      "uid": 0,
      "shell": "/bin/bash",
      "gecos": "root"
    },
    "daemon": {
      "dir": "/usr/sbin",
      "gid": 1,
      "uid": 1,
      "shell": "/usr/sbin/nologin",
      "gecos": "daemon"
    },
    "bin": {
      "dir": "/bin",
      "gid": 2,
      "uid": 2,
      "shell": "/usr/sbin/nologin",
      "gecos": "bin"
    },
    "sys": {
      "dir": "/dev",
      "gid": 3,
      "uid": 3,
      "shell": "/usr/sbin/nologin",
      "gecos": "sys"
    },
    "sync": {
      "dir": "/bin",
      "gid": 65534,
      "uid": 4,
      "shell": "/bin/sync",
      "gecos": "sync"
    },
    "games": {
      "dir": "/usr/games",
      "gid": 60,
      "uid": 5,
      "shell": "/usr/sbin/nologin",
      "gecos": "games"
    },
    "man": {
      "dir": "/var/cache/man",
      "gid": 12,
      "uid": 6,
      "shell": "/usr/sbin/nologin",
      "gecos": "man"
    },
    "lp": {
      "dir": "/var/spool/lpd",
      "gid": 7,
      "uid": 7,
      "shell": "/usr/sbin/nologin",
      "gecos": "lp"
    },
    "mail": {
      "dir": "/var/mail",
      "gid": 8,
      "uid": 8,
      "shell": "/usr/sbin/nologin",
      "gecos": "mail"
    },
    "news": {
      "dir": "/var/spool/news",
      "gid": 9,
      "uid": 9,
      "shell": "/usr/sbin/nologin",
      "gecos": "news"
    },
    "uucp": {
      "dir": "/var/spool/uucp",
      "gid": 10,
      "uid": 10,
      "shell": "/usr/sbin/nologin",
      "gecos": "uucp"
    },
    "proxy": {
      "dir": "/bin",
      "gid": 13,
      "uid": 13,
      "shell": "/usr/sbin/nologin",
      "gecos": "proxy"
    },
    "www-data": {
      "dir": "/var/www",
      "gid": 33,
      "uid": 33,
      "shell": "/usr/sbin/nologin",
      "gecos": "www-data"
    },
    "backup": {
      "dir": "/var/backups",
      "gid": 34,
      "uid": 34,
      "shell": "/usr/sbin/nologin",
      "gecos": "backup"
    },
    "list": {
      "dir": "/var/list",
      "gid": 38,
      "uid": 38,
      "shell": "/usr/sbin/nologin",
      "gecos": "Mailing List Manager"
    },
    "irc": {
      "dir": "/var/run/ircd",
      "gid": 39,
      "uid": 39,
      "shell": "/usr/sbin/nologin",
      "gecos": "ircd"
    },
    "gnats": {
      "dir": "/var/lib/gnats",
      "gid": 41,
      "uid": 41,
      "shell": "/usr/sbin/nologin",
      "gecos": "Gnats Bug-Reporting System (admin)"
    },
    "nobody": {
      "dir": "/nonexistent",
      "gid": 65534,
      "uid": 65534,
      "shell": "/usr/sbin/nologin",
      "gecos": "nobody"
    },
    "libuuid": {
      "dir": "/var/lib/libuuid",
      "gid": 101,
      "uid": 100,
      "shell": "",
      "gecos": ""
    },
    "syslog": {
      "dir": "/home/syslog",
      "gid": 104,
      "uid": 101,
      "shell": "/bin/false",
      "gecos": ""
    },
    "messagebus": {
      "dir": "/var/run/dbus",
      "gid": 106,
      "uid": 102,
      "shell": "/bin/false",
      "gecos": ""
    },
    "sshd": {
      "dir": "/var/run/sshd",
      "gid": 65534,
      "uid": 103,
      "shell": "/usr/sbin/nologin",
      "gecos": ""
    },
    "statd": {
      "dir": "/var/lib/nfs",
      "gid": 65534,
      "uid": 104,
      "shell": "/bin/false",
      "gecos": ""
    },
    "vagrant": {
      "dir": "/home/vagrant",
      "gid": 900,
      "uid": 900,
      "shell": "/bin/bash",
      "gecos": "vagrant,,,"
    },
    "vboxadd": {
      "dir": "/var/run/vboxadd",
      "gid": 1,
      "uid": 999,
      "shell": "/bin/false",
      "gecos": ""
    }
  },
  "group": {
    "root": {
      "gid": 0,
      "members": [

      ]
    },
    "daemon": {
      "gid": 1,
      "members": [

      ]
    },
    "bin": {
      "gid": 2,
      "members": [

      ]
    },
    "sys": {
      "gid": 3,
      "members": [

      ]
    },
    "adm": {
      "gid": 4,
      "members": [
        "syslog",
        "vagrant"
      ]
    },
    "tty": {
      "gid": 5,
      "members": [

      ]
    },
    "disk": {
      "gid": 6,
      "members": [

      ]
    },
    "lp": {
      "gid": 7,
      "members": [

      ]
    },
    "mail": {
      "gid": 8,
      "members": [

      ]
    },
    "news": {
      "gid": 9,
      "members": [

      ]
    },
    "uucp": {
      "gid": 10,
      "members": [

      ]
    },
    "man": {
      "gid": 12,
      "members": [

      ]
    },
    "proxy": {
      "gid": 13,
      "members": [

      ]
    },
    "kmem": {
      "gid": 15,
      "members": [

      ]
    },
    "dialout": {
      "gid": 20,
      "members": [

      ]
    },
    "fax": {
      "gid": 21,
      "members": [

      ]
    },
    "voice": {
      "gid": 22,
      "members": [

      ]
    },
    "cdrom": {
      "gid": 24,
      "members": [
        "vagrant"
      ]
    },
    "floppy": {
      "gid": 25,
      "members": [

      ]
    },
    "tape": {
      "gid": 26,
      "members": [

      ]
    },
    "sudo": {
      "gid": 27,
      "members": [
        "vagrant"
      ]
    },
    "audio": {
      "gid": 29,
      "members": [

      ]
    },
    "dip": {
      "gid": 30,
      "members": [
        "vagrant"
      ]
    },
    "www-data": {
      "gid": 33,
      "members": [

      ]
    },
    "backup": {
      "gid": 34,
      "members": [

      ]
    },
    "operator": {
      "gid": 37,
      "members": [

      ]
    },
    "list": {
      "gid": 38,
      "members": [

      ]
    },
    "irc": {
      "gid": 39,
      "members": [

      ]
    },
    "src": {
      "gid": 40,
      "members": [

      ]
    },
    "gnats": {
      "gid": 41,
      "members": [

      ]
    },
    "shadow": {
      "gid": 42,
      "members": [

      ]
    },
    "utmp": {
      "gid": 43,
      "members": [

      ]
    },
    "video": {
      "gid": 44,
      "members": [

      ]
    },
    "sasl": {
      "gid": 45,
      "members": [

      ]
    },
    "plugdev": {
      "gid": 46,
      "members": [
        "vagrant"
      ]
    },
    "staff": {
      "gid": 50,
      "members": [

      ]
    },
    "games": {
      "gid": 60,
      "members": [

      ]
    },
    "users": {
      "gid": 100,
      "members": [

      ]
    },
    "nogroup": {
      "gid": 65534,
      "members": [

      ]
    },
    "libuuid": {
      "gid": 101,
      "members": [

      ]
    },
    "netdev": {
      "gid": 102,
      "members": [

      ]
    },
    "crontab": {
      "gid": 103,
      "members": [

      ]
    },
    "syslog": {
      "gid": 104,
      "members": [

      ]
    },
    "fuse": {
      "gid": 105,
      "members": [

      ]
    },
    "messagebus": {
      "gid": 106,
      "members": [

      ]
    },
    "mlocate": {
      "gid": 107,
      "members": [

      ]
    },
    "ssh": {
      "gid": 108,
      "members": [

      ]
    },
    "vagrant": {
      "gid": 900,
      "members": [

      ]
    },
    "lpadmin": {
      "gid": 109,
      "members": [
        "vagrant"
      ]
    },
    "sambashare": {
      "gid": 110,
      "members": [
        "vagrant"
      ]
    },
    "vboxsf": {
      "gid": 999,
      "members": [

      ]
    }
  }
}

@nukemberg
Copy link
Owner

This has been a great help. Can you provide the output of ohai -d /etc/chef/ohai_plugins -l debug ?

@alainchiasson
Copy link

I tried dragging it in ...

[2015-08-26T18:46:22+00:00] DEBUG: Plugin Rust threw #<Errno::ENOENT: No such file or directory - rustc>
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `exec'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `block in fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:93:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout.rb:259:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/mixin/command.rb:33:in `shell_out'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/rust.rb:25:in `block (2 levels) in <main>'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `instance_eval'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:98:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:169:in `safe_run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:82:in `run_v7_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:43:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:94:in `block in run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `each'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:71:in `all_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:90:in `run_application'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:70:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/bin/ohai:42:in `<top (required)>'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `load'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `<main>'
[2015-08-26T18:46:22+00:00] DEBUG: Plugin Groovy threw #<Errno::ENOENT: No such file or directory - groovy>
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `exec'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `block in fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:93:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout.rb:259:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/mixin/command.rb:33:in `shell_out'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/groovy.rb:29:in `block (2 levels) in <main>'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `instance_eval'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:98:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:169:in `safe_run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:82:in `run_v7_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:43:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:94:in `block in run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `each'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:71:in `all_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:90:in `run_application'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:70:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/bin/ohai:42:in `<top (required)>'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `load'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `<main>'
[2015-08-26T18:46:22+00:00] DEBUG: No data to collect for plugin Powershell. Continuing...
[2015-08-26T18:46:22+00:00] DEBUG: Plugin Lua threw #<Errno::ENOENT: No such file or directory - lua>
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `exec'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `block in fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:93:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout.rb:259:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/mixin/command.rb:33:in `shell_out'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/lua.rb:29:in `block (2 levels) in <main>'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `instance_eval'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:98:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:169:in `safe_run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:82:in `run_v7_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:43:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:94:in `block in run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `each'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:71:in `all_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:90:in `run_application'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:70:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/bin/ohai:42:in `<top (required)>'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `load'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `<main>'
[2015-08-26T18:46:22+00:00] DEBUG: Plugin Ruby threw #<TypeError: no implicit conversion of nil into String>
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/ruby.rb:70:in `join'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/ruby.rb:70:in `block (3 levels) in <main>'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/ruby.rb:70:in `map'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/ruby.rb:70:in `block (2 levels) in <main>'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `instance_eval'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:98:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:169:in `safe_run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:82:in `run_v7_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:43:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:94:in `block in run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `each'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:71:in `all_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:90:in `run_application'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:70:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/bin/ohai:42:in `<top (required)>'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `load'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `<main>'
[2015-08-26T18:46:22+00:00] DEBUG: Plugin Mono threw #<Errno::ENOENT: No such file or directory - mono>
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `exec'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `block in fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:93:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout.rb:259:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/mixin/command.rb:33:in `shell_out'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/mono.rb:29:in `block (2 levels) in <main>'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `instance_eval'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:98:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:169:in `safe_run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:82:in `run_v7_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:43:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:94:in `block in run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `each'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:71:in `all_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:90:in `run_application'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:70:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/bin/ohai:42:in `<top (required)>'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `load'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `<main>'
[2015-08-26T18:46:22+00:00] DEBUG: Plugin Java threw #<Errno::ENOENT: No such file or directory - java>
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `exec'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `block in fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:93:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout.rb:259:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/mixin/command.rb:33:in `shell_out'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/java.rb:25:in `get_java_info'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/java.rb:68:in `block (2 levels) in <main>'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `instance_eval'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:98:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:169:in `safe_run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:82:in `run_v7_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:43:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:94:in `block in run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `each'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:71:in `all_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:90:in `run_application'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:70:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/bin/ohai:42:in `<top (required)>'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `load'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `<main>'
[2015-08-26T18:46:22+00:00] DEBUG: Plugin Nodejs threw #<Errno::ENOENT: No such file or directory - node>
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `exec'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `block in fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:93:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout.rb:259:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/mixin/command.rb:33:in `shell_out'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/nodejs.rb:29:in `block (2 levels) in <main>'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `instance_eval'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:98:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:169:in `safe_run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:82:in `run_v7_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:43:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:94:in `block in run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `each'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:71:in `all_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:90:in `run_application'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:70:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/bin/ohai:42:in `<top (required)>'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `load'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `<main>'
[2015-08-26T18:46:22+00:00] DEBUG: Plugin PHP threw #<Errno::ENOENT: No such file or directory - php>
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `exec'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `block in fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:93:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout.rb:259:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/mixin/command.rb:33:in `shell_out'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/php.rb:29:in `block (2 levels) in <main>'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `instance_eval'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:98:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:169:in `safe_run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:82:in `run_v7_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:43:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:94:in `block in run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `each'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:71:in `all_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:90:in `run_application'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:70:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/bin/ohai:42:in `<top (required)>'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `load'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `<main>'
[2015-08-26T18:46:22+00:00] DEBUG: Plugin Go threw #<Errno::ENOENT: No such file or directory - go>
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `exec'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `block in fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:93:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout.rb:259:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/mixin/command.rb:33:in `shell_out'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/go.rb:23:in `block (2 levels) in <main>'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `instance_eval'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:98:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:169:in `safe_run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:82:in `run_v7_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:43:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:94:in `block in run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `each'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:71:in `all_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:90:in `run_application'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:70:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/bin/ohai:42:in `<top (required)>'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `load'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `<main>'
[2015-08-26T18:46:22+00:00] DEBUG: Plugin Erlang threw #<Errno::ENOENT: No such file or directory - erl>
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `exec'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `block in fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:93:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout.rb:259:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/mixin/command.rb:33:in `shell_out'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/erlang.rb:28:in `block (2 levels) in <main>'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `instance_eval'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:98:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:169:in `safe_run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:82:in `run_v7_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:43:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:94:in `block in run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `each'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:71:in `all_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:90:in `run_application'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:70:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/bin/ohai:42:in `<top (required)>'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `load'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `<main>'
[2015-08-26T18:46:22+00:00] DEBUG: Plugin Elixir threw #<Errno::ENOENT: No such file or directory - elixir>
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `exec'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:338:in `block in fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:316:in `fork_subprocess'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout/unix.rb:93:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.1.0/lib/mixlib/shellout.rb:259:in `run_command'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/mixin/command.rb:33:in `shell_out'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/elixir.rb:25:in `block (2 levels) in <main>'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `instance_eval'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:98:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:169:in `safe_run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:82:in `run_v7_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:43:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:94:in `block in run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `each'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:71:in `all_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:90:in `run_application'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:70:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/bin/ohai:42:in `<top (required)>'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `load'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `<main>'
[2015-08-26T18:46:22+00:00] DEBUG: Parsing default via 10.0.2.2 dev eth0
[2015-08-26T18:46:22+00:00] DEBUG: Parsing 10.0.2.0/24 dev eth0  proto kernel  scope link  src 10.0.2.15
[2015-08-26T18:46:22+00:00] DEBUG: Parsing 172.27.100.0/24 dev eth1  proto kernel  scope link  src 172.27.100.130
[2015-08-26T18:46:22+00:00] DEBUG: default_interface set to eth0
[2015-08-26T18:46:22+00:00] DEBUG: default_gateway set to 10.0.2.2
[2015-08-26T18:46:22+00:00] DEBUG: Parsing fe80::/64 dev eth0  proto kernel  metric 256
[2015-08-26T18:46:22+00:00] DEBUG: Parsing fe80::/64 dev eth1  proto kernel  metric 256
[2015-08-26T18:46:22+00:00] DEBUG: Unable to determine default inet6 interface
[2015-08-26T18:46:22+00:00] DEBUG: Plugin NetworkListeners threw exception #<LoadError: cannot load such file -- sigar> /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/opt/chef/embedded/apps/ohai/lib/ohai/plugins/network_listeners.rb:25:in `block (2 levels) in <main>'
/opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `instance_eval'
/opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `run_plugin'
/opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:98:in `run'
/opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:169:in `safe_run'
/opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:82:in `run_v7_plugin'
/opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:43:in `run_plugin'
/opt/chef/embedded/apps/ohai/lib/ohai/system.rb:94:in `block in run_plugins'
/opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `each'
/opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `run_plugins'
/opt/chef/embedded/apps/ohai/lib/ohai/system.rb:71:in `all_plugins'
/opt/chef/embedded/apps/ohai/lib/ohai/application.rb:90:in `run_application'
/opt/chef/embedded/apps/ohai/lib/ohai/application.rb:70:in `run'
/opt/chef/embedded/apps/ohai/bin/ohai:42:in `<top (required)>'
/usr/bin/ohai:22:in `load'
/usr/bin/ohai:22:in `<main>'
[2015-08-26T18:46:22+00:00] DEBUG: Plugin NetworkRoutes threw exception #<LoadError: cannot load such file -- sigar> /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/opt/chef/embedded/apps/ohai/lib/ohai/plugins/sigar/network_route.rb:42:in `block (2 levels) in <main>'
/opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `instance_eval'
/opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `run_plugin'
/opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:98:in `run'
/opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:169:in `safe_run'
/opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:82:in `run_v7_plugin'
/opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:43:in `run_plugin'
/opt/chef/embedded/apps/ohai/lib/ohai/system.rb:94:in `block in run_plugins'
/opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `each'
/opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `run_plugins'
/opt/chef/embedded/apps/ohai/lib/ohai/system.rb:71:in `all_plugins'
/opt/chef/embedded/apps/ohai/lib/ohai/application.rb:90:in `run_application'
/opt/chef/embedded/apps/ohai/lib/ohai/application.rb:70:in `run'
/opt/chef/embedded/apps/ohai/bin/ohai:42:in `<top (required)>'
/usr/bin/ohai:22:in `load'
/usr/bin/ohai:22:in `<main>'
[2015-08-26T18:46:22+00:00] DEBUG: [inet] Using default interface eth0 and default gateway 10.0.2.2 to set the default ip to 10.0.2.15
[2015-08-26T18:46:22+00:00] DEBUG: [inet6] no default interface, picking the first ipaddress
[2015-08-26T18:46:22+00:00] INFO: Ohai override :ipaddress to 172.27.100.130 from eth1
[2015-08-26T18:46:22+00:00] DEBUG: unexpected data line found before header; discarding:
Inactive

[2015-08-26T18:46:22+00:00] DEBUG: unexpected data line found before header; discarding:
Inactive

[2015-08-26T18:46:22+00:00] DEBUG: unexpected data line found before header; discarding:
Inactive

[2015-08-26T18:46:22+00:00] DEBUG: unexpected data line found before header; discarding:
OEM-specific Type

[2015-08-26T18:46:22+00:00] DEBUG: unexpected data line found before header; discarding:
    Header and Data:

[2015-08-26T18:46:22+00:00] DEBUG: unexpected extended data line found before header; discarding:
        80 08 08 00 89 B5 27 00

[2015-08-26T18:46:22+00:00] DEBUG: unexpected data line found before header; discarding:
End Of Table

[2015-08-26T18:46:22+00:00] DEBUG: ip_scopes: cannot load gem, plugin disabled: cannot load such file -- ipaddr_extensions
[2015-08-26T18:46:22+00:00] DEBUG: No hints present for digital_ocean.
[2015-08-26T18:46:22+00:00] DEBUG: Plugin GCE threw #<SocketError: getaddrinfo: Name or service not known>
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/mixin/gce_metadata.rb:30:in `pack_sockaddr_in'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/mixin/gce_metadata.rb:30:in `can_metadata_connect?'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/gce.rb:30:in `has_gce_metadata?'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/gce.rb:39:in `looks_like_gce?'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/gce.rb:43:in `block (2 levels) in <main>'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `instance_eval'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:98:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:169:in `safe_run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:82:in `run_v7_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:43:in `run_plugin'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:94:in `block in run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `each'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `run_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:71:in `all_plugins'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:90:in `run_application'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:70:in `run'
[2015-08-26T18:46:22+00:00] DEBUG: /opt/chef/embedded/apps/ohai/bin/ohai:42:in `<top (required)>'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `load'
[2015-08-26T18:46:22+00:00] DEBUG: /usr/bin/ohai:22:in `<main>'
[2015-08-26T18:46:22+00:00] DEBUG: has_ec2_mac? == false
[2015-08-26T18:46:22+00:00] DEBUG: looks_like_ec2? == false
[2015-08-26T18:46:22+00:00] DEBUG: has_euca_mac? == false
[2015-08-26T18:46:22+00:00] DEBUG: has_euca_mac? == false
[2015-08-26T18:46:22+00:00] DEBUG: has_euca_mac? == false
[2015-08-26T18:46:22+00:00] DEBUG: has_euca_mac? == false
[2015-08-26T18:46:22+00:00] DEBUG: looks_like_euca? == false
[2015-08-26T18:46:22+00:00] DEBUG: NOT ohai openstack
[2015-08-26T18:46:22+00:00] DEBUG: No hints present for azure.
[2015-08-26T18:46:22+00:00] DEBUG: No data to collect for plugin Drivers. Continuing...
[2015-08-26T18:46:22+00:00] DEBUG: No data to collect for plugin SystemProfile. Continuing...
[2015-08-26T18:46:22+00:00] DEBUG: No data to collect for plugin Zpools. Continuing...
{
  "languages": {
    "perl": {
      "version": "5.18.2",
      "archname": "x86_64-linux-gnu-thread-multi"
    },
    "ruby": {

    },
    "python": {
      "version": "2.7.6",
      "builddate": "Mar 22 2014, 22:59:56"
    }
  },
  "kernel": {
    "name": "Linux",
    "release": "3.13.0-24-generic",
    "version": "#47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014",
    "machine": "x86_64",
    "os": "GNU/Linux",
    "modules": {
      "vboxsf": {
        "size": "43786",
        "refcount": "1"
      },
      "dm_crypt": {
        "size": "23177",
        "refcount": "0"
      },
      "ppdev": {
        "size": "17671",
        "refcount": "0"
      },
      "vboxvideo": {
        "size": "12658",
        "refcount": "0"
      },
      "drm": {
        "size": "302817",
        "refcount": "1"
      },
      "serio_raw": {
        "size": "13462",
        "refcount": "0"
      },
      "nfsd": {
        "size": "280297",
        "refcount": "2"
      },
      "auth_rpcgss": {
        "size": "59338",
        "refcount": "1"
      },
      "nfs_acl": {
        "size": "12837",
        "refcount": "1"
      },
      "nfs": {
        "size": "236636",
        "refcount": "0"
      },
      "i2c_piix4": {
        "size": "22155",
        "refcount": "0"
      },
      "lockd": {
        "size": "93977",
        "refcount": "2"
      },
      "sunrpc": {
        "size": "284404",
        "refcount": "6"
      },
      "fscache": {
        "size": "63988",
        "refcount": "1"
      },
      "vboxguest": {
        "size": "248675",
        "refcount": "2"
      },
      "parport_pc": {
        "size": "32701",
        "refcount": "0"
      },
      "mac_hid": {
        "size": "13205",
        "refcount": "0"
      },
      "lp": {
        "size": "17759",
        "refcount": "0"
      },
      "parport": {
        "size": "42348",
        "refcount": "3"
      },
      "psmouse": {
        "size": "102222",
        "refcount": "0"
      },
      "e1000": {
        "size": "145174",
        "refcount": "0"
      },
      "video": {
        "size": "19476",
        "refcount": "0"
      }
    }
  },
  "os": "linux",
  "os_version": "3.13.0-24-generic",
  "lsb": {
    "id": "Ubuntu",
    "release": "14.04",
    "codename": "trusty",
    "description": "Ubuntu 14.04.1 LTS"
  },
  "platform": "ubuntu",
  "platform_version": "14.04",
  "platform_family": "debian",
  "virtualization": {
    "systems": {
      "vbox": "guest"
    },
    "system": "vbox",
    "role": "guest"
  },
  "command": {
    "ps": "ps -ef"
  },
  "root_group": "root",
  "network": {
    "interfaces": {
      "lo": {
        "mtu": "65536",
        "flags": [
          "LOOPBACK",
          "UP",
          "LOWER_UP"
        ],
        "encapsulation": "Loopback",
        "addresses": {
          "127.0.0.1": {
            "family": "inet",
            "prefixlen": "8",
            "netmask": "255.0.0.0",
            "scope": "Node"
          },
          "::1": {
            "family": "inet6",
            "prefixlen": "128",
            "scope": "Node"
          }
        },
        "state": "unknown"
      },
      "eth0": {
        "type": "eth",
        "number": "0",
        "mtu": "1500",
        "flags": [
          "BROADCAST",
          "MULTICAST",
          "UP",
          "LOWER_UP"
        ],
        "encapsulation": "Ethernet",
        "addresses": {
          "08:00:27:91:14:CA": {
            "family": "lladdr"
          },
          "10.0.2.15": {
            "family": "inet",
            "prefixlen": "24",
            "netmask": "255.255.255.0",
            "broadcast": "10.0.2.255",
            "scope": "Global"
          },
          "fe80::a00:27ff:fe91:14ca": {
            "family": "inet6",
            "prefixlen": "64",
            "scope": "Link"
          }
        },
        "state": "up",
        "arp": {
          "10.0.2.2": "52:54:00:12:35:02",
          "10.0.2.3": "52:54:00:12:35:03"
        },
        "routes": [
          {
            "destination": "default",
            "family": "inet",
            "via": "10.0.2.2"
          },
          {
            "destination": "10.0.2.0/24",
            "family": "inet",
            "scope": "link",
            "proto": "kernel",
            "src": "10.0.2.15"
          },
          {
            "destination": "fe80::/64",
            "family": "inet6",
            "metric": "256",
            "proto": "kernel"
          }
        ]
      },
      "eth1": {
        "type": "eth",
        "number": "1",
        "mtu": "1500",
        "flags": [
          "BROADCAST",
          "MULTICAST",
          "UP",
          "LOWER_UP"
        ],
        "encapsulation": "Ethernet",
        "addresses": {
          "08:00:27:EC:C1:1A": {
            "family": "lladdr"
          },
          "172.27.100.130": {
            "family": "inet",
            "prefixlen": "24",
            "netmask": "255.255.255.0",
            "broadcast": "172.27.100.255",
            "scope": "Global"
          },
          "fe80::a00:27ff:feec:c11a": {
            "family": "inet6",
            "prefixlen": "64",
            "scope": "Link"
          }
        },
        "state": "up",
        "routes": [
          {
            "destination": "172.27.100.0/24",
            "family": "inet",
            "scope": "link",
            "proto": "kernel",
            "src": "172.27.100.130"
          },
          {
            "destination": "fe80::/64",
            "family": "inet6",
            "metric": "256",
            "proto": "kernel"
          }
        ]
      }
    },
    "default_interface": "eth0",
    "default_gateway": "10.0.2.2"
  },
  "counters": {
    "network": {
      "interfaces": {
        "lo": {
          "rx": {
            "bytes": "1528",
            "packets": "20",
            "errors": "0",
            "drop": "0",
            "overrun": "0"
          },
          "tx": {
            "bytes": "1528",
            "packets": "20",
            "errors": "0",
            "drop": "0",
            "carrier": "0",
            "collisions": "0"
          }
        },
        "eth0": {
          "tx": {
            "queuelen": "1000",
            "bytes": "2265869",
            "packets": "31110",
            "errors": "0",
            "drop": "0",
            "carrier": "0",
            "collisions": "0"
          },
          "rx": {
            "bytes": "49585252",
            "packets": "65327",
            "errors": "0",
            "drop": "0",
            "overrun": "0"
          }
        },
        "eth1": {
          "tx": {
            "queuelen": "1000",
            "bytes": "1674",
            "packets": "11",
            "errors": "0",
            "drop": "0",
            "carrier": "0",
            "collisions": "0"
          },
          "rx": {
            "bytes": "4797774",
            "packets": "49151",
            "errors": "0",
            "drop": "0",
            "overrun": "0"
          }
        }
      }
    }
  },
  "ipaddress": "172.27.100.130",
  "macaddress": "08:00:27:91:14:CA",
  "ip6address": "fe80::a00:27ff:fe91:14ca",
  "etc": {
    "passwd": {
      "root": {
        "dir": "/root",
        "gid": 0,
        "uid": 0,
        "shell": "/bin/bash",
        "gecos": "root"
      },
      "daemon": {
        "dir": "/usr/sbin",
        "gid": 1,
        "uid": 1,
        "shell": "/usr/sbin/nologin",
        "gecos": "daemon"
      },
      "bin": {
        "dir": "/bin",
        "gid": 2,
        "uid": 2,
        "shell": "/usr/sbin/nologin",
        "gecos": "bin"
      },
      "sys": {
        "dir": "/dev",
        "gid": 3,
        "uid": 3,
        "shell": "/usr/sbin/nologin",
        "gecos": "sys"
      },
      "sync": {
        "dir": "/bin",
        "gid": 65534,
        "uid": 4,
        "shell": "/bin/sync",
        "gecos": "sync"
      },
      "games": {
        "dir": "/usr/games",
        "gid": 60,
        "uid": 5,
        "shell": "/usr/sbin/nologin",
        "gecos": "games"
      },
      "man": {
        "dir": "/var/cache/man",
        "gid": 12,
        "uid": 6,
        "shell": "/usr/sbin/nologin",
        "gecos": "man"
      },
      "lp": {
        "dir": "/var/spool/lpd",
        "gid": 7,
        "uid": 7,
        "shell": "/usr/sbin/nologin",
        "gecos": "lp"
      },
      "mail": {
        "dir": "/var/mail",
        "gid": 8,
        "uid": 8,
        "shell": "/usr/sbin/nologin",
        "gecos": "mail"
      },
      "news": {
        "dir": "/var/spool/news",
        "gid": 9,
        "uid": 9,
        "shell": "/usr/sbin/nologin",
        "gecos": "news"
      },
      "uucp": {
        "dir": "/var/spool/uucp",
        "gid": 10,
        "uid": 10,
        "shell": "/usr/sbin/nologin",
        "gecos": "uucp"
      },
      "proxy": {
        "dir": "/bin",
        "gid": 13,
        "uid": 13,
        "shell": "/usr/sbin/nologin",
        "gecos": "proxy"
      },
      "www-data": {
        "dir": "/var/www",
        "gid": 33,
        "uid": 33,
        "shell": "/usr/sbin/nologin",
        "gecos": "www-data"
      },
      "backup": {
        "dir": "/var/backups",
        "gid": 34,
        "uid": 34,
        "shell": "/usr/sbin/nologin",
        "gecos": "backup"
      },
      "list": {
        "dir": "/var/list",
        "gid": 38,
        "uid": 38,
        "shell": "/usr/sbin/nologin",
        "gecos": "Mailing List Manager"
      },
      "irc": {
        "dir": "/var/run/ircd",
        "gid": 39,
        "uid": 39,
        "shell": "/usr/sbin/nologin",
        "gecos": "ircd"
      },
      "gnats": {
        "dir": "/var/lib/gnats",
        "gid": 41,
        "uid": 41,
        "shell": "/usr/sbin/nologin",
        "gecos": "Gnats Bug-Reporting System (admin)"
      },
      "nobody": {
        "dir": "/nonexistent",
        "gid": 65534,
        "uid": 65534,
        "shell": "/usr/sbin/nologin",
        "gecos": "nobody"
      },
      "libuuid": {
        "dir": "/var/lib/libuuid",
        "gid": 101,
        "uid": 100,
        "shell": "",
        "gecos": ""
      },
      "syslog": {
        "dir": "/home/syslog",
        "gid": 104,
        "uid": 101,
        "shell": "/bin/false",
        "gecos": ""
      },
      "messagebus": {
        "dir": "/var/run/dbus",
        "gid": 106,
        "uid": 102,
        "shell": "/bin/false",
        "gecos": ""
      },
      "sshd": {
        "dir": "/var/run/sshd",
        "gid": 65534,
        "uid": 103,
        "shell": "/usr/sbin/nologin",
        "gecos": ""
      },
      "statd": {
        "dir": "/var/lib/nfs",
        "gid": 65534,
        "uid": 104,
        "shell": "/bin/false",
        "gecos": ""
      },
      "vagrant": {
        "dir": "/home/vagrant",
        "gid": 900,
        "uid": 900,
        "shell": "/bin/bash",
        "gecos": "vagrant,,,"
      },
      "vboxadd": {
        "dir": "/var/run/vboxadd",
        "gid": 1,
        "uid": 999,
        "shell": "/bin/false",
        "gecos": ""
      }
    },
    "group": {
      "root": {
        "gid": 0,
        "members": [

        ]
      },
      "daemon": {
        "gid": 1,
        "members": [

        ]
      },
      "bin": {
        "gid": 2,
        "members": [

        ]
      },
      "sys": {
        "gid": 3,
        "members": [

        ]
      },
      "adm": {
        "gid": 4,
        "members": [
          "syslog",
          "vagrant"
        ]
      },
      "tty": {
        "gid": 5,
        "members": [

        ]
      },
      "disk": {
        "gid": 6,
        "members": [

        ]
      },
      "lp": {
        "gid": 7,
        "members": [

        ]
      },
      "mail": {
        "gid": 8,
        "members": [

        ]
      },
      "news": {
        "gid": 9,
        "members": [

        ]
      },
      "uucp": {
        "gid": 10,
        "members": [

        ]
      },
      "man": {
        "gid": 12,
        "members": [

        ]
      },
      "proxy": {
        "gid": 13,
        "members": [

        ]
      },
      "kmem": {
        "gid": 15,
        "members": [

        ]
      },
      "dialout": {
        "gid": 20,
        "members": [

        ]
      },
      "fax": {
        "gid": 21,
        "members": [

        ]
      },
      "voice": {
        "gid": 22,
        "members": [

        ]
      },
      "cdrom": {
        "gid": 24,
        "members": [
          "vagrant"
        ]
      },
      "floppy": {
        "gid": 25,
        "members": [

        ]
      },
      "tape": {
        "gid": 26,
        "members": [

        ]
      },
      "sudo": {
        "gid": 27,
        "members": [
          "vagrant"
        ]
      },
      "audio": {
        "gid": 29,
        "members": [

        ]
      },
      "dip": {
        "gid": 30,
        "members": [
          "vagrant"
        ]
      },
      "www-data": {
        "gid": 33,
        "members": [

        ]
      },
      "backup": {
        "gid": 34,
        "members": [

        ]
      },
      "operator": {
        "gid": 37,
        "members": [

        ]
      },
      "list": {
        "gid": 38,
        "members": [

        ]
      },
      "irc": {
        "gid": 39,
        "members": [

        ]
      },
      "src": {
        "gid": 40,
        "members": [

        ]
      },
      "gnats": {
        "gid": 41,
        "members": [

        ]
      },
      "shadow": {
        "gid": 42,
        "members": [

        ]
      },
      "utmp": {
        "gid": 43,
        "members": [

        ]
      },
      "video": {
        "gid": 44,
        "members": [

        ]
      },
      "sasl": {
        "gid": 45,
        "members": [

        ]
      },
      "plugdev": {
        "gid": 46,
        "members": [
          "vagrant"
        ]
      },
      "staff": {
        "gid": 50,
        "members": [

        ]
      },
      "games": {
        "gid": 60,
        "members": [

        ]
      },
      "users": {
        "gid": 100,
        "members": [

        ]
      },
      "nogroup": {
        "gid": 65534,
        "members": [

        ]
      },
      "libuuid": {
        "gid": 101,
        "members": [

        ]
      },
      "netdev": {
        "gid": 102,
        "members": [

        ]
      },
      "crontab": {
        "gid": 103,
        "members": [

        ]
      },
      "syslog": {
        "gid": 104,
        "members": [

        ]
      },
      "fuse": {
        "gid": 105,
        "members": [

        ]
      },
      "messagebus": {
        "gid": 106,
        "members": [

        ]
      },
      "mlocate": {
        "gid": 107,
        "members": [

        ]
      },
      "ssh": {
        "gid": 108,
        "members": [

        ]
      },
      "vagrant": {
        "gid": 900,
        "members": [

        ]
      },
      "lpadmin": {
        "gid": 109,
        "members": [
          "vagrant"
        ]
      },
      "sambashare": {
        "gid": 110,
        "members": [
          "vagrant"
        ]
      },
      "vboxsf": {
        "gid": 999,
        "members": [

        ]
      }
    }
  },
  "current_user": "root",
  "cpu": {
    "0": {
      "vendor_id": "GenuineIntel",
      "family": "6",
      "model": "70",
      "model_name": "Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz",
      "stepping": "1",
      "mhz": "2603.553",
      "cache_size": "6144 KB",
      "physical_id": "0",
      "core_id": "0",
      "cores": "1",
      "flags": [
        "fpu",
        "vme",
        "de",
        "pse",
        "tsc",
        "msr",
        "pae",
        "mce",
        "cx8",
        "apic",
        "sep",
        "mtrr",
        "pge",
        "mca",
        "cmov",
        "pat",
        "pse36",
        "clflush",
        "mmx",
        "fxsr",
        "sse",
        "sse2",
        "syscall",
        "nx",
        "rdtscp",
        "lm",
        "constant_tsc",
        "rep_good",
        "nopl",
        "pni",
        "monitor",
        "ssse3",
        "lahf_lm"
      ]
    },
    "total": 1,
    "real": 1
  },
  "memory": {
    "swap": {
      "cached": "0kB",
      "total": "786428kB",
      "free": "786428kB"
    },
    "total": "1017912kB",
    "free": "355624kB",
    "buffers": "44404kB",
    "cached": "483052kB",
    "active": "288984kB",
    "inactive": "277596kB",
    "dirty": "28kB",
    "writeback": "0kB",
    "anon_pages": "39120kB",
    "mapped": "11096kB",
    "slab": "75060kB",
    "slab_reclaimable": "65936kB",
    "slab_unreclaim": "9124kB",
    "page_tables": "2576kB",
    "nfs_unstable": "0kB",
    "bounce": "0kB",
    "commit_limit": "1295384kB",
    "committed_as": "88000kB",
    "vmalloc_total": "34359738367kB",
    "vmalloc_used": "22264kB",
    "vmalloc_chunk": "34359711224kB"
  },
  "filesystem": {
    "/dev/mapper/vagrant--vg-root": {
      "kb_size": "40129116",
      "kb_used": "1248156",
      "kb_available": "36819444",
      "percent_used": "4%",
      "mount": "/",
      "total_inodes": "2559088",
      "inodes_used": "54538",
      "inodes_available": "2504550",
      "inodes_percent_used": "3%",
      "fs_type": "(dm-0)",
      "mount_options": [
        "rw",
        "errors=remount-ro"
      ],
      "uuid": "(dm-0)",
      "label": "(dm-0)"
    },
    "none": {
      "kb_size": "102400",
      "kb_used": "0",
      "kb_available": "102400",
      "percent_used": "0%",
      "mount": "/sys/fs/pstore",
      "total_inodes": "127239",
      "inodes_used": "2",
      "inodes_available": "127237",
      "inodes_percent_used": "1%",
      "fs_type": "pstore",
      "mount_options": [
        "rw"
      ]
    },
    "udev": {
      "kb_size": "495556",
      "kb_used": "4",
      "kb_available": "495552",
      "percent_used": "1%",
      "mount": "/dev",
      "total_inodes": "123889",
      "inodes_used": "426",
      "inodes_available": "123463",
      "inodes_percent_used": "1%",
      "fs_type": "devtmpfs",
      "mount_options": [
        "rw",
        "mode=0755"
      ]
    },
    "tmpfs": {
      "kb_size": "101792",
      "kb_used": "372",
      "kb_available": "101420",
      "percent_used": "1%",
      "mount": "/run",
      "total_inodes": "127239",
      "inodes_used": "353",
      "inodes_available": "126886",
      "inodes_percent_used": "1%",
      "fs_type": "tmpfs",
      "mount_options": [
        "rw",
        "noexec",
        "nosuid",
        "size=10%",
        "mode=0755"
      ]
    },
    "/dev/sda1": {
      "kb_size": "240972",
      "kb_used": "40811",
      "kb_available": "187720",
      "percent_used": "18%",
      "mount": "/boot",
      "total_inodes": "62248",
      "inodes_used": "298",
      "inodes_available": "61950",
      "inodes_percent_used": "1%",
      "fs_type": "ext2",
      "mount_options": [
        "rw"
      ],
      "uuid": "f012a222-cb8d-436f-9291-d559e99ce304"
    },
    "vagrant": {
      "kb_size": "487350400",
      "kb_used": "157091024",
      "kb_available": "330259376",
      "percent_used": "33%",
      "mount": "/vagrant",
      "total_inodes": "1000",
      "inodes_used": "0",
      "inodes_available": "1000",
      "inodes_percent_used": "0%",
      "fs_type": "vboxsf",
      "mount_options": [
        "uid=900",
        "gid=900",
        "rw"
      ]
    },
    "proc": {
      "mount": "/proc",
      "fs_type": "proc",
      "mount_options": [
        "rw",
        "noexec",
        "nosuid",
        "nodev"
      ]
    },
    "sysfs": {
      "mount": "/sys",
      "fs_type": "sysfs",
      "mount_options": [
        "rw",
        "noexec",
        "nosuid",
        "nodev"
      ]
    },
    "devpts": {
      "mount": "/dev/pts",
      "fs_type": "devpts",
      "mount_options": [
        "rw",
        "noexec",
        "nosuid",
        "gid=5",
        "mode=0620"
      ]
    },
    "rpc_pipefs": {
      "mount": "/run/rpc_pipefs",
      "fs_type": "rpc_pipefs",
      "mount_options": [
        "rw"
      ]
    },
    "systemd": {
      "mount": "/sys/fs/cgroup/systemd",
      "fs_type": "cgroup",
      "mount_options": [
        "rw",
        "noexec",
        "nosuid",
        "nodev",
        "none",
        "name=systemd"
      ]
    },
    "/dev/sda5": {
      "fs_type": "LVM2_member",
      "uuid": "oKbj41-u1cE-PXaP-9iMK-Z7PW-EY7M-gyaqo1"
    },
    "/dev/mapper/vagrant--vg-swap_1": {
      "fs_type": "(dm-1)",
      "uuid": "(dm-1)",
      "label": "(dm-1)"
    },
    "rootfs": {
      "mount": "/",
      "fs_type": "rootfs",
      "mount_options": [
        "rw"
      ]
    }
  },
  "keys": {
    "ssh": {
      "host_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCqcHCwt+Gqma8Md2gFQ6UneDLOK3kTBMgAjITji3ZCjg3RcMUUZXXq3Yg6OC4YtHcrnf112NN5Bip1BAZf0GyuTICCmrsIvhxZ3XPot1/dMWyL8o2c5M/WOnM/H23Ubsuq2lX3KfaVUp6BLwpZ7q76hwVzQ7gJR5019A9RWDiYurZMxCfNdLjX4zA+j9HxM1oOhxPBRzhURMSxMCQABk1bdsDjz/0nXVg5qpqDtyy/J68KwGDG7NMDt0xEIfwfLkdOlH1HldC07oveNRlOYCIxRkrKpn5QMFBXD39zYffjEvcq2JB9Sj2jGKP4mPMbAuK6VPaf84lYr254WIpJCIQ9",
      "host_dsa_public": "AAAAB3NzaC1kc3MAAACBAPn8evim+q6knKyyozzcs3Tohp3F9bhyqRZjXtrMt5UIdNIJJlgD3rWKmDvn3MBkvakxPUWodH7oKqIankcq6PrjiZbXbgUrOSPZ3S8UgwUdYjqB8otQdvtTMgmhwI3FoFoMfFJvxwIuEar5g3xvyuKWawca4Jtvpo3F0CN9brM/AAAAFQDlws5xUAA02H9vZcp4HJcqHluZPwAAAIBNizxcRY4yfvHNDPMjF470ZnZb5g9bSB65kRoQXSFPRjS9qahz7Bp5V7YOV+ofNtQLaj6rqh+sCPoAbLj2ePzPmsglWUxaTA/uhp+n+h0/20c+TdXWW2hJtF8bVUw4U/Ka5i1XoBR2NAEwelyRZOljPYcRINotR0CGOoZlLrjnEwAAAIEApa/k6O+LhWZLPZoCCOAovGiHn/a1oYUsPvIi5PfpGnkJSloIyTptQcbefcrj13rjvWL2n3oC5tqlNX9E0Q/2XA+jW54i3lwNqgfmp96jtQKPxPXPSAJo1bajJP7z5vtYd2xvYkHq3NGUAIX0c9Jlk6qMBXJ7H0Z7Zf2LZEUrR1k=",
      "host_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBL9JNxy9Krm57aNIOT8z5aorSOEcaliMI6WcvIugMDrGaAx9VzAbqRrPB2pq1Oiff1qDyx6zYJdGY5Wdij9p/8=",
      "host_ecdsa_type": "ecdsa-sha2-nistp256",
      "host_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAICqEBhmXWmxFQyu5dBM2/VKYTRLaKG0aOPzR/ub0BPQo"
    }
  },
  "uptime_seconds": 10766,
  "uptime": "2 hours 59 minutes 26 seconds",
  "idletime_seconds": 10715,
  "idletime": "2 hours 58 minutes 35 seconds",
  "ohai_time": 1440614782.6866167,
  "block_device": {
    "sda": {
      "size": "83886080",
      "removable": "0",
      "model": "VBOX HARDDISK",
      "rev": "1.0",
      "state": "running",
      "timeout": "30",
      "vendor": "ATA",
      "rotational": "1"
    },
    "dm-0": {
      "size": "81805312",
      "removable": "0",
      "rotational": "1"
    },
    "dm-1": {
      "size": "1572864",
      "removable": "0",
      "rotational": "1"
    },
    "ram0": {
      "size": "131072",
      "removable": "0",
      "rotational": "1"
    },
    "ram1": {
      "size": "131072",
      "removable": "0",
      "rotational": "1"
    },
    "ram2": {
      "size": "131072",
      "removable": "0",
      "rotational": "1"
    },
    "ram3": {
      "size": "131072",
      "removable": "0",
      "rotational": "1"
    },
    "ram4": {
      "size": "131072",
      "removable": "0",
      "rotational": "1"
    },
    "ram5": {
      "size": "131072",
      "removable": "0",
      "rotational": "1"
    },
    "ram6": {
      "size": "131072",
      "removable": "0",
      "rotational": "1"
    },
    "ram7": {
      "size": "131072",
      "removable": "0",
      "rotational": "1"
    },
    "ram8": {
      "size": "131072",
      "removable": "0",
      "rotational": "1"
    },
    "ram9": {
      "size": "131072",
      "removable": "0",
      "rotational": "1"
    },
    "loop0": {
      "size": "0",
      "removable": "0",
      "rotational": "1"
    },
    "loop1": {
      "size": "0",
      "removable": "0",
      "rotational": "1"
    },
    "loop2": {
      "size": "0",
      "removable": "0",
      "rotational": "1"
    },
    "loop3": {
      "size": "0",
      "removable": "0",
      "rotational": "1"
    },
    "loop4": {
      "size": "0",
      "removable": "0",
      "rotational": "1"
    },
    "loop5": {
      "size": "0",
      "removable": "0",
      "rotational": "1"
    },
    "loop6": {
      "size": "0",
      "removable": "0",
      "rotational": "1"
    },
    "loop7": {
      "size": "0",
      "removable": "0",
      "rotational": "1"
    },
    "ram10": {
      "size": "131072",
      "removable": "0",
      "rotational": "1"
    },
    "ram11": {
      "size": "131072",
      "removable": "0",
      "rotational": "1"
    },
    "ram12": {
      "size": "131072",
      "removable": "0",
      "rotational": "1"
    },
    "ram13": {
      "size": "131072",
      "removable": "0",
      "rotational": "1"
    },
    "ram14": {
      "size": "131072",
      "removable": "0",
      "rotational": "1"
    },
    "ram15": {
      "size": "131072",
      "removable": "0",
      "rotational": "1"
    }
  },
  "dmi": {
    "dmidecode_version": "2.12",
    "smbios_version": "2.5",
    "structures": {
      "count": "10",
      "size": "450"
    },
    "table_location": "0x000E1000",
    "bios": {
      "all_records": [
        {
          "record_id": "0x0000",
          "size": "0",
          "application_identifier": "BIOS Information",
          "Vendor": "innotek GmbH",
          "Version": "VirtualBox",
          "Release Date": "12/01/2006",
          "Address": "0xE0000",
          "Runtime Size": "128 kB",
          "ROM Size": "128 kB",
          "Characteristics": {
            "ISA is supported": null,
            "PCI is supported": null,
            "Boot from CD is supported": null,
            "Selectable boot is supported": null,
            "8042 keyboard services are supported (int 9h)": null,
            "CGA/mono video services are supported (int 10h)": null,
            "ACPI is supported": null
          }
        }
      ],
      "vendor": "innotek GmbH",
      "version": "VirtualBox",
      "release_date": "12/01/2006",
      "address": "0xE0000",
      "runtime_size": "128 kB",
      "rom_size": "128 kB"
    },
    "system": {
      "all_records": [
        {
          "record_id": "0x0001",
          "size": "1",
          "application_identifier": "System Information",
          "Manufacturer": "innotek GmbH",
          "Product Name": "VirtualBox",
          "Version": "1.2",
          "Serial Number": "0",
          "UUID": "4DF09D3E-960B-4B60-B689-5DA278F6E087",
          "Wake-up Type": "Power Switch",
          "SKU Number": "Not Specified",
          "Family": "Virtual Machine"
        }
      ],
      "manufacturer": "innotek GmbH",
      "product_name": "VirtualBox",
      "version": "1.2",
      "serial_number": "0",
      "uuid": "4DF09D3E-960B-4B60-B689-5DA278F6E087",
      "wake_up_type": "Power Switch",
      "sku_number": "Not Specified",
      "family": "Virtual Machine"
    },
    "base_board": {
      "all_records": [
        {
          "record_id": "0x0008",
          "size": "2",
          "application_identifier": "Base Board Information",
          "Manufacturer": "Oracle Corporation",
          "Product Name": "VirtualBox",
          "Version": "1.2",
          "Serial Number": "0",
          "Asset Tag": "Not Specified",
          "Features": {
            "Board is a hosting board": null
          },
          "Location In Chassis": "Not Specified",
          "Chassis Handle": "0x0003",
          "Type": "Motherboard",
          "Contained Object Handles": "0"
        }
      ],
      "manufacturer": "Oracle Corporation",
      "product_name": "VirtualBox",
      "version": "1.2",
      "serial_number": "0",
      "asset_tag": "Not Specified",
      "location_in_chassis": "Not Specified",
      "chassis_handle": "0x0003",
      "type": "Motherboard",
      "contained_object_handles": "0"
    },
    "chassis": {
      "all_records": [
        {
          "record_id": "0x0003",
          "size": "3",
          "application_identifier": "Chassis Information",
          "Manufacturer": "Oracle Corporation",
          "Type": "Other",
          "Lock": "Not Present",
          "Version": "Not Specified",
          "Serial Number": "Not Specified",
          "Asset Tag": "Not Specified",
          "Boot-up State": "Safe",
          "Power Supply State": "Safe",
          "Thermal State": "Safe",
          "Security Status": "None"
        }
      ],
      "manufacturer": "Oracle Corporation",
      "type": "Other",
      "lock": "Not Present",
      "version": "Not Specified",
      "serial_number": "Not Specified",
      "asset_tag": "Not Specified",
      "boot_up_state": "Safe",
      "power_supply_state": "Safe",
      "thermal_state": "Safe",
      "security_status": "None"
    },
    "oem_strings": {
      "all_records": [
        {
          "record_id": "0x0002",
          "size": "11",
          "application_identifier": "OEM Strings",
          "String 1": "vboxVer_4.3.30",
          "String 2": "vboxRev_101610"
        }
      ],
      "string_1": "vboxVer_4.3.30",
      "string_2": "vboxRev_101610"
    }
  },
  "hostname": "vagrant-ohai-test",
  "machinename": "vagrant-ohai-test",
  "fqdn": "vagrant-ohai-test",
  "domain": null,
  "chef_packages": {
    "ohai": {
      "version": "8.5.0",
      "ohai_root": "/opt/chef/embedded/apps/ohai/lib/ohai"
    },
    "chef": {
      "version": "12.4.1",
      "chef_root": "/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.4.1/lib"
    }
  },
  "cloud_v2": null,
  "init_package": "init"
}

@nukemberg
Copy link
Owner

huh, ipaddress in the output of ohai is correct! can it be the problem is chef config file? are you using chef-client or chef-solo? can you check test-kitchen's chef config file on the instance? it's probably in /tmp

@alainchiasson
Copy link

Here is something different. :

vagrant@vagrant-ohai-test:/var/chef/cache$ ohai ipaddress
[
  "10.0.2.15"
]
vagrant@vagrant-ohai-test:/var/chef/cache$ ohai -d /etc/chef/ohai_plugins ipaddress
[2015-08-26T19:35:42+00:00] INFO: Ohai override :ipaddress to 172.27.100.130 from eth1
[
  "172.27.100.130"
]
vagrant@vagrant-ohai-test:/var/chef/cache$

Also this is not using kitchen but straight from Vagrant. I did a minimal environment for this ... here is the vagrant file (minus my org stuff) :

# -*- mode: ruby -*-
# vi: set ft=ruby :

# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
  # The most common configuration options are documented and commented below.
  # For a complete reference, please see the online documentation at
  # https://docs.vagrantup.com.

  # Every Vagrant development environment requires a box. You can search for
  # boxes at https://atlas.hashicorp.com/search.
  config.vm.box = "opscode-ubuntu-14.04"
  config.vm.hostname = "vagrant-ohai-test"

  # Create a public network, which generally matched to bridged network.
  # Bridged networks make the machine appear as another physical device on
  # your network.
  config.vm.network "public_network"

  # Apply vagrant-ohai plugin for bridged networks
  config.ohai.enable = true
  config.ohai.primary_nic = "eth1"

  # Stadardize on machine size
  config.vm.provider "virtualbox" do |vb|
    # Customize the amount of memory on the VM:
    vb.memory = "1024"
  end

  # Enable provisioning with a shell script. Additional provisioners such as
  # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
  # documentation for more information about their specific syntax and use.
  config.vm.provision "chef_client" do |chef|
    chef.chef_server_url = "https://api.opscode.com/organizations/XXXXXX"
    chef.validation_key_path = ".chef/XXXXX-validator.pem"
    chef.validation_client_name = "XXXXXX-validator"
    chef.add_recipe "apt"

    # Cleanup when shutting down.
    chef.delete_node = true
  end
end

@alainchiasson
Copy link

More stuff ... Tell me if this is useful - I'm playing with the paths.

It's not what I though - I must say that I'm doing "stabs in the dark".

vagrant@vagrant-ohai-test:~$ ohai ipaddress
[
  "10.0.2.15"
]
vagrant@vagrant-ohai-test:~$ ohai -d /etc/chef/ohai_plugins/ ipaddress
[2015-08-26T20:04:08+00:00] INFO: Ohai override :ipaddress to 172.27.100.130 from eth1
[
  "172.27.100.130"
]
vagrant@vagrant-ohai-test:~$ ohai -d /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/ ipaddress
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/rust.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/groovy.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/joyent.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/ps.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/root_group.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/network_listeners.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/openbsd/virtualization.rb>: collect_data already defined on platform openbsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/openbsd/platform.rb>: collect_data already defined on platform openbsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/openbsd/network.rb>: collect_data already defined on platform openbsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/openbsd/cpu.rb>: collect_data already defined on platform openbsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/openbsd/memory.rb>: collect_data already defined on platform openbsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/openbsd/filesystem.rb>: collect_data already defined on platform openbsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/sigar/network_route.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/sigar/platform.rb>: collect_data already defined on platform hpux
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/sigar/network.rb>: collect_data already defined on platform hpux
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/sigar/cpu.rb>: collect_data already defined on platform hpux
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/sigar/memory.rb>: collect_data already defined on platform hpux
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/sigar/filesystem.rb>: collect_data already defined on platform hpux
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/ssh_host_key.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/perl.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/uptime.rb>: collect_data already defined on platform hpux
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/ohai_time.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/command.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linux/mdadm.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linux/lsb.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linux/virtualization.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linux/platform.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linux/network.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linux/cpu.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linux/block_device.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linux/memory.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linux/filesystem.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/dmi.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/powershell.rb>: collect_data already defined on platform windows
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/lua.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/ip_scopes.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/ruby.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/virtualization.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/mono.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/hostname.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/platform.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/digital_ocean.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/ohai.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/gce.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/passwd.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/network.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/ec2.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/cloud_v2.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/c.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/java.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/windows/drivers.rb>: collect_data already defined on platform windows
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/windows/platform.rb>: collect_data already defined on platform windows
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/windows/network.rb>: collect_data already defined on platform windows
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/windows/cpu.rb>: collect_data already defined on platform windows
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/windows/filesystem.rb>: collect_data already defined on platform windows
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/azure.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/nodejs.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/languages.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linode.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/chef.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/aix/uptime.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/aix/virtualization.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/aix/platform.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/aix/network.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/aix/cpu.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/aix/memory.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/aix/kernel.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/aix/filesystem.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/php.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/rackspace.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/go.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/keys.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/cloud.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/netbsd/virtualization.rb>: collect_data already defined on platform netbsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/netbsd/platform.rb>: collect_data already defined on platform netbsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/netbsd/network.rb>: collect_data already defined on platform netbsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/netbsd/cpu.rb>: collect_data already defined on platform netbsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/netbsd/memory.rb>: collect_data already defined on platform netbsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/netbsd/filesystem.rb>: collect_data already defined on platform netbsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/erlang.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/openstack.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/darwin/system_profiler.rb>: collect_data already defined on platform darwin
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/darwin/platform.rb>: collect_data already defined on platform darwin
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/darwin/network.rb>: collect_data already defined on platform darwin
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/darwin/cpu.rb>: collect_data already defined on platform darwin
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/darwin/memory.rb>: collect_data already defined on platform darwin
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/darwin/filesystem.rb>: collect_data already defined on platform darwin
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/eucalyptus.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/freebsd/virtualization.rb>: collect_data already defined on platform freebsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/freebsd/platform.rb>: collect_data already defined on platform freebsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/freebsd/network.rb>: collect_data already defined on platform freebsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/freebsd/cpu.rb>: collect_data already defined on platform freebsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/freebsd/memory.rb>: collect_data already defined on platform freebsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/freebsd/os.rb>: collect_data already defined on platform freebsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/freebsd/filesystem.rb>: collect_data already defined on platform freebsd
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/os.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/init_package.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/python.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/elixir.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/kernel.rb>: collect_data already defined on platform default
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/dmi.rb>: collect_data already defined on platform solaris2
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/virtualization.rb>: collect_data already defined on platform solaris2
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/platform.rb>: collect_data already defined on platform solaris2
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/network.rb:57: warning: already initialized constant ETHERNET_ENCAPS
/opt/chef/embedded/apps/ohai/lib/ohai/plugins/solaris2/network.rb:57: warning: previous definition of ETHERNET_ENCAPS was here
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/network.rb>: collect_data already defined on platform solaris2
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/cpu.rb>: collect_data already defined on platform solaris2
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/zpools.rb>: collect_data already defined on platform solaris2
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/memory.rb>: collect_data already defined on platform solaris2
[2015-08-26T20:04:16+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/filesystem.rb>: collect_data already defined on platform solaris2
[
  "10.0.2.15"
]
vagrant@vagrant-ohai-test:~$ cp /etc/chef/ohai_plugins/* /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/
cp: cannot create regular file ‘/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/vagrant.json’: Permission denied
cp: cannot create regular file ‘/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/vagrant.rb’: Permission denied
vagrant@vagrant-ohai-test:~$ sudo !!
sudo cp /etc/chef/ohai_plugins/* /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/
vagrant@vagrant-ohai-test:~$ ohai -d /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/ ipaddress
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/rust.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/groovy.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/joyent.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/ps.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/root_group.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/network_listeners.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/openbsd/virtualization.rb>: collect_data already defined on platform openbsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/openbsd/platform.rb>: collect_data already defined on platform openbsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/openbsd/network.rb>: collect_data already defined on platform openbsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/openbsd/cpu.rb>: collect_data already defined on platform openbsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/openbsd/memory.rb>: collect_data already defined on platform openbsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/openbsd/filesystem.rb>: collect_data already defined on platform openbsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/sigar/network_route.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/sigar/platform.rb>: collect_data already defined on platform hpux
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/sigar/network.rb>: collect_data already defined on platform hpux
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/sigar/cpu.rb>: collect_data already defined on platform hpux
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/sigar/memory.rb>: collect_data already defined on platform hpux
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/sigar/filesystem.rb>: collect_data already defined on platform hpux
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/ssh_host_key.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/perl.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/uptime.rb>: collect_data already defined on platform hpux
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/ohai_time.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/command.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linux/mdadm.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linux/lsb.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linux/virtualization.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linux/platform.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linux/network.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linux/cpu.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linux/block_device.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linux/memory.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linux/filesystem.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/dmi.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/powershell.rb>: collect_data already defined on platform windows
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/lua.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/ip_scopes.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/ruby.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/virtualization.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/mono.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/hostname.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/platform.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/digital_ocean.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/ohai.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/gce.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/passwd.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/network.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/ec2.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/cloud_v2.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/c.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/java.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/windows/drivers.rb>: collect_data already defined on platform windows
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/windows/platform.rb>: collect_data already defined on platform windows
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/windows/network.rb>: collect_data already defined on platform windows
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/windows/cpu.rb>: collect_data already defined on platform windows
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/windows/filesystem.rb>: collect_data already defined on platform windows
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/azure.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/nodejs.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/languages.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/linode.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/chef.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/aix/uptime.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/aix/virtualization.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/aix/platform.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/aix/network.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/aix/cpu.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/aix/memory.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/aix/kernel.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/aix/filesystem.rb>: collect_data already defined on platform aix
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/php.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/rackspace.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/go.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/keys.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/cloud.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/netbsd/virtualization.rb>: collect_data already defined on platform netbsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/netbsd/platform.rb>: collect_data already defined on platform netbsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/netbsd/network.rb>: collect_data already defined on platform netbsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/netbsd/cpu.rb>: collect_data already defined on platform netbsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/netbsd/memory.rb>: collect_data already defined on platform netbsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/netbsd/filesystem.rb>: collect_data already defined on platform netbsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/erlang.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/openstack.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/darwin/system_profiler.rb>: collect_data already defined on platform darwin
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/darwin/platform.rb>: collect_data already defined on platform darwin
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/darwin/network.rb>: collect_data already defined on platform darwin
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/darwin/cpu.rb>: collect_data already defined on platform darwin
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/darwin/memory.rb>: collect_data already defined on platform darwin
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/darwin/filesystem.rb>: collect_data already defined on platform darwin
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/eucalyptus.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/freebsd/virtualization.rb>: collect_data already defined on platform freebsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/freebsd/platform.rb>: collect_data already defined on platform freebsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/freebsd/network.rb>: collect_data already defined on platform freebsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/freebsd/cpu.rb>: collect_data already defined on platform freebsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/freebsd/memory.rb>: collect_data already defined on platform freebsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/freebsd/os.rb>: collect_data already defined on platform freebsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/freebsd/filesystem.rb>: collect_data already defined on platform freebsd
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/os.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/init_package.rb>: collect_data already defined on platform linux
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/python.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/elixir.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/kernel.rb>: collect_data already defined on platform default
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/dmi.rb>: collect_data already defined on platform solaris2
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/virtualization.rb>: collect_data already defined on platform solaris2
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/platform.rb>: collect_data already defined on platform solaris2
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/network.rb:57: warning: already initialized constant ETHERNET_ENCAPS
/opt/chef/embedded/apps/ohai/lib/ohai/plugins/solaris2/network.rb:57: warning: previous definition of ETHERNET_ENCAPS was here
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/network.rb>: collect_data already defined on platform solaris2
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/cpu.rb>: collect_data already defined on platform solaris2
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/zpools.rb>: collect_data already defined on platform solaris2
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/memory.rb>: collect_data already defined on platform solaris2
[2015-08-26T20:04:56+00:00] WARN: Plugin Definition Error: </opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.5.0/lib/ohai/plugins/solaris2/filesystem.rb>: collect_data already defined on platform solaris2
[2015-08-26T20:04:56+00:00] INFO: Ohai override :ipaddress to 172.27.100.130 from eth1
[
  "172.27.100.130"
]
vagrant@vagrant-ohai-test:~$ ohai ipaddress
[
  "10.0.2.15"
]

@nukemberg
Copy link
Owner

i suspect test-kitchen is using its own chef provisioning and is ignoring vagrant's chef config file. i think the easiest solution would be to add the ohai::default recipe from the ohai cookbook to your test suite.

@alainchiasson
Copy link

So it seems to be a config issue:

No results on the general run for the vagrant.rb file

root@vagrant-ohai-test:~# strace ohai  ipaddress 2>&1 | grep vagrant.rb

But there is when we run with the -d defined.

root@vagrant-ohai-test:~# strace ohai -d /etc/chef/ohai_plugins/ ipaddress 2>&1 | grep vagrant.rb
lstat("/etc/chef/ohai_plugins/vagrant.rb", {st_mode=S_IFREG|0644, st_size=1813, ...}) = 0
open("/etc/chef/ohai_plugins/vagrant.rb", O_RDONLY|O_CLOEXEC) = 8
root@vagrant-ohai-test:~#

@alainchiasson
Copy link

Ok ... It seems to work now, but this is very much and environment issue - or where things get up loded :

I added :

    chef.add_recipe "ohai::default"

To the Vagrant file detailed above. Going back on the machine and running OHAI, still gave me the wrong result :

Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-24-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
Last login: Tue Oct 21 14:52:42 2014 from 10.0.2.2
vagrant@vagrant-ohai-test:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:91:14:ca brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe91:14ca/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:62:3f:b0 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.191/24 brd 192.168.1.255 scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe62:3fb0/64 scope link
       valid_lft forever preferred_lft forever
vagrant@vagrant-ohai-test:~$ ohai ipaddress
[
  "10.0.2.15"
]
vagrant@vagrant-ohai-test:~$

But the machine registers with Chef-server with the proper IP.

± |master S:2 U:2 ?:5 ✗| → knife search node "*:vagrant-ohai-test" --attribute ipaddress
1 items found

vagrant-ohai-test:
  ipaddress: 192.168.1.191

I can move forward a - but I will keep trying to find what's going on.

@alainchiasson
Copy link

I will also test my original .kitchen.yml files.

@alainchiasson
Copy link

So in using the .kithchen - either by the vagrant.erb method or the vagrant insert, nothing gets placed on the VM. /etc/chef/ohai_plugins contains only a README.

The Vagrant file is correct - but it is not even loading the ohai plugin.

@nukemberg
Copy link
Owner

yes, the plugin modifies vagrant's client.rb to add the ohai plugin path - but test kitchen uses its own separate version of client.rb over which the plugin has no control. As suggested above the fix would be to include the ohai::default recipe from the ohai cookbook in your test suite runlist.

@alainchiasson
Copy link

Let me start by thanking you for the help in trouble shootin ghtis. I am not ignoring you - just have not had the time to dig deeper.

When running from vagrant using ohai::default The IP is properly pushed back to chef server - but ohai ipaddress still gives me the eth0 ip.

Trying the same things from kitchen (just adding the recipe ohai::default to the runlist and nothing else) the oahi plugin is not even installed on the system (/etc/ohai/plugins contains only a README)

I only had about 10 minutes to run the test, and have not had the time to come back to it. I'm hoping to have time this weekend to go much more in depth.

@nukemberg
Copy link
Owner

Running ohai will not run any plugins unless you use ohai -d /etc/chef/ohai_plugins - have a look at the ohai docs. Running from Chef, ohai gets its plugin path from Chef's config file and/or ohai cookbook.

The plugin is to be installed in /etc/chef/ohai_plugins and not /etc/ohai/plugins, so check that directory.

I will try to run a test myself with test-kitchen but this is not likely to happen before tuesday.

@Spechal
Copy link

Spechal commented May 21, 2017

Still appears to be an issue.

config.vm.define 'web1' do |n|
    n.vm.box = 'bento/centos-7.2'
    n.vm.box_version = '2.2.9'
    n.vm.hostname = 'web1'
    n.vm.network :private_network, ip: '192.168.10.43', :use_dhcp_assigned_default_route => true
    n.vm.provision :shell, inline: NODE_SCRIPT.dup
   n.ohai.enable = true
   n.ohai.primary_nic = "eth0"
   set_hostname(n)
  end

ohai ipaddress
[
  "10.0.2.15"
]

@nukemberg
Copy link
Owner

@Spechal are you running with test-kitchen?

@Spechal
Copy link

Spechal commented May 22, 2017

No, just logging into the machine and running ohai ipaddress, although my test-kitchen would also fail due to an invalid IP and/or my load balancer tests would fail because it would add the wrong IPs into the pools. After poking around a bit, it looks like there isn't a good way to solve this and issues are closed saying it's a virtual box issue.

@scalp42
Copy link

scalp42 commented May 22, 2017

For anyone running into this issue, I went with pulling vagrant-ohai as workaround.

In your kitchen suite:

suites:
- name: mesos-master
  driver:
    pre_create_command: docker-compose up -d zookeeper || true
  run_list:
  - recipe[vagrant-ohai]  # will pull the correct IP
  - recipe[mesos::master]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants