-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
salt-ssh return exit code 0 if salt-call fails to run #50727
Comments
This is not fixed in the following versions available via Ubuntu:
Installing via pip3 also gives an exit code of 0 (!) with the following on-screen errors:
The installed |
I just merged the PR that, apparently, fixed this. |
What exactly is trying to build a salt-ssh package? |
Sorry, I don't understand your question; the output snippet you mentioned is from the pip3 install command:
I am not familiar with the process but I guess it is preparing "wheels" for salt-ssh. This SO answer sheds some light: https://stackoverflow.com/a/44862371 |
Which PR? Can't see it: https://github.com/saltstack/salt/pulls?q=is%3Apr+is%3Aclosed Also, I have to ask: no regression test for this? :) |
I think this is still an issue. While some The issue leading to the
where Running
Versions ReportI'm running salt-ssh from master
|
I'm reasonably sure with #64515, #64576 and #64542 merged that this can finally be closed, so marked it on the PR. The actual fix for the initial description is the last one I assume since it makes any JSON decode failure an exception in cases where JSON is to be expected (see test: https://github.com/saltstack/salt/pull/64542/files#diff-ae71f89f956935339d33b0b39496d0c77d51b532f65075d89b42d7feec716467). |
Description of Issue/Question
When
salt-ssh
fails to run requested state, it still returns code 0.If I try
salt-ssh f29min-test grains.items
I get additionally:The actual reason why it failed is already addressed in #48289, the reason is irrelevant to this bug.
This is yet another issue in this family: #7876, #28300, #23102, #41296, ...
This is similar to #18510, but that is mostly salt/salt-call, not salt-ssh.
Steps to Reproduce Issue
Full log with
-l all
salt-ssh-all.log
Versions Report
The text was updated successfully, but these errors were encountered: