You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Corerelates to code central or existential to SaltP3Priority 3Salt-SSHbugbroken, incorrect, or confusing behaviorfixed-pls-verifyfix is linked, bug author to confirm fixseverity-high2nd top severity, seen by most users, causes major problems
I think it is two salt-ssh processes for two different hosts racing each other. The default --maxprocs is 25. Which means if I have two hosts, they are doing the same thing at the same time. They are both trying to create and verify, "/var/tmp/salt-ssh/cache/files/base/web/files/aB-fun-tube/frontend/public/1436894394836/images/choose-account/preview".
The fix would be to give each host it's own cache directory. Then they can't confuse each other. A workaround is "--maxprocs 1". I have now tried it with the same job five times with "--maxprocs 1" and it has worked every time.
A fix for this has been submitted in #31521. However, if occurs to me that I have not yet attempted to do a file.managed on a templated file. I am going to test that now and may end up having to add a commit or three to that PR if it doesn't work.
I am still getting this error on salt 2015.8.8.2, but only when using the orchestrate runner with ssh: true. I worked around the issue by changing the default value of maxprocs from 25 to 1 (couldn't find a way to set it for the orchestrate runner at runtime, only as a flag to salt-ssh) and haven't seen the error since.
Corerelates to code central or existential to SaltP3Priority 3Salt-SSHbugbroken, incorrect, or confusing behaviorfixed-pls-verifyfix is linked, bug author to confirm fixseverity-high2nd top severity, seen by most users, causes major problems
Activity
arroyoc commentedon Jun 18, 2015
@phpdave11 Thanks for your report. Could you show the debug log output?
ngrennan-inflection commentedon Jul 14, 2015
I have been seeing the same issue. I am using salt-ssh to for deployment through Jenkins. I was able to reproduce it on my first try.
Version:
salt-2015.5.1
ngrennan-inflection commentedon Jul 14, 2015
Here is a debug log from "salt-ssh -l debug -i web-[0-9][0-9].beta state.highstate":
ngrennan-inflection commentedon Jul 14, 2015
Seems like a race condition between creation and checking, like https://stackoverflow.com/questions/12468022/python-fileexists-error-when-making-directory
ngrennan-inflection commentedon Jul 14, 2015
I think it is two salt-ssh processes for two different hosts racing each other. The default --maxprocs is 25. Which means if I have two hosts, they are doing the same thing at the same time. They are both trying to create and verify, "/var/tmp/salt-ssh/cache/files/base/web/files/aB-fun-tube/frontend/public/1436894394836/images/choose-account/preview".
The fix would be to give each host it's own cache directory. Then they can't confuse each other. A workaround is "--maxprocs 1". I have now tried it with the same job five times with "--maxprocs 1" and it has worked every time.
7 remaining items
basepi commentedon Jan 21, 2016
The problem is I'm pretty sure we template into that directory. So we need to split up the processes.
terminalmage commentedon Feb 26, 2016
A fix for this has been submitted in #31521. However, if occurs to me that I have not yet attempted to do a file.managed on a templated file. I am going to test that now and may end up having to add a commit or three to that PR if it doesn't work.
terminalmage commentedon Feb 26, 2016
Cool, templating works.
terminalmage commentedon Feb 29, 2016
#31521 has been merged, closing this issue.
rubendv commentedon Aug 22, 2016
I am still getting this error on salt 2015.8.8.2, but only when using the orchestrate runner with ssh: true. I worked around the issue by changing the default value of maxprocs from 25 to 1 (couldn't find a way to set it for the orchestrate runner at runtime, only as a flag to salt-ssh) and haven't seen the error since.