Created
April 30, 2018 13:21
-
-
Save snehitgajjar/6c47fe3efb552ce9244f2aae87271ea0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* ohai_plugin[lldpd] action create | |
================================================================================ | |
Error executing action `create` on resource 'ohai_plugin[lldpd]' | |
================================================================================ | |
NameError | |
--------- | |
undefined local variable or method `path' for #<#<Class:0x0000000003dbc380>:0x0000000002fc8aa8> | |
Cookbook Trace: | |
--------------- | |
/tmp/kitchen/cache/cookbooks/ohai/resources/plugin.rb:13:in `desired_plugin_path' | |
/tmp/kitchen/cache/cookbooks/ohai/resources/plugin.rb:80:in `block in class_from_file' | |
/tmp/kitchen/cache/cookbooks/ohai/resources/plugin.rb:131:in `block in after_created' | |
/tmp/kitchen/cache/cookbooks/ohai/resources/plugin.rb:130:in `each' | |
/tmp/kitchen/cache/cookbooks/ohai/resources/plugin.rb:130:in `after_created' | |
/tmp/kitchen/cache/cookbooks/ets_lldpd/recipes/default.rb:89:in `from_file' | |
Resource Declaration: | |
--------------------- | |
# In /tmp/kitchen/cache/cookbooks/ets_lldpd/recipes/default.rb | |
89: ohai_plugin 'lldpd' do | |
90: source_file 'plugins/lldpd.rb' | |
91: resource :cookbook_file | |
92: notifies :reload, 'ohai[reload_lldpd]', :immediately | |
93: end | |
94: | |
Compiled Resource: | |
------------------ | |
# Declared in /tmp/kitchen/cache/cookbooks/ets_lldpd/recipes/default.rb:89:in `from_file' | |
ohai_plugin("lldpd") do | |
action [:create] | |
default_guard_interpreter :default | |
declared_type :ohai_plugin | |
cookbook_name "ets_lldpd" | |
recipe_name "default" | |
source_file "plugins/lldpd.rb" | |
resource :cookbook_file | |
plugin_name "lldpd" | |
end | |
System Info: | |
------------ | |
chef_version=14.0.202 | |
platform=redhat | |
platform_version=6.9 | |
ruby=ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux] | |
program_name=/opt/chef/bin/chef-client | |
executable=/opt/chef/bin/chef-client | |
================================================================================ | |
Recipe Compile Error in /tmp/kitchen/cache/cookbooks/ets_lldpd/recipes/default.rb | |
================================================================================ | |
NameError | |
--------- | |
ohai_plugin[lldpd] (ets_lldpd::default line 89) had an error: NameError: undefined local variable or method `path' for #<#<Class:0x0000000003dbc380>:0x0000000002fc8aa8> | |
Cookbook Trace: | |
--------------- | |
/tmp/kitchen/cache/cookbooks/ohai/resources/plugin.rb:13:in `desired_plugin_path' | |
/tmp/kitchen/cache/cookbooks/ohai/resources/plugin.rb:80:in `block in class_from_file' | |
/tmp/kitchen/cache/cookbooks/ohai/resources/plugin.rb:131:in `block in after_created' | |
/tmp/kitchen/cache/cookbooks/ohai/resources/plugin.rb:130:in `each' | |
/tmp/kitchen/cache/cookbooks/ohai/resources/plugin.rb:130:in `after_created' | |
/tmp/kitchen/cache/cookbooks/ets_lldpd/recipes/default.rb:89:in `from_file' | |
Relevant File Content: | |
---------------------- | |
/tmp/kitchen/cache/cookbooks/ohai/resources/plugin.rb: | |
6: property :variables, kind_of: Hash | |
7: property :compile_time, [true, false], default: true | |
8: | |
9: action_class do | |
10: # return the path property if specified or | |
11: # CHEF_CONFIG_PATH/ohai/plugins if a path isn't specified | |
12: def desired_plugin_path | |
13>> if path | |
14: path | |
15: else | |
16: ohai_plugin_path | |
17: end | |
18: end | |
19: | |
20: # return the chef config files dir or fail hard | |
21: def chef_config_path | |
22: if Chef::Config['config_file'] | |
System Info: | |
------------ | |
chef_version=14.0.202 | |
platform=redhat | |
platform_version=6.9 | |
ruby=ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux] | |
program_name=/opt/chef/bin/chef-client | |
executable=/opt/chef/bin/chef-client | |
Running handlers: | |
[2018-04-27T11:25:29-05:00] ERROR: Running exception handlers | |
Running handlers complete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment