Hi
Since upgraded from OMV5 to OMV6 every time I try to apply a configuration change or perform some adjust in samba shares, I'm getting this error and the configuration it's not applied. I don't have problems editing or adding NFS shares.
Any help would be nice
Thanks
Code
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color samba 2>&1' with exit code '1': OMV.local:
----------
ID: configure_samba_global
Function: file.managed
Name: /etc/samba/smb.conf
Result: True
Comment: File /etc/samba/smb.conf is in the correct state
Started: 20:12:51.883747
Duration: 80.076 ms
Changes:
----------
ID: configure_samba_shares
Function: file.append
Name: /etc/samba/smb.conf
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 495, in render_jinja_tmpl
template = jinja_env.from_string(tmplstr)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 941, in from_string
return cls.from_code(self, self.compile(source), globals, None)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 638, in compile
self.handle_exception(source=source_hint)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "<unknown>", line 75, in template
jinja2.exceptions.TemplateAssertionError: no filter named 'omv_conf_get_by_identifier'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/state.py", line 2171, in call
ret = self.states[cdata["full"]](
File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2316, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/states/file.py", line 6161, in append
tmpret = _get_template_texts(
File "/usr/lib/python3/dist-packages/salt/states/file.py", line 1123, in _get_template_texts
rndrd_templ_fn = __salt__["cp.get_template"](
File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/modules/cp.py", line 318, in get_template
return _client().get_template(path, dest, template, makedirs, saltenv, **kwargs)
File "/usr/lib/python3/dist-packages/salt/fileclient.py", line 806, in get_template
data = salt.utils.templates.TEMPLATE_REGISTRY[template](sfn, **kwargs)
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 261, in render_tmpl
output = render_str(tmplstr, context, tmplpath)
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 514, in render_jinja_tmpl
raise SaltRenderError(
salt.exceptions.SaltRenderError: Jinja syntax error: no filter named 'omv_conf_get_by_identifier'; line 75
---
[...]
recycle:subdir_mode = {{ recycle_subdir_mode }}
recycle:exclude = {{ recycle_exclude }}
recycle:exclude_dir = {{ recycle_exclude_dir }}
recycle:maxsize = {{ share.recyclemaxsize }}
{%- endif %}
{%- if share.sharedfolderref | omv_conf_get_by_identifier('conf.system.sharedfolder') | attr('mntentref') | omv_conf_get_by_identifier('conf.system.filesystem.mountpoint') | attr('type') == 'btrfs' %} <======================
{%- set _ = vfs_objects.append('btrfs') %}
{%- endif %}
vfs objects = {{ vfs_objects | unique | join(' ') }}
printable = {{ printable }}
create mask = {{ create_mask }}
[...]
---
Started: 20:12:51.964077
Duration: 62.844 ms
Changes:
----------
ID: configure_samba_recyclebin_cron
Function: file.managed
Name: /etc/cron.daily/openmediavault-samba-recycle
Result: True
Comment: File /etc/cron.daily/openmediavault-samba-recycle is in the correct state
Started: 20:12:52.027129
Duration: 5.021 ms
Changes:
----------
ID: remove_samba_recyclebin_cron_scripts
Function: module.run
Result: True
Comment: file.find: []
Started: 20:12:52.033138
Duration: 2.342 ms
Changes:
----------
file.find:
----------
ID: configure_default_wsdd
Function: file.managed
Name: /etc/default/wsdd
Result: True
Comment: File /etc/default/wsdd is in the correct state
Started: 20:12:52.035667
Duration: 3.081 ms
Changes:
----------
ID: divert_default_wsdd
Function: omv_dpkg.divert_add
Name: /etc/default/wsdd
Result: True
Comment: Leaving 'local diversion of /etc/default/wsdd to /etc/default/wsdd.distrib'
Started: 20:12:52.039478
Duration: 61.813 ms
Changes:
----------
ID: divert_samba_smb_config
Function: omv_dpkg.divert_add
Name: /etc/samba/smb.conf
Result: True
Comment: Leaving 'local diversion of /etc/samba/smb.conf to /etc/samba/smb.conf.distrib'
Started: 20:12:52.101622
Duration: 42.399 ms
Changes:
----------
ID: start_samba_service
Function: test.nop
Result: True
Comment: Success!
Started: 20:12:52.146435
Duration: 1.284 ms
Changes:
----------
ID: stop_samba_service_smbd
Function: service.dead
Name: smbd
Result: True
Comment: The service smbd is already dead
Started: 20:12:52.181490
Duration: 78.734 ms
Changes:
----------
ID: stop_samba_service_nmbd
Function: service.dead
Name: nmbd
Result: True
Comment: The service nmbd is already dead
Started: 20:12:52.260671
Duration: 88.251 ms
Changes:
----------
ID: stop_wsdd_service
Function: service.dead
Name: wsdd
Result: True
Comment: The service wsdd is already dead
Started: 20:12:52.349369
Duration: 77.184 ms
Changes:
Summary for OMV.local
-------------
Succeeded: 10 (changed=1)
Failed: 1
-------------
Total states run: 11
Total run time: 503.029 ms
Display More