Closed nikAizuddin closed 3 years ago
@nikAizuddin Thanks for the report. You're hitting this issue here:
I've linked directly to my comment with the workaround. We're waiting on a fix from the Salt team.
ah, i see. I have to downgrade jinja2
to version 2.11.3
:
sudo python3 -m pip install jinja2==2.11.3
Thanks @myii . I'm closing this issue.
Your setup
Formula commit hash / release tag
v5.0.2-14-g9ef82f4
.Version v4.3.8 doesn't have this issue. But starting on v5.0.0+, this issue occur Raspberry Pi 4 (
x86_64
machines are not affected).Versions reports (master & minion)
I have tested
v5.0.2-14-g9ef82f4
with 3 different masterless minions. Out of 3, only 1 minion failed.This is the minion that failed, which is running on Raspberry Pi 4:
This minion has no problem, running on WSL2:
This minion also has no problem, running on Fedora:
Pillar / config used
I didn't create pillar files for this test. However, this is
/etc/salt/minion
from my Raspberry Pi 4:Bug details
Describe the bug
The following error message appear whenever I try to apply any
state.sls
states, such asTEMPLATE.config
:Steps to reproduce the bug
Use Raspberry Pi 4.
Clone this template:
Add path to
template-formula
into your/etc/salt/minion
.Then, apply
TEMPLATE.config
:Expected behaviour
Error message
Rendering SLS 'base:TEMPLATE.config.file' failed: Jinja variable 'opts' is undefined
should not occur.Attempts to fix the bug
I haven't done any attempts yet, but I think the problem comes from
TEMPLATE/libmatchers.jinja
?Additional context