Hi,
I'm having the same problem listed here:
https://tickets.opscode.com/browse/OHAI-489My Ohai version is 8.1.1 and chef-client version is 11.10.
This is the stack trace when I run ohai -l debug:
looks_like_ec2? == true
[2015-03-27T16:58:51+00:00] DEBUG: EC2 shows unsupported metadata version: 2014-11-05
[2015-03-27T16:58:51+00:00] DEBUG: EC2 shows unsupported metadata version: 2014-02-25
[2015-03-27T16:58:51+00:00] DEBUG: EC2 metadata version: 2012-01-12
[2015-03-27T16:58:51+00:00] DEBUG: EC2 shows unsupported metadata version: 2014-11-05
[2015-03-27T16:58:51+00:00] DEBUG: EC2 shows unsupported metadata version: 2014-02-25
[2015-03-27T16:58:51+00:00] DEBUG: EC2 metadata version: 2012-01-12
[2015-03-27T16:58:51+00:00] DEBUG: Plugin GCE threw #<SocketError: getaddrinfo: Name or service not known>
[2015-03-27T16:58:51+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/mixin/gce_metadata.rb:30:in `pack_sockaddr_in'
[2015-03-27T16:58:51+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/mixin/gce_metadata.rb:30:in `can_metadata_connect?'
[2015-03-27T16:58:51+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/gce.rb:30:in `has_gce_metadata?'
[2015-03-27T16:58:51+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/gce.rb:39:in `looks_like_gce?'
[2015-03-27T16:58:51+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/plugins/gce.rb:43:in `block (2 levels) in <main>'
[2015-03-27T16:58:51+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `instance_eval'
[2015-03-27T16:58:51+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin/versionvii.rb:90:in `run_plugin'
[2015-03-27T16:58:51+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:98:in `run'
[2015-03-27T16:58:51+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/dsl/plugin.rb:169:in `safe_run'
[2015-03-27T16:58:51+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:82:in `run_v7_plugin'
[2015-03-27T16:58:51+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/runner.rb:43:in `run_plugin'
[2015-03-27T16:58:51+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:94:in `block in run_plugins'
[2015-03-27T16:58:51+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `each'
[2015-03-27T16:58:51+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:93:in `run_plugins'
[2015-03-27T16:58:51+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/system.rb:71:in `all_plugins'
[2015-03-27T16:58:51+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:90:in `run_application'
[2015-03-27T16:58:51+00:00] DEBUG: /opt/chef/embedded/apps/ohai/lib/ohai/application.rb:70:in `run'
[2015-03-27T16:58:51+00:00] DEBUG: /opt/chef/embedded/apps/ohai/bin/ohai:42:in `<top (required)>'
[2015-03-27T16:58:51+00:00] DEBUG: /usr/bin/ohai:23:in `load'
[2015-03-27T16:58:51+00:00] DEBUG: /usr/bin/ohai:23:in `<main>'
Is
there a way around this? Looking at the ticket it looks like a fix was
merged back in version 6.X and the issue is marked as resolved, but that's not the case for me.
--
Yoshi Spendiff
DevOps Engineer
Indochino
Mobile: +1 778 952 2025