Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color systemd-networkd 2>&1' with exit code '1': raspberrypi:
----------
ID: unmask_systemd_networkd
Function: service.unmasked
Name: systemd-networkd
Result: True
Comment: Service systemd-networkd was already unmasked
Started: 10:16:24.999218
Duration: 25.482 ms
Changes:
----------
ID: enable_systemd_networkd
Function: service.enabled
Name: systemd-networkd
Result: True
Comment: Service systemd-networkd is already enabled, and is in the desired state
Started: 10:16:25.025067
Duration: 30.675 ms
Changes:
----------
ID: remove_systemd_networkd_defaults
Function: file.absent
Name: /etc/systemd/network/05-openmediavault-default.link
Result: True
Comment: File /etc/systemd/network/05-openmediavault-default.link is not present
Started: 10:16:25.061471
Duration: 1.55 ms
Changes:
----------
ID: unmask_systemd_resolved
Function: service.unmasked
Name: systemd-resolved
Result: True
Comment: Service systemd-resolved was already unmasked
Started: 10:16:25.063296
Duration: 23.387 ms
Changes:
----------
ID: enable_systemd_resolved
Function: service.enabled
Name: systemd-resolved
Result: True
Comment: Service systemd-resolved is already enabled, and is in the desired state
Started: 10:16:25.087030
Duration: 19.568 ms
Changes:
----------
ID: configure_etc_network_interfaces
Function: file.managed
Name: /etc/network/interfaces
Result: True
Comment: File /etc/network/interfaces is in the correct state
Started: 10:16:25.107000
Duration: 154.786 ms
Changes:
----------
ID: remove_netplan_systemd_networkd_config_files
Function: module.run
Result: True
Comment: file.find: []
Started: 10:16:25.263847
Duration: 3.474 ms
Changes:
----------
file.find:
----------
ID: remove_netplan_empty_systemd_networkd_config_files
Function: module.run
Result: True
Comment: file.find: []
Started: 10:16:25.267716
Duration: 2.76 ms
Changes:
----------
file.find:
----------
ID: remove_netplan_config_files
Function: module.run
Result: True
Comment: file.find: ['/etc/netplan/10-openmediavault-default.yaml', '/etc/netplan/30-openmediavault-wlan0.yaml']
Started: 10:16:25.270773
Duration: 3.302 ms
Changes:
----------
file.find:
- /etc/netplan/10-openmediavault-default.yaml
- /etc/netplan/30-openmediavault-wlan0.yaml
----------
ID: configure_netplan_default
Function: file.managed
Name: /etc/netplan/10-openmediavault-default.yaml
Result: True
Comment: File /etc/netplan/10-openmediavault-default.yaml updated
Started: 10:16:25.274369
Duration: 338.605 ms
Changes:
----------
diff:
New file
----------
ID: configure_netplan_ethernet_eth0
Function: file.managed
Name: /etc/netplan/20-openmediavault-eth0.yaml
Result: False
Comment: Unable to manage file: Jinja error: [Errno 2] No such file or directory: '/sys/class/net/eth0/addr_assign_type'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 477, in render_jinja_tmpl
output = template.render(**decoded_context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 6, in top-level template code
File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 396, in call
return __context.call(__obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/modules/file.py", line 3973, in read
with salt.utils.files.fopen(path, access_mode) as file_obj:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/utils/files.py", line 393, in fopen
f_handle = open(*args, **kwargs) # pylint: disable=resource-leakage
^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/net/eth0/addr_assign_type'
; line 6
---
{%- set dns_config = salt['omv_conf.get']('conf.system.network.dns') -%}
network:
ethernets:
{{ interface.devicename }}:
match:
{%- if salt['file.read']('/sys/class/net/' + interface.devicename + '/addr_assign_type') | int == 0 %} <======================
macaddress: {{ salt['grains.get']('hwaddr_interfaces:' + interface.devicename) }}
{%- else %}
name: {{ interface.devicename }}
{%- endif %}
{%- if interface.altmacaddress | length > 0 %}
[...]
---
Started: 10:16:25.613270
Duration: 453.341 ms
Changes:
----------
ID: configure_netplan_wifi_wlan0
Function: file.managed
Name: /etc/netplan/30-openmediavault-wlan0.yaml
Result: True
Comment: File /etc/netplan/30-openmediavault-wlan0.yaml updated
Started: 10:16:26.066945
Duration: 420.66 ms
Changes:
----------
diff:
New file
----------
ID: apply_netplan_config
Function: cmd.run
Name: netplan apply
Result: True
Comment: Command "netplan apply" run
Started: 10:16:26.489984
Duration: 2970.259 ms
Changes:
----------
pid:
9275
retcode:
0
stderr:
Cannot call openvswitch: ovsdb-server.service is not running.
stdout:
----------
ID: symlink_systemd_resolvconf
Function: file.symlink
Name: /etc/resolv.conf
Result: True
Comment: Symlink /etc/resolv.conf is present and owned by root:root
Started: 10:16:29.460574
Duration: 732.593 ms
Changes:
Summary for raspberrypi
-------------
Succeeded: 13 (changed=6)
Failed: 1
-------------
Total states run: 14
Total run time: 5.180 s
[ERROR ] Rendering exception occurred
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 477, in render_jinja_tmpl
output = template.render(**decoded_context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 6, in top-level template code
File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 396, in call
return __context.call(__obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/modules/file.py", line 3973, in read
with salt.utils.files.fopen(path, access_mode) as file_obj:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/utils/files.py", line 393, in fopen
f_handle = open(*args, **kwargs) # pylint: disable=resource-leakage
^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/net/eth0/addr_assign_type'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 219, in render_tmpl
output = render_str(tmplstr, context, tmplpath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 523, in render_jinja_tmpl
raise SaltRenderError(
salt.exceptions.SaltRenderError: Jinja error: [Errno 2] No such file or directory: '/sys/class/net/eth0/addr_assign_type'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 477, in render_jinja_tmpl
output = template.render(**decoded_context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 6, in top-level template code
File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 396, in call
return __context.call(__obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/modules/file.py", line 3973, in read
with salt.utils.files.fopen(path, access_mode) as file_obj:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/utils/files.py", line 393, in fopen
f_handle = open(*args, **kwargs) # pylint: disable=resource-leakage
^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/net/eth0/addr_assign_type'
; line 6
---
{%- set dns_config = salt['omv_conf.get']('conf.system.network.dns') -%}
network:
ethernets:
{{ interface.devicename }}:
match:
{%- if salt['file.read']('/sys/class/net/' + interface.devicename + '/addr_assign_type') | int == 0 %} <======================
macaddress: {{ salt['grains.get']('hwaddr_interfaces:' + interface.devicename) }}
{%- else %}
name: {{ interface.devicename }}
{%- endif %}
{%- if interface.altmacaddress | length > 0 %}
[...]
---
[ERROR ] Unable to manage file: Jinja error: [Errno 2] No such file or directory: '/sys/class/net/eth0/addr_assign_type'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 477, in render_jinja_tmpl
output = template.render(**decoded_context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 6, in top-level template code
File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 396, in call
return __context.call(__obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/modules/file.py", line 3973, in read
with salt.utils.files.fopen(path, access_mode) as file_obj:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/utils/files.py", line 393, in fopen
f_handle = open(*args, **kwargs) # pylint: disable=resource-leakage
^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/net/eth0/addr_assign_type'
; line 6
---
{%- set dns_config = salt['omv_conf.get']('conf.system.network.dns') -%}
network:
ethernets:
{{ interface.devicename }}:
match:
{%- if salt['file.read']('/sys/class/net/' + interface.devicename + '/addr_assign_type') | int == 0 %} <======================
macaddress: {{ salt['grains.get']('hwaddr_interfaces:' + interface.devicename) }}
{%- else %}
name: {{ interface.devicename }}
{%- endif %}
{%- if interface.altmacaddress | length > 0 %}
[...]
---
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color systemd-networkd 2>&1' with exit code '1': raspberrypi:
----------
ID: unmask_systemd_networkd
Function: service.unmasked
Name: systemd-networkd
Result: True
Comment: Service systemd-networkd was already unmasked
Started: 10:16:24.999218
Duration: 25.482 ms
Changes:
----------
ID: enable_systemd_networkd
Function: service.enabled
Name: systemd-networkd
Result: True
Comment: Service systemd-networkd is already enabled, and is in the desired state
Started: 10:16:25.025067
Duration: 30.675 ms
Changes:
----------
ID: remove_systemd_networkd_defaults
Function: file.absent
Name: /etc/systemd/network/05-openmediavault-default.link
Result: True
Comment: File /etc/systemd/network/05-openmediavault-default.link is not present
Started: 10:16:25.061471
Duration: 1.55 ms
Changes:
----------
ID: unmask_systemd_resolved
Function: service.unmasked
Name: systemd-resolved
Result: True
Comment: Service systemd-resolved was already unmasked
Started: 10:16:25.063296
Duration: 23.387 ms
Changes:
----------
ID: enable_systemd_resolved
Function: service.enabled
Name: systemd-resolved
Result: True
Comment: Service systemd-resolved is already enabled, and is in the desired state
Started: 10:16:25.087030
Duration: 19.568 ms
Changes:
----------
ID: configure_etc_network_interfaces
Function: file.managed
Name: /etc/network/interfaces
Result: True
Comment: File /etc/network/interfaces is in the correct state
Started: 10:16:25.107000
Duration: 154.786 ms
Changes:
----------
ID: remove_netplan_systemd_networkd_config_files
Function: module.run
Result: True
Comment: file.find: []
Started: 10:16:25.263847
Duration: 3.474 ms
Changes:
----------
file.find:
----------
ID: remove_netplan_empty_systemd_networkd_config_files
Function: module.run
Result: True
Comment: file.find: []
Started: 10:16:25.267716
Duration: 2.76 ms
Changes:
----------
file.find:
----------
ID: remove_netplan_config_files
Function: module.run
Result: True
Comment: file.find: ['/etc/netplan/10-openmediavault-default.yaml', '/etc/netplan/30-openmediavault-wlan0.yaml']
Started: 10:16:25.270773
Duration: 3.302 ms
Changes:
----------
file.find:
- /etc/netplan/10-openmediavault-default.yaml
- /etc/netplan/30-openmediavault-wlan0.yaml
----------
ID: configure_netplan_default
Function: file.managed
Name: /etc/netplan/10-openmediavault-default.yaml
Result: True
Comment: File /etc/netplan/10-openmediavault-default.yaml updated
Started: 10:16:25.274369
Duration: 338.605 ms
Changes:
----------
diff:
New file
----------
ID: configure_netplan_ethernet_eth0
Function: file.managed
Name: /etc/netplan/20-openmediavault-eth0.yaml
Result: False
Comment: Unable to manage file: Jinja error: [Errno 2] No such file or directory: '/sys/class/net/eth0/addr_assign_type'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 477, in render_jinja_tmpl
output = template.render(**decoded_context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 6, in top-level template code
File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 396, in call
return __context.call(__obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/modules/file.py", line 3973, in read
with salt.utils.files.fopen(path, access_mode) as file_obj:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/utils/files.py", line 393, in fopen
f_handle = open(*args, **kwargs) # pylint: disable=resource-leakage
^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/net/eth0/addr_assign_type'
; line 6
---
{%- set dns_config = salt['omv_conf.get']('conf.system.network.dns') -%}
network:
ethernets:
{{ interface.devicename }}:
match:
{%- if salt['file.read']('/sys/class/net/' + interface.devicename + '/addr_assign_type') | int == 0 %} <======================
macaddress: {{ salt['grains.get']('hwaddr_interfaces:' + interface.devicename) }}
{%- else %}
name: {{ interface.devicename }}
{%- endif %}
{%- if interface.altmacaddress | length > 0 %}
[...]
---
Started: 10:16:25.613270
Duration: 453.341 ms
Changes:
----------
ID: configure_netplan_wifi_wlan0
Function: file.managed
Name: /etc/netplan/30-openmediavault-wlan0.yaml
Result: True
Comment: File /etc/netplan/30-openmediavault-wlan0.yaml updated
Started: 10:16:26.066945
Duration: 420.66 ms
Changes:
----------
diff:
New file
----------
ID: apply_netplan_config
Function: cmd.run
Name: netplan apply
Result: True
Comment: Command "netplan apply" run
Started: 10:16:26.489984
Duration: 2970.259 ms
Changes:
----------
pid:
9275
retcode:
0
stderr:
Cannot call openvswitch: ovsdb-server.service is not running.
stdout:
----------
ID: symlink_systemd_resolvconf
Function: file.symlink
Name: /etc/resolv.conf
Result: True
Comment: Symlink /etc/resolv.conf is present and owned by root:root
Started: 10:16:29.460574
Duration: 732.593 ms
Changes:
Summary for raspberrypi
-------------
Succeeded: 13 (changed=6)
Failed: 1
-------------
Total states run: 14
Total run time: 5.180 s
[ERROR ] Rendering exception occurred
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 477, in render_jinja_tmpl
output = template.render(**decoded_context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 6, in top-level template code
File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 396, in call
return __context.call(__obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/modules/file.py", line 3973, in read
with salt.utils.files.fopen(path, access_mode) as file_obj:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/utils/files.py", line 393, in fopen
f_handle = open(*args, **kwargs) # pylint: disable=resource-leakage
^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/net/eth0/addr_assign_type'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 219, in render_tmpl
output = render_str(tmplstr, context, tmplpath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 523, in render_jinja_tmpl
raise SaltRenderError(
salt.exceptions.SaltRenderError: Jinja error: [Errno 2] No such file or directory: '/sys/class/net/eth0/addr_assign_type'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 477, in render_jinja_tmpl
output = template.render(**decoded_context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 6, in top-level template code
File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 396, in call
return __context.call(__obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/modules/file.py", line 3973, in read
with salt.utils.files.fopen(path, access_mode) as file_obj:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/utils/files.py", line 393, in fopen
f_handle = open(*args, **kwargs) # pylint: disable=resource-leakage
^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/net/eth0/addr_assign_type'
; line 6
---
{%- set dns_config = salt['omv_conf.get']('conf.system.network.dns') -%}
network:
ethernets:
{{ interface.devicename }}:
match:
{%- if salt['file.read']('/sys/class/net/' + interface.devicename + '/addr_assign_type') | int == 0 %} <======================
macaddress: {{ salt['grains.get']('hwaddr_interfaces:' + interface.devicename) }}
{%- else %}
name: {{ interface.devicename }}
{%- endif %}
{%- if interface.altmacaddress | length > 0 %}
[...]
---
[ERROR ] Unable to manage file: Jinja error: [Errno 2] No such file or directory: '/sys/class/net/eth0/addr_assign_type'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 477, in render_jinja_tmpl
output = template.render(**decoded_context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 6, in top-level template code
File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 396, in call
return __context.call(__obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__
return self.loader.run(run_func, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1234, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1249, in _run_as
return _func_or_method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/modules/file.py", line 3973, in read
with salt.utils.files.fopen(path, access_mode) as file_obj:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/utils/files.py", line 393, in fopen
f_handle = open(*args, **kwargs) # pylint: disable=resource-leakage
^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/net/eth0/addr_assign_type'
; line 6
---
{%- set dns_config = salt['omv_conf.get']('conf.system.network.dns') -%}
network:
ethernets:
{{ interface.devicename }}:
match:
{%- if salt['file.read']('/sys/class/net/' + interface.devicename + '/addr_assign_type') | int == 0 %} <======================
macaddress: {{ salt['grains.get']('hwaddr_interfaces:' + interface.devicename) }}
{%- else %}
name: {{ interface.devicename }}
{%- endif %}
{%- if interface.altmacaddress | length > 0 %}
[...]
--- in /usr/share/php/openmediavault/system/process.inc:247
Stack trace:
#0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute()
#1 /usr/share/openmediavault/engined/rpc/config.inc(178): OMV\Engine\Module\ServiceAbstract->deploy()
#2 [internal function]: Engined\Rpc\Config->applyChanges()
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()
#4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod()
#5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(622): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}()
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(146): OMV\Rpc\ServiceAbstract->execBgProc()
#7 /usr/share/openmediavault/engined/rpc/config.inc(199): OMV\Rpc\ServiceAbstract->callMethodBg()
#8 [internal function]: Engined\Rpc\Config->applyChangesBg()
#9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()
#10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod()
#11 /usr/sbin/omv-engined(535): OMV\Rpc\Rpc::call()
#12 {main}