- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: Ohai custom plugin results not reported back to Chef server
- Date: Wed, 28 May 2014 14:54:07 -0700
On Tuesday, May 27, 2014 at 5:48 AM, Reto Hermann wrote:
>
I am experimenting with chef-client version 11.10.0.rc.1 on AIX 6.1.
>
>
I have written an Ohai 7 plugin and therefore upgraded Ohai on the AIX box
>
to version 7.0.4 (using gem install ohai). When running ohai from the
>
command line, the plugin works fine as expected.
>
>
I have added the ohai cookbook to the run_list of the AIX client node.
>
Executing a chef-client run from the command line does not produce any
>
warning nor error messages. However, the attributes collected by my custom
>
plugin do not show up in the node view on the Chef server webui nor are
>
they searchable from the command line using knife.
>
>
Are Ohai custom plugins supported by chef-client version 11.10.0.rc.1?
>
Is the problem I am seeing possibly caused by using Ohai 7 with chef-client
>
version 11.10.0.rc.1?
>
Where should I look for evidence what's going wrong?
>
>
Thanks for any advice!
>
>
Reto
Try running chef-client with `-ldebug` to see messages from ohai, and check
if your plugin is actually running at all. It could be a configuration issue
where your plugin is not getting picked up by ohai when chef-client runs, or
it could be failing for some reason when chef-client runs the plugin
(currently ohai’s design is to let plugins fail so that they don’t have to be
defensively coded, but this makes it tricky to debug when a plugin that isn’t
supposed to fail does fail).
--
Daniel DeLeo
Archive powered by MHonArc 2.6.16.