Salt Version:
Salt: 3003rc1+348.gd637879696
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: Not Installed
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 2.11.3
libgit2: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack: 1.0.2
msgpack-pure: Not Installed
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: Not Installed
pycryptodome: 3.10.1
pygit2: Not Installed
Python: 3.8.10 (default, Jun 2 2021, 10:49:15)
python-gnupg: Not Installed
PyYAML: 5.4.1
PyZMQ: 21.0.2
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.3.3
System Versions:
dist: ubuntu 20.04 focal
locale: utf-8
machine: x86_64
release: 5.11.0-37-generic
system: Linux
version: Ubuntu 20.04 focal
The following error happens when trying to apply openvpn formula useing salt-ssh.
Unable to manage file: Jinja error: openvpn/macros.jinja
I have the following in my Saltfile which normally fixes the issue.
- salt://openvpn/macros.jinja
Comment: Unable to manage file: Jinja error: openvpn/macros.jinja
/var/tmp/.salt_6cb4b9_salt/running_data/var/cache/salt/minion/files/base/openvpn/files/common_opts.jinja(1):
---
{% from "openvpn/macros.jinja" import multipart_param with context %} <======================
{%- if config.daemon is defined and config.daemon == True %}
daemon
{%- endif -%}
[...]
---
Traceback (most recent call last):
File "/var/tmp/.salt_6cb4b9_salt/pyall/salt/utils/templates.py", line 501, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/var/tmp/.salt_6cb4b9_salt/pyall/jinja2/environment.py", line 1090, in render
self.environment.handle_exception()
File "/var/tmp/.salt_6cb4b9_salt/pyall/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/var/tmp/.salt_6cb4b9_salt/pyall/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "<template>", line 5, in top-level template code
File "/var/tmp/.salt_6cb4b9_salt/running_data/var/cache/salt/minion/files/base/openvpn/files/common_opts.jinja", line 1, in top-level template code
{% from "openvpn/macros.jinja" import multipart_param with context %}
File "/var/tmp/.salt_6cb4b9_salt/pyall/salt/utils/jinja.py", line 198, in get_source
raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: openvpn/macros.jinja
Your setup
Formula commit hash / release tag
I'm using HEAD on master
Versions reports (master & minion)
Sunning salt-ssh
Bug details
Describe the bug
The following error happens when trying to apply openvpn formula useing salt-ssh.
Unable to manage file: Jinja error: openvpn/macros.jinjaI have the following in my Saltfile which normally fixes the issue.
- salt://openvpn/macros.jinjaHere's the output