-
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
json/utf8 problem with pgjsonb, postgres and mysql returners #55226
Comments
would you mind adding this log:
and pasting a sanitized version of load here. I can probably write up a unit test to help replicate this problem and possibly a fix if i know what load looks like. |
|
The similar problem occurs with postgres module as well:
|
Signature check also fails and if I understand correctly, it should no matter that it fails.
|
I think it is something not related to postgres at all. Configured mariadb as a job cache. Seems to work until:
|
I tried to switch to python3-based salt as well. In that case all three returners complained that the signature is not JSON serializable. To me it looks like something fundamental is broken here. How can we move forward with this issue, @Ch3LL? It's blocking salt rollout for us. |
Tagging some more people because things have stayed quite quiet here and it seems like a major issue. |
can you try this fix:
If so i can write up a PR with some tests. If it doesn't i'll dive into it more. |
Thanks for your reply, @Ch3LL.
|
Here is the result when both patches are applied:
Function looks like this:
|
thanks for trying that. That fix did work for me when i threw the load you pasted into it so I will need to dig into this a bit further and setup an instance of postgress or mysql. i've added this to my backlog thanks |
Is there any update? We ran into the same problem |
same issue happening |
Another quick way to trigger this bug via cli on a salt-master (assuming you have event_return and master_job_cache set to postgres) /etc/salt/master.d/event_db.conf
|
see issue: saltstack#55226 It would probably make sense for something like this to be in a util for other returners to access.
Ive put together a fix in #62150 for the postgress returner. If anyone else has an example of how to trigger it ill happy test that it worked for that too |
I have updated #62150 with a patch for mysql and pgjsonb also |
Setup
/etc/salt/master
Steps to Reproduce Issue
Postgres:
Versions Report
master:
minion:
The text was updated successfully, but these errors were encountered: