You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are sometimes unable to detect the IP address of MacOS servers using the ohai plugin intermittently. A subsequent ohai command would then produce the expected result. For the most part, we always get an IP address but on some instances. it returns a warning WARN: Plugin Network: unable to detect ipaddress
The expected behaviour is for the plugin to always return an IP address
This behaviour has been observed on MacOS nodes 10.15 and above, running chef client 17.10.3, and ohai 17.9.0
The nature of this behaviour is intermittent, the logs on the node do not show any activity stopping ohai from getting the IP address, and it never loses its ip address
An example of a case where we saw the issue is
node1:/ $ ohai ipaddress
[2022-08-10T21:11:17+00:00] WARN: Plugin Network: unable to detect ipaddress
/opt/chef/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/system.rb:185:in `attributes_print': I cannot find an attribute named ipaddress! (ArgumentError)
from /opt/chef/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/application.rb:151:in `block in run_application'
from /opt/chef/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/application.rb:150:in `each'
from /opt/chef/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/application.rb:150:in `run_application'
from /opt/chef/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/application.rb:92:in `block in run'
from /opt/chef/embedded/lib/ruby/3.0.0/benchmark.rb:308:in `realtime'
from /opt/chef/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/lib/ohai/application.rb:90:in `run'
from /opt/chef/embedded/lib/ruby/gems/3.0.0/gems/ohai-17.9.0/bin/ohai:25:in `<top (required)>'
from /usr/local/bin/ohai:160:in `load'
from /usr/local/bin/ohai:160:in `<main>'
node1:/ $ ohai ipaddress
[
"x.x.x.x"
]
The text was updated successfully, but these errors were encountered:
We are sometimes unable to detect the IP address of MacOS servers using the ohai plugin intermittently. A subsequent ohai command would then produce the expected result. For the most part, we always get an IP address but on some instances. it returns a warning
WARN: Plugin Network: unable to detect ipaddress
The expected behaviour is for the plugin to always return an IP address
This behaviour has been observed on MacOS nodes 10.15 and above, running chef client 17.10.3, and ohai 17.9.0
The nature of this behaviour is intermittent, the logs on the node do not show any activity stopping ohai from getting the IP address, and it never loses its ip address
An example of a case where we saw the issue is
The text was updated successfully, but these errors were encountered: