-
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
Regression in v3001.x Orchestrate runner fails on empty state #14553
Comments
Nice catch! We'll fix this. |
@uvsmtid - is this still an issue with the latest salt? If not an issue, can this be closed? |
I've just re-confirmed the issue on Orchestrate runner still fails - only the output format changed (see below). It fails without non-zero error code but it's a separate issue #18510. Current output using
|
Thanks for the update. |
I have this problem with 2016.3.2+ds-1. I just upgraded the master from some 2015 version and this showed up. We have a bunch of states that are empty on some minions, which is now becomming a problem with plain salt (not orchestrate). The failed count may be zero, but we do get a non-zero exit code notice:
|
Same issue with 2018.3.0 (Oxygen).
|
The workaround I am currently using is to put this at the top of my state, before any filtering:
|
This is a workaround for saltstack/salt#14553 when upgrading crio 1.9 to 1.10.
This is a workaround for saltstack/salt#14553 when upgrading crio 1.9 to 1.10. (cherry picked from commit 1e20516)
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. |
Opening this issue, is still found in 3001.1, in this case when it's run under normal salt to minion execution. salt master_minion state.sls sched_state -l warningNo problems using salt-call, no problems running the state as an orchestration. salt-call state.sls sched_state -l warninglocal: Summary for localSucceeded: 0
|
Please update if you are still seeing this issue with 3004? |
I was able to reproduce this and track down the underlying cause: Lines 89 to 90 in a14fdf7
That was originally used only for requisites, eventually it percolated it's way to where it lives and is used today. In fact it's pretty trivial: empty.sls
This will show an exit code of 2. I haven't found any indication that this was an intentional choice for an empty state run, just... how things were. I don't know if anyone out there is relying on this behavior in Salt, but... it seems like it would be something possible to change 🤔 |
Closing this due to age, the old version of Salt and Python 2. |
If state renderer produces empty state (e.g. common case when Jinja template
{% if ... %}...{% endif %}
compiles out anything to do for specific minion), it can perfectly be run bysalt
command.The same state run through orchestration (via
salt-run
command) results in error.Easy to re-try:
minion_id
by real minion id everywhereSetup
empty_state.sls
:orchestrate_empty_state.sls
:Results
Versions
Both master and minion are deployed on the same Fedora 20 x86_64 host.
Workaround
Simply add a dummy state to the
empty_state.sls
file:This time orchestrate runner results in success:
The text was updated successfully, but these errors were encountered: