[Feature Request] supervisord.running state should check for retcode #67650
Replies: 8 comments
-
@Oloremo Thanks for the report. we should definitely account for the retcode is supervisord is going to start returning them in future versions. Marking this as a feature request for a future feature addition. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@garethgreenaway We are running Salt-2019.2.0 and supervisor 4.0.4. Since supervisor returns non-zero exit codes for supervisorctl status, it breaks salt states that depend on return of a 0 code for successful execution. Maybe as a short-term fix, the return code can be discarded in salt's |
Beta Was this translation helpful? Give feedback.
-
we're using this local patch to workaround this:
But a proper fix would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
@Oloremo A smaller patch can be to pass |
Beta Was this translation helpful? Give feedback.
-
Well, I want to catch errors. :-) It's not about avoiding the error states it's about to handle it properly. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Supervisord 4.x released long time ago with the support of proper exit codes yet for Salt it's still always 0. |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description of Issue/Question
Look like supervisord.running state is not checking the return codes of the supervisordctl.
It's probably ok since the current (3.x) version of the supervisord is always returning the 0 exit code. But the version from master (future 4.x) already has Supervisor/supervisor#668 merged which adds the correct exit codes and we use supervisord with this patch to enforce the exit codes.
Not sure what is the Salt policy for such situations.
Steps to Reproduce Issue
The example above will always be successful and will always try to apply state on each run.
Versions Report
Beta Was this translation helpful? Give feedback.
All reactions