-
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
[BUG] 3006.7 broke salt.cp.get_file_str (and probably other functions in the cp module) #66124
Comments
https://repo.saltproject.io/salt/py3/ |
I also stumble upon this exact same missing After adding those methods, i've managed to go a bit further but the file i was looking for is not found by this client because it will look only in pillar_roots directories but my file is located under file_roots directories. |
There is a potential fix in #66128. Is it possible for someone to apply this patch to a minion and validate it? |
Yes, it worked for me with that patch applied :-) |
I confirm this is working fine 👍 🎉 (I did almost the same by forcing the fileclient in my ext_pillar to workaround this issue 😉) |
This fix will be in |
Great! Thank you |
Description
I updated to 3006.7, and now at least the function
salt.cp.get_file_str
doesn't work when run in a pillar as jinja code.Let's say this is
my_pillar.sls
:Then, if I try to do e.g.
salt my_machine state.apply
I will getIn the master log there is
In 3006.6 this worked just fine. I looked in the source code and found this change: 8223a27#diff-63034e752393e64b82defaf83baabfd9b9431cc9c4826f35216fa7267dd894c5L166
By undoing that particular change everything works again, but the error message is put in the log all the time, so I suspect that is not the root cause. I did see in the changelog for example "Fixed an issue where fileclient requests during Pillar rendering cause fileserver backends to be needlessly refreshed. #65990". Might that be the cause?
Setup
Salt-master and salt-minion running on the same machine, and thus on the same version.
Steps to Reproduce the behavior
See description above.
Expected behavior
Everything works fine in 3006.6 and I expected it to still work in 3006.7. Unfortunately the Salt releases are very aggressively pushed to repos, removing all older versions. Is there any place I can still find 3006.6, or that is completely gone now?
Versions Report
Yesterday 3006.6
Today 3006.7 via
dnf update
The text was updated successfully, but these errors were encountered: