-
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
2019.2.1: Jinja from import broken #54765
Comments
seems to be from the changes in #53563 If I revert the "file_client" function in salt/utils/jinja.py back to the state it was in in 2019.2.0, things start working again for me. It seems that in my case, when file caching fails, the wrong fileclient is being returned. Changing the function to the following to add more logging:
Then returns
Adding similar debug logging to the "old" function retuns a file client of Seems the PillarClient object is being loaded when the pillar data is rendered (my example is a masterless minion) and then is not being overwritten with a FSClient object to get the necessary files from the fileserver...that's just a guess though ping @twangboy |
Did someone found some workaround? |
@kiemlicz For other distri we pin to 2019.2.0 right now.. |
Based on #52590 I remember trying before 2019.2.1 release without any success. Why should it change now? |
* The current pre-salted `opensuse` images are using `mirror.23media.com` - https://github.com/netmanagers/salt-image-builder/blob/d6e57f6b22570530a627c89a94fed02754a3197d/scripts/prepare.sh#L99 - This has been proving to be unreliable in recent days, causing failed builds * Preparing new pre-salted images would pull in `2019.2.1`, which is a no-go - netmanagers/salt-image-builder#7 - saltstack/salt#54765 * This workaround is to use bootstrapped images in the interim
I can also confirm that I'm seeing the exact same issue (Salt 2019.2.1, CentOS 7.5 with Python 2.7) |
See saltstack/salt#54765 for context
See saltstack/salt#54765 for context
In contrast, I'm not seeing this issue.
|
Should this be closed now that #54780 is closed? |
Closing this as #54780 fixes the issue. |
Description of Issue
Starting with salt version 2019.2.1, the following statement is broken:
This is the error that occurs:
The same setup is working with 2019.2.0.
Setup
formula/map.jinja
:formula/init.sls
:Steps to Reproduce Issue
This happens for us using our kitchen-salt based setup. So only salt-call and salt-minion are installed in the vms.
Versions Report
Also happens with Debian 8, Debian 9, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS.
The text was updated successfully, but these errors were encountered: