sous-chefs / nagios

Development repository for the nagios cookbook
https://supermarket.chef.io/cookbooks/nagios
Apache License 2.0
125 stars 272 forks source link

Missing symlinks #401

Closed shurab closed 9 years ago

shurab commented 9 years ago

I have a following issue with nagios master branch when running 'kitchen converge' command. For simplicity sake I left in '.kitchen.yml' file platform section for centos-6.6 and use either server-server or server_source suite. In result I have this error:

------Exception------- Class: Kitchen::ActionFailed Message: Failed to complete #converge action: [No such file or directory @ rb_file_s_stat - /var/folders/nt/xx63rhw136qg7ft3qybr_j4c0000gp/T/server-package-centos-66-sandbox-20150602-75321-1lbz0pl/cookbooks/nagios/test/integration/server_package/bats] Please see .kitchen/logs/kitchen.log for more details Also try running kitchen diagnose --all for configuration

The only option to fix it to replace symlink /test/integration/server_package/bats by real files. Can someone make a comment about it? Does it a bug? I run everything on Mac OS X with latest chefdk 0.6.0.

shurab commented 9 years ago

I followed @sbotman advice and run these commands:

bundle install --path vendor
bundle exec kitchen converge server-package-centos-66

Unfortunately, the same error. It appear that kitchen does not follow symliks in test/integration/ tree.

bheuvel commented 9 years ago

Apparently Test-Kitchen and symlinks don't always work as expected: test-kitchen/test-kitchen#503

A PR was made to provide cross-test code: test-kitchen/test-kitchen#134 but that doesn't actually execute the "crossed" tests ( see last comment of bbergstrom in test-kitchen/busser-serverspec#26 )

sbotman commented 9 years ago

I will close this issue because it's more related to kitchen as I understand the above correctly. But please feel free to reopen this if I interpreted this incorrectly.

lock[bot] commented 6 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.