Created
January 26, 2017 21:01
-
-
Save nmattam/d43959d1f2e048433f0cfa83b6a5c951 to your computer and use it in GitHub Desktop.
Kitchen converging app-install-centos-67
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
* directory[/opt/splunk/etc/apps/test_app/metadata] action create | |
- create new directory /opt/splunk/etc/apps/test_app/metadata | |
- change owner from '' to 'splunk' | |
- change group from '' to 'splunk' | |
- restore selinux security context | |
* ruby_block[set config overrides] action run | |
- execute the ruby block set config overrides | |
* splunk_conf[testing.conf] action configure | |
* directory[/opt/splunk] action create (up to date) | |
- update apps/set config overrides/default/testing.conf | |
- set config to {"debug"=>{"banana"=>"yellow"}} (was {}) | |
* splunk_service[init_before_config] action init | |
* splunk_restart[init_before_config] action check (up to date) | |
* directory[/opt/splunk] action create (up to date) | |
(up to date) | |
* ruby_block[Wipe cache after initialization] action nothing (skipped due to action :nothing) | |
* file[/opt/splunk/etc/apps/set config overrides/default/testing.conf] action create | |
* Parent directory /opt/splunk/etc/apps/set config overrides/default does not exist. | |
================================================================================ | |
Error executing action `create` on resource 'file[/opt/splunk/etc/apps/set config overrides/default/testing.conf]' | |
================================================================================ | |
Chef::Exceptions::EnclosingDirectoryDoesNotExist | |
------------------------------------------------ | |
Parent directory /opt/splunk/etc/apps/set config overrides/default does not exist. | |
Cookbook Trace: | |
--------------- | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider.rb:133:in `compile_and_converge_action' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider.rb:133:in `compile_and_converge_action' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge' | |
Resource Declaration: | |
--------------------- | |
# In /tmp/kitchen/cache/cookbooks/cerner_splunk_ingredient/resources/splunk_conf.rb | |
105: file new_resource.path.to_s do | |
106: owner config_user | |
107: group config_group | |
108: content CernerSplunk::ConfHelpers.merge_config(reset ? {} : existing_config(new_resource.path), config) | |
109: end if changed?(:config) | |
110: end | |
111: end | |
Compiled Resource: | |
------------------ | |
# Declared in /tmp/kitchen/cache/cookbooks/cerner_splunk_ingredient/resources/splunk_conf.rb:105:in `block in <class:SplunkConf>' | |
file("/opt/splunk/etc/apps/set config overrides/default/testing.conf") do | |
action [:create] | |
retries 0 | |
retry_delay 2 | |
default_guard_interpreter :default | |
declared_type :file | |
cookbook_name "cerner_splunk_ingredient_test" | |
owner "splunk" | |
group "splunk" | |
content "# Warning: This file is managed by Chef!\n# Comments will not be preserved and configuration may be overwritten.\n\n[debug]\nbanana = yellow\n" | |
atomic_update true | |
path "/opt/splunk/etc/apps/set config overrides/default/testing.conf" | |
end | |
Platform: | |
--------- | |
x86_64-linux | |
================================================================================ | |
Error executing action `configure` on resource 'splunk_conf[testing.conf]' | |
================================================================================ | |
Chef::Exceptions::EnclosingDirectoryDoesNotExist | |
------------------------------------------------ | |
file[/opt/splunk/etc/apps/set config overrides/default/testing.conf] (/tmp/kitchen/cache/cookbooks/cerner_splunk_ingredient/resources/splunk_conf.rb line 105) had an error: Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory /opt/splunk/etc/apps/set config overrides/default does not exist. | |
Cookbook Trace: | |
--------------- | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider.rb:133:in `compile_and_converge_action' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider.rb:133:in `compile_and_converge_action' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge' | |
Resource Declaration: | |
--------------------- | |
# In /tmp/kitchen/cache/cookbooks/cerner_splunk_ingredient_test/recipes/splunk_app.rb | |
3: splunk_conf 'testing.conf' do | |
4: config( | |
5: debug: { | |
6: banana: 'yellow' | |
7: } | |
8: ) | |
9: end | |
10: end) | |
Compiled Resource: | |
------------------ | |
# Declared in /tmp/kitchen/cache/cookbooks/cerner_splunk_ingredient_test/recipes/splunk_app.rb:3:in `block (2 levels) in from_file' | |
splunk_conf("testing.conf") do | |
action [:configure] | |
retries 0 | |
retry_delay 2 | |
default_guard_interpreter :default | |
declared_type :splunk_conf | |
cookbook_name "cerner_splunk_ingredient_test" | |
config {"debug"=>{"banana"=>"yellow"}} | |
package :splunk | |
install_dir "/opt/splunk" | |
path #<Pathname:/opt/splunk/etc/apps/set config overrides/default/testing.conf> | |
cache {"existing_config"=>{"/opt/splunk/etc/apps/set config overrides/default/testing.conf"=>{"debug"=>{"banana"=>"yellow"}}}} | |
user "splunk" | |
scope :none | |
end | |
Platform: | |
--------- | |
x86_64-linux | |
================================================================================ | |
Error executing action `install` on resource 'splunk_app_custom[test_app]' | |
================================================================================ | |
Chef::Exceptions::EnclosingDirectoryDoesNotExist | |
------------------------------------------------ | |
splunk_conf[testing.conf] (/tmp/kitchen/cache/cookbooks/cerner_splunk_ingredient_test/recipes/splunk_app.rb line 3) had an error: Chef::Exceptions::EnclosingDirectoryDoesNotExist: file[/opt/splunk/etc/apps/set config overrides/default/testing.conf] (/tmp/kitchen/cache/cookbooks/cerner_splunk_ingredient/resources/splunk_conf.rb line 105) had an error: Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory /opt/splunk/etc/apps/set config overrides/default does not exist. | |
Cookbook Trace: | |
--------------- | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider.rb:133:in `compile_and_converge_action' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider.rb:133:in `compile_and_converge_action' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge' | |
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge' | |
Resource Declaration: | |
--------------------- | |
# In /tmp/kitchen/cache/cookbooks/cerner_splunk_ingredient_test/recipes/splunk_app.rb | |
1: splunk_app_custom 'test_app' do | |
2: configs(proc do | |
3: splunk_conf 'testing.conf' do | |
4: config( | |
5: debug: { | |
6: banana: 'yellow' | |
7: } | |
8: ) | |
9: end | |
10: end) | |
11: | |
12: files(proc do |app_path| | |
13: file Pathname.new(app_path).join('plain_file.txt').to_s do | |
14: content 'A secret to everybody' | |
15: end | |
16: end) | |
17: | |
18: metadata( | |
19: views: { | |
20: access: { read: '*', write: %w(admin power) } | |
21: }, | |
22: 'views/index_check' => { | |
23: access: { read: 'admin', write: 'admin' } | |
24: } | |
25: ) | |
26: end | |
Compiled Resource: | |
------------------ | |
# Declared in /tmp/kitchen/cache/cookbooks/cerner_splunk_ingredient_test/recipes/splunk_app.rb:1:in `from_file' | |
splunk_app_custom("test_app") do | |
action [:install] | |
updated true | |
updated_by_last_action true | |
retries 0 | |
retry_delay 2 | |
default_guard_interpreter :default | |
declared_type :splunk_app_custom | |
cookbook_name "cerner_splunk_ingredient_test" | |
recipe_name "splunk_app" | |
configs #<Proc:0x00000004d65638@/tmp/kitchen/cache/cookbooks/cerner_splunk_ingredient_test/recipes/splunk_app.rb:2> | |
files #<Proc:0x00000004d64fa8@/tmp/kitchen/cache/cookbooks/cerner_splunk_ingredient_test/recipes/splunk_app.rb:12> | |
metadata {:views=>{"access"=>"read : [ * ], write : [ admin, power ]"}, "views/index_check"=>{"access"=>"read : [ admin ], write : [ admin ]"}} | |
package :splunk | |
install_dir "/opt/splunk" | |
app_path #<Pathname:/opt/splunk/etc/apps/test_app> | |
end | |
Platform: | |
--------- | |
x86_64-linux | |
Running handlers: | |
[2017-01-26T21:00:22+00:00] ERROR: Running exception handlers | |
Running handlers complete | |
[2017-01-26T21:00:22+00:00] ERROR: Exception handlers complete | |
Chef Client failed. 20 resources updated in 58 seconds | |
[2017-01-26T21:00:22+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out | |
[2017-01-26T21:00:22+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report | |
[2017-01-26T21:00:22+00:00] ERROR: splunk_app_custom[test_app] (cerner_splunk_ingredient_test::splunk_app line 1) had an error: Chef::Exceptions::EnclosingDirectoryDoesNotExist: splunk_conf[testing.conf] (/tmp/kitchen/cache/cookbooks/cerner_splunk_ingredient_test/recipes/splunk_app.rb line 3) had an error: Chef::Exceptions::EnclosingDirectoryDoesNotExist: file[/opt/splunk/etc/apps/set config overrides/default/testing.conf] (/tmp/kitchen/cache/cookbooks/cerner_splunk_ingredient/resources/splunk_conf.rb line 105) had an error: Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory /opt/splunk/etc/apps/set config overrides/default does not exist. | |
[2017-01-26T21:00:24+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) | |
>>>>>> ------Exception------- | |
>>>>>> Class: Kitchen::ActionFailed | |
>>>>>> Message: 1 actions failed. | |
>>>>>> Converge failed on instance <app-install-centos-67>. Please see .kitchen/logs/app-install-centos-67.log for more details | |
>>>>>> ---------------------- | |
>>>>>> Please see .kitchen/logs/kitchen.log for more details | |
>>>>>> Also try running `kitchen diagnose --all` for configuration |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment