-
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
minion retcode is incorrect #30914
Comments
@plastikos, thanks for reporting. Similar to #18510. |
@jfindlay, I don't think these are the same. I'm not concerned (in this ticket) about the overall exit code of salt. |
@DmitryKuzmenko states this is broken with This is a show-stopper for any upgrades at our site. |
@plastikos have you checked this with #29643 applied? The fix is merged into 2016.3 and not released yet. |
I'll be getting back to this on Wednesday. Here's a big question: Isn't it obvious what this integration test does? Why not just merge it since it should succeed? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Certain state failures do not set
retcode
properly. Consequently the master does not enumerate the minions as failed and summary information is incorrect. This appears to be related to states that cause additional salt calls that instantiate new__context__
. The roll-up of child__context__
to the parent__context__
fails and then__context__['retcode']
is incorrect.It is notable that when the master parses the return information for colorization that the failed states are correctly colorized due to state return structures correctly indicate the failure. Unfortunately the overall success/failure is determined by reading
retcode
which is incorrect. Consequently summary information provided by-v --summary
is incorrect. This can go unnoticed when visually scanning the output from a few minions, but when there are thousands of minions the summary information must be reliable.Put the following contents in
junk/foo.sls
:The following is expected output:
While
minion-a
shows aFailed: 1
it does not show as a minion with errors.The text was updated successfully, but these errors were encountered: