Actions
action #151165
closedsalt-pillars-openqa pipeline fails
Start date:
2023-11-20
Due date:
% Done:
0%
Estimated time:
Description
Observation:¶
---
75worker32.oqa.prg2.suse.org:
76 Data failed to compile:
77----------
78 Rendering SLS 'base:openqa.openvswitch' failed: Jinja error: 'NoneType' object is not iterable
79Traceback (most recent call last):
80 File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 477, in render_jinja_tmpl
81 output = template.render(**decoded_context)
82 File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render
83 return original_render(self, *args, **kwargs)
84 File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render
85 return self.environment.handle_exception(exc_info, True)
86 File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception
87 reraise(exc_type, exc_value, tb)
88 File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise
89 raise value.with_traceback(tb)
90 File "<template>", line 44, in top-level template code
91TypeError: 'NoneType' object is not iterable
92; line 44
93---
94[...]
95{% do multihostworkers.append(host) %}
96{% endif %}
97{% endif %}
98# The class can be defined in both places (global X numbered workers) at the same time
99{% if 'workers' in pillar['workerconf'][host] %}
100{% for wnum in pillar['workerconf'][host]['workers'] %} <======================
101{% if multihostclass in pillar['workerconf'][host]['workers'][wnum]['WORKER_CLASS'] | default('undefined') %}
102{% do multihostworkers.append(host) %}
103{% endif %}
104{% endfor %}
105{% endif %}
106[...]
Updated by tinita 12 months ago
https://gitlab.suse.de/openqa/salt-pillars-openqa/-/merge_requests/682 Comment out empty worker mapping
Updated by tinita 12 months ago
https://gitlab.suse.de/openqa/salt-pillars-openqa/-/merge_requests/682 merged.
To prevent this in the future:
https://gitlab.suse.de/openqa/salt-states-openqa/-/merge_requests/1046 - Allow empty value for workers
Actions