-
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 salt-call output not very helpful since change.. #7456
Comments
First of all, what version are you running? It looks like salt-call is not properly receiving the |
Sure, here it is...
...I had tried to play with the outputer in the minion file but without any success. Thanks for looking into it! |
In fact my #7466 bug is maybe related. It seems the output function now receive a dictionnary with one extra deep level that make the whole output code fail silently with such results (and Traceback in case of config syntax error instead of showing it). |
OK, thanks. We'll figure out why it's choosing the wrong outputter. In the meantime, you can use |
Thanks but unfortunately It spits out the same output... |
Really? o.O OK, thanks, we'll get this tracked down. For kicks and giggles can you try |
LOL... the command ran fine but with the same output... Thanks for tracking it down, i'll be around for more testing should you need it :-) |
Hehe, so no change? Figured as much. |
OK.. so I tested some more this weekend.. Hopefully this might help you track this down easyier... I found that when choosing different outputers, naturally, I get different results.. But the results for all that I tried still appears to be in "debug" mode.. For example, with YAML as the outputer:
And with JSON as the outputer:
Anyway, hope that helps... |
It looks like I may have introduced this regression when I added my state summary. Looking into this now. |
OK, this is not being caused by my state summary, but an exception was being caught while tallying up those results, which was caused by something else entirely. I've fixed the problem and will have details in a pull request shortly. |
Details (and fix) in #7522. |
Hmm, I hope replying to this will re-open the issue.. it's still not fixed... Edit: I guess it doesn't... Can we re-open this ticket? I installed the devel branch first.
Then I ran my script which compiled version 0.17.0-250-g5140c33 and I got the same "debug" ouput that I originally posted about...
@terminalmage I got your message while editing this one... sorry, I wasn't sure if it would post, so that was just a test... (now I know) :-) |
@mlebel Please provide more details, then. I tested and the issue is fixed for me. |
Just FYI, edits to posts never send new e-mails, even if you mention someone. I pinged @terminalmage, so he should look at this shortly. =) |
ahhh...that is good to know..LOL Thanks @basepi |
@terminalmage If the fix is applied in dev, which it appears it is. Then in my test above, I had the correct version in the first case i listed. But this first case fails with a traceback error while running both salt or salt-call... I tested all kinds of different versions i could find today and I couldn't get passed that traceback. Thanks! |
@mlebel Sorry, I don't understand what you're getting at. The first time you posted the output to So, you could not possibly have had the "correct version" unless you were using something I don't know what you mean by "I tested all kinds of different versions i could find today". If you just install from git, you'll have a new enough version, which is why I asked you do do that in my previous comment. |
@terminalmage I believe I didn't explain myself properly. To clarify, I am referring to my post where I asked for the ticket to be re-opened. In that post, I gave two different versions of salt that I tested. In the first version, which was downloaded directly from the develop branch on the website. I copied the zip file over to my server and proceeded to extract it and compile everything into installable packages. This version turned out to be the 0.17.0 version. (as reported by salt-call --version) This version is the one that I ran into the traceback error that i posted in the above post in question.. In my past experience with using salt, whenever commits were done, I had always seen the changes by using my script to re-compile salt. So I thought I will try my script. So this is where I ended up compiling salt 0.17.0-250-g5140c33 (the actual command used in my script is "git clone https://github.com/saltstack/salt.git"). And this version ran fine except that the "debug" output was still there. As you explained why I still saw it, I was left wondering why I didn't have the latest version with my script. So I browsed through commits and tried downloading some version that started with a long string of numbers.. Anyway, that didn't work either. I hope this helps...and perhaps I can be steered in a better direction if it exists :-) |
@basepi and @terminalmage I opened another ticket for the traceback and it was closed referencing '#7565'. Now that this is fixed I looked at cloning the develop branch and for the right syntax for it.
That finally got me 'salt-call 0.17.0-465-g44d40db'.. Now, on to the real test for the salt-call output.... Drumm roll..... Fail... |
You do know that you can just use At any rate, I'm still not able to replicate this, even with an up-to-date git checkout. Whatever you're experiencing is likely an artifact of the odd way you're installing salt. |
@terminalmage Thanks for the tip on git pull, I will adjust my script accordingly... It definitely will make things faster in the future... Either way, here is a list of the commands used to compile the salt debs:
Then I copy and install the debs to each machine. (I found this way of doing it in the salt docs a while back) (I also did it this way to get the debs working on rasberry pi's) To me, this seems pretty standard... Now to prove or disprove our points, I used the same compiled debs ( Now, I'm pretty sure that there's something about this rasbian/raspbx system running on the raspberry pi that is causing this error. Since this error is new and everything worked before, then I feel that something was perhaps missed somewhere. How do you suggest we approach this problem? |
As far as I am concerned, this issue is fixed. There is nothing architecture-specific in the code that would have caused that error. |
Alright thanks, it must be another bug unrelated to this one.. |
@mlebel Can you try installing via the instructions here? http://docs.saltstack.com/topics/installation/index.html#platform-specific-installation-instructions Then, when 0.17.0 is installed, get the latest
Then restart the master and minion. I don't know what you're doing with the debs, but I want to make sure you have a good install. A clean machine would be even better, then follow the above steps. I've never heard of anyone installing salt the way you're describing, and I want to make sure that it's not an artifact of your install method, like @terminalmage mentioned. |
Actually, just noticed you were talking about raspbian. In that case, you probably can't use the Debian instructions (not sure either way), but the setup.py method should still work, assuming you have the dependencies installed. |
This discussion is continued in #7591... |
Hello, I wasn't able to find another post about this, so i apologize if there is one and i missed it..
Lately, the output of the salt-call command on the minion looks something like this (Colourless):
Before, it used to look similar to what the Master outputs (Colourless):
I find that the output is not that clear, long and the colours are barely readable on a white terminal background.
So, Is there an option that allow's me to get the "old" output?
If not, could I ask why it was changed like this?
Lastly, if I must keep this output, Is there a way to make it more readable like the default output I get on the Master? (Green means good, Teal means it changed and Red means an ERROR)
Thanks,
Marc
The text was updated successfully, but these errors were encountered: