That worked perfectly!
Only one failed in the summary:
Code
----------
ID: prereq_collectd_service_monit
Function: salt.state
Result: False
Comment: Run failed on minions: test.local
Started: 16:42:00.794131
Duration: 394.981 ms
Changes:
test.local:
Data failed to compile:
----------
Rendering SLS 'base:omv.deploy.monit.services.filesystem' failed: Jinja variable list object has no element 0
----------
Rendering SLS 'base:omv.deploy.monit.services.nginx' failed: Jinja error: Object of type StrictUndefined is not JSON serializable
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 498, in render_jinja_tmpl
output = template.render(**decoded_context)
...
TypeError: Object of type StrictUndefined is not JSON serializable
; line 34
---
[...]
- source:
- salt://{{ tpldir }}/files/nginx.j2
- template: jinja
- context:
email_config: {{ email_config | json }}
notification_config: {{ notification_config | json }} <======================
webadmin_config: {{ webadmin_config | json }}
- user: root
- group: root
- mode: 644
[...]
---
----------
Rendering SLS 'base:omv.deploy.monit.services.omv-engined' failed: Jinja error: Object of type StrictUndefined is not JSON serializable
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 498, in render_jinja_tmpl
output = template.render(**decoded_context)
...
TypeError: Object of type StrictUndefined is not JSON serializable
; line 33
---
[...]
- source:
- salt://{{ tpldir }}/files/omv-engined.j2
- template: jinja
- context:
email_config: {{ email_config | json }}
notification_config: {{ notification_config | json }} <======================
- user: root
- group: root
- mode: 644
Traceback (most recent call last):
[...]
---
----------
Rendering SLS 'base:omv.deploy.monit.services.php-fpm' failed: Jinja error: Object of type StrictUndefined is not JSON serializable
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 498, in render_jinja_tmpl
output = template.render(**decoded_context)
...
TypeError: Object of type StrictUndefined is not JSON serializable
; line 33
---
[...]
- source:
- salt://{{ tpldir }}/files/php-fpm.j2
- template: jinja
- context:
email_config: {{ email_config | json }}
notification_config: {{ notification_config | json }} <======================
- user: root
- group: root
- mode: 644
Traceback (most recent call last):
[...]
---
----------
Rendering SLS 'base:omv.deploy.monit.services.system' failed: Jinja error: Object of type StrictUndefined is not JSON serializable
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 498, in render_jinja_tmpl
output = template.render(**decoded_context)
...
TypeError: Object of type StrictUndefined is not JSON serializable
; line 39
---
[...]
- source:
- salt://{{ tpldir }}/files/system.j2
- template: jinja
- context:
email_config: {{ email_config | json }}
loadavg_notification_config: {{ loadavg_notification_config | json }} <======================
memory_usage_notification_config: {{ loadavg_notification_config | json }}
cpu_usage_notification_config: {{ loadavg_notification_config | json }}
- user: root
- group: root
- mode: 644
[...]
---
Display More
Code
Data failed to compile:
----------
Rendering SLS 'base:omv.deploy.collectd.plugins.interface' failed: Jinja error: Failed to convert property 'mtu': invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/openmediavault/config/datamodel.py", line 293, in property_convert
result = int(value)
ValueError: invalid literal for int() with base 10: ''
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 498, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 21, in top-level template code
File "/var/cache/salt/minion/extmods/modules/omv_conf.py", line 83, in get_by_filter
id_, openmediavault.config.DatabaseFilter(filter_), **kwargs
File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 125, in get_by_filter
query.execute()
File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 695, in execute
self._response = self._elements_to_object(elements)
File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 470, in _elements_to_object
obj.set_dict(self._element_to_dict(element), False)
File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 208, in set_dict
self.set(key, value, validate)
File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 186, in set
value = self.model.property_convert(name, value)
File "/usr/lib/python3/dist-packages/openmediavault/config/datamodel.py", line 303, in property_convert
"Failed to convert property '{}': {}".format(name, str(e))
ValueError: Failed to convert property 'mtu': invalid literal for int() with base 10: ''
; line 21
---
[...]
#
# You should have received a copy of the GNU General Public License
# along with OpenMediaVault. If not, see <http://www.gnu.org/licenses/>.
{% set interfaces = [] %}
{% for interface in salt['omv_conf.get_by_filter']( <======================
'conf.system.network.interface',
{'operator': 'or', 'arg0': {'operator': 'stringEquals', 'arg0': 'type', 'arg1': 'ethernet'}, 'arg1': {'operator': 'stringEquals', 'arg0': 'type', 'arg1': 'wifi'}}) %}
{% set used_by = salt['omv_conf.get_by_filter'](
'conf.system.network.interface',
{'operator': 'stringContains', 'arg0': 'slaves', 'arg1': interface.devicename}) %}
[...]
---
Display More