-
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
Orchestration runner output on Success vs Failures in 2016.3.0 #33915
Comments
@mattglv I am able to replicate this behavior:
We definitely need to get this fixed up. Thanks for reporting it. |
Also did some more testing it looks like it is just the highstate outputter. Looks like it works with yaml and json: |
Megan, thanks for looking into this! hope we can get this fixed soon. |
Need this fixed in 2016.3.2 |
hey @mattglv in the process of trying to re-replicate this issue to try to fix it it was found that my box was the only one that could replicate it. On a clean install of salt no one could replicate it. After a lot of troubleshooting I found that the only thing that ended up fixing it was wiping away /etc/salt/. (I don't recommend wiping this entire directory, I was merely trying to troubleshoot and was able to safely do this) Unfortunately we are not sure what in the directory was causing this issue, and I can no longer replicate the issue. So I was wondering if you could provide us with some more information to try to help replicate this and find out what the culprit is. I did find out what the issue was but not why it was happening. It was here that I realized
and here was a good one where it worked:
As you can see retcode is in different places which causes the highstate outputter to assign Can you provide us with a sanitized version of your master and local minion on the master configurations? Also just take a look at your /etc/salt directory and see if you notice anything unusual in there. For example maybe some keys were they do not belong, etc. |
Megan, Assuming vagrant and virtualbox are installed, if not: apt-get install -y virtualbox vagrant unzip vagrant_33915.zip salt * test.ping Let me know if I can help in any other way, really looking forward to this fix. Thanks, |
Thanks for the vagrant box, I was able to use a python debugger inside of it to get to the bottom of this. The issue was that in 2016.3.0 we added the ability for runners to specify a return code which What I think happened with @Ch3LL's box is that the minion ID was named differently when she could reproduce, from when she couldn't. This could have happened because she had an #34459 fixes this by ignoring the retcode key as its value is not itself a dictionary. |
@terminalmage Thanks for the info and the fix. I've applied your patch on my local dev environment and it seems to work as expected! |
No problem, thanks for confirming! |
This regressed here: 82a70e0 The above incorrect assumed that all data flowing into the highstate outputter is expected to be a dictionary. However, looking at _format_host() shows that it does expect to receive multiple types and does handle them accordingly. I believe that the issue reported in saltstack#33915 may be fixed by saltstack#35559 instead. This should allow the highstate outputter to display all results instead of stopping after the first one. I would like @terminalmage and @mattglv and possibly @Ch3LL to please confirm this before we get this in. Resolves saltstack#35423
I've run into an issue with the orchestration runner in the new 2016.3.0 version.
We use the orchestration runner heavily and the fixes to this runner are the main reason we're trying to upgrade ASAP; however, this issue is somewhat of a blocker.
The orchestration runner seems to not return the 'highstate' formatted output when everything succeeds but it does return it when there is a failure in one of the states.
Quick example:
install_vim.sls contains:
test_orch.sls contains:
This is what I get when I run it:
Now if I change the vim package name in install_vim.sls to 'bad_package_name':
Master:
Minion:
The text was updated successfully, but these errors were encountered: