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
Elasticsearch as master_job_cache throws critical #23125
Comments
@jfindlay Here we go My master configuration: master_job_cache: elasticsearch
elasticsearch:
host: 'eshost:9200'
index: 'salt_test' The part from the logfile when I run a
|
@msteed I will test this as soon as I can and update the issue accordingly. |
@msteed Well, at last. Sry for the delay. I used the docs from http://docs.saltstack.com/en/develop/ref/modules/all/salt.modules.elasticsearch.html#module-salt.modules.elasticsearch Installed versions: Master configuration: master_job_cache: elasticsearch
elasticsearch:
host: 'eshost:9200' And a simple
I hope I did something wrong. Otherwise it still doesn't work. |
@bemeyert: Sorry, you are right that the elasticsearch returner is not currently set up for use as the master job cache. It is missing two functions, I think this would not be too difficult to get working. I will try to get to this week, or if you are interested in taking it on we will gladly accept a pull request. |
@msteed: I really would like to help. But neither my time nor my (little to non-existent) Python allow me to fix this. I'm sorry. I wouldn't even now where to begin with the tests. |
As I looked at this I quickly reached the limits of my elasticsearch knowledge, and I'm not sure I can do a decent job of it. @bechtoldt: would you be willing to take a look at making the elasticsearch returner work as a master job cache? See my comment above. |
@bemeyert: please give this pr a spin and let me know if it works for you. |
@msteed I'm sorry, bu my Git(Hub) foo isn't good enough. How can I test your changes? |
@msteed Gods dammit, I just realized that you want to merge this into 2015.8, wich is supposed too be released soon. And I'm sitting here twiddling my thumbs and having no clue how to test this. I'm really sorry about that. So any pointers on how I can test this would be much appreciated. As soon as I know how to proceed I'll get on it. |
@msteed : I just saw, that it was merged into saltstack:2015.8. Not my days.... |
@msteed Did it. Installed Salt 2015.8 from Git and elasticsearch 1.6 via "pip". Master config: master_job_cache: elasticsearch
elasticsearch:
host: eshost:9200' Some tests:
So the job runner (at least "list_jobs") don't seem to work. But there are indices in our Elasticsearch. Found the following:
Their content looks good to me Do you need more information? Cheers |
@bemeyert: Thanks for the test results, and my apologies for not getting back to you earlier about testing. I wonder if the message The |
@msteed No harm done ;) It was just my weekend panicking... Yeah, about the quotes. That was my mistake while changing the hostname "manually". To be sure I ran the test again. First I installed
Here the
|
@msteed @bechtoldt Any news on this one? |
Having exactly the same issue. Is there any plan fixing it? Maybe next release? Thanks very much.
|
Sorry, I don't have free capacity to work on this at the moment. |
+1 to this, I would love to use elasticsearch as a external master job cache but can't. |
Anyone have any pointers where to start looking to fix this? It's killing salt for us that we can't visualize our salt jobs. |
Ping @msteed. |
My understanding is that for complete external job cache support, the following routines need to be added to
See https://docs.saltstack.com/en/develop/ref/returners/#external-job-cache-support for details. |
I still don't understand how exactly this works. So, configuring master_job_cache allows me to send data to ES (even if getting the warning |
Hi here! |
@bemeyert I raised a couple of PRs around November/January time to fix some config loading issues and add extra functionality around a unified index. These may be what you are referring to? These were all to do with posting job data to elsasticsearch but not to do with using it as an external job cache. |
@Tanoti I guess you are referring to the diff between develop and v2016.3.6? |
@bemeyert Correct, it looks like my code was not pulled into a branch until the 2017.7 version, As it happens I am about to pick up this work again as we are looking once more at elasticsearch but it is not going to be the external job cache side as we've not decided how we will implement that yet. |
@Tanoti Thanks for letting me know. |
@Tanoti You mentioned getting job data into elasticsearch but not using it as a job cache. Could you point me in the right direction to read more about implementing that? The title of this article says storing job data, but then only talks about the job cache option. |
@getSurreal I'm sorry, I've not been following this. We dropped using elasticsearch as a job data store/cache a year ago and are implementing a DynamoDB system using an event bus engine instead. |
closing this in favor of newer issue mentioned |
Hi all,
Since the local job cache is just too slow(even for only 50 Minions) I wanted to use Elasticsearch as master_job_cache. But I can't get the thing working. Configuration and error message when running a
salt\* test.ping
can be found here. Salt version is 2014.7.5, OS is CentOS 6, Elasticsearch-py has version 1.4.This might be a duplicate of #20826
Cheers
The text was updated successfully, but these errors were encountered: