-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inspec fails with kitchen verify -c N #119
Comments
Confirming that we are seeing this as well.... |
We're also seeing this problem. |
Can I do anything to help resolving this issue? I'm don't really know the code, but this problem occurs in each of our CI runs. :/ |
Is this inspec/inspec#1598 issue related? |
This seems to be a problem for almost a year now |
That's the workaround, running |
It worked for me, @nhudacin. |
@adamleff do you know of anyone that can help? |
@pantocrator27 Unfortunately there is no one that is actively working on fixing this. As an open source project, we absolutely welcome members of the community helping us by contributing fixes and providing reproduction steps for those that are willing to help. I just did a quick test with the latest test-kitchen and kitchen-inspec and could not reproduce this, so for someone to engage on this, whether or not they work for Chef, we'll need some more concrete steps we can use to reproduce this issue. Thank you. |
Thanks @adamleff, I will work on providing replication steps ... however for the time being, what I am personally finding is that if you set a concurrency higher than the number of (platforms x test suites), this is when I am getting the error |
Seeing this as well, the weird thing is ONLY the verify portion fails if concurrent greater than Below is what we run on our CI system, yes we could just run Our CI build script:
Excerpt of .kitchen.yml:
|
So the crazy thing is we can run It also could be that our Windows is dodging a bullet by virtue of the WinRM transport being slow for file transfers but oddly it always seems to be thursday_patch that loses the race(condition) at See this gist for an example of failed run output, https://gist.github.com/dragon788/03c77c7aac1c27efb826387e87b892ef |
When using
but I also got
It's not consistent, sometimes it works, most of the times no parallel runs do. This seems quite broken. |
Any progress on this? Also seeing it when using CentOS 6 on AWS... |
In monitoring this, I noticed that when running |
I also wanted to prefix the output and came to this solution using GNU parallel, kl=$(kitchen list | cut -d' ' -f1 | sed 1d | grep "$BOX")
parallel -j3 --tag kitchen test {} ::: $kl |
I have switched to using |
To avoid breaking due to deprecation notices while starting up test-kitchen and kitchen.log truncated by every process starting up (but output would be garbled in any case): kl=$(kitchen list -b -l fatal| cut -d' ' -f1 | sed 1d | grep "$BOX")
parallel -j3 --tag kitchen test --no-log-overwrite {} ::: $kl |
We ran into the same issue when running For example, if you have 5 platforms, under
After this addition, we've been able to run concurrent kitchen test runs without this error. |
What’s happening? Why was this issue closed? Why do I care? What do I need to do? |
Executing multiple simultaneous
kitchen verify
runs using concurrency (-c 5
, for example) fails, apparently using the same configuration for all nodes (note target in the attached log has the same port for each run, when the boxes are all running on different ports).When running serially instead of concurrently, it works fine.
inspec-concurrent-kitchen.log.txt
The text was updated successfully, but these errors were encountered: