Issues with Salt #9899
Replies: 8 comments 1 reply
-
Are you seeing anything more specific in the /opt/so/log/salt/master log? |
Beta Was this translation helpful? Give feedback.
-
Hi @andre-dessert , The output I posted is from /opt/so/log/salt/master From my basic understanding, it looks like /opt/so/saltstack/default/pillar/logstash/nodes.sls has something wrong, or data that it is parsing. I am not sure when the problem started. The only thing that changed on the system recent is that a network card was replaced and the interface name changed. Could this be the issue? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Is there anyone who can help me recover? I cannot run soup at this stage. |
Beta Was this translation helpful? Give feedback.
-
Try the following and check the salt mine. |
Beta Was this translation helpful? Give feedback.
-
Is the first output missing the IP address for the managersearch, or is that expected? The rest of the information looks fine. I called mine.update that returned True, but still have the same issue:
|
Beta Was this translation helpful? Give feedback.
-
There should be an IP address for the managersearch. Did you try and update the salt mine with |
Beta Was this translation helpful? Give feedback.
-
@cm-ops , thanks for your support - here is the output
|
Beta Was this translation helpful? Give feedback.
-
Thanks @cm-ops ! That was it. This server required the interface to be changed. The file you pointed me to still had the old interface name. I updated it and ran salt-call mine.update and things are now working! Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am having an issue with salt, but I cannot identify where the problem actually is.
Here are the logs I am getting:
`2023-03-07 02:30:43,592 [salt.pillar :1224][CRITICAL][428765] Pillar render error: Rendering SLS 'logstash.nodes' failed. Please see master log for details.
2023-03-07 02:30:44,707 [salt.client.mixins:442 ][INFO ][428758] Runner completed: 20230307023044681074
2023-03-07 02:30:44,821 [salt.client.mixins:442 ][INFO ][428770] Runner completed: 20230307023044792451
2023-03-07 02:30:45,935 [salt.client.mixins:442 ][INFO ][428758] Runner completed: 20230307023045305656
2023-03-07 02:30:45,936 [salt.utils.templates:274 ][ERROR ][428758] Rendering exception occurred
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 502, 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 "", line 27, in
jinja2.exceptions.UndefinedError: list object has no element 0
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 261, in render_tmpl
output = render_str(tmplstr, context, tmplpath)
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 509, in render_jinja_tmpl
raise SaltRenderError("Jinja variable {}{}".format(exc, out), buf=tmplstr)
salt.exceptions.SaltRenderError: Jinja variable list object has no element 0
2023-03-07 02:30:45,936 [salt.pillar :900 ][CRITICAL][428758] Rendering SLS 'logstash.nodes' failed, render error:
Jinja variable list object has no element 0
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 502, 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 "", line 27, in
jinja2.exceptions.UndefinedError: list object has no element 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/pillar/init.py", line 887, in render_pstate
state = compile_template(
File "/usr/lib/python3/dist-packages/salt/template.py", line 99, in compile_template
ret = render(input_data, saltenv, sls, **render_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 1201, 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 1216, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/renderers/jinja.py", line 62, in render
tmp_data = salt.utils.templates.JINJA(
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 509, in render_jinja_tmpl
raise SaltRenderError("Jinja variable {}{}".format(exc, out), buf=tmplstr)
salt.exceptions.SaltRenderError: Jinja variable list object has no element 0
2023-03-07 02:30:45,958 [salt.pillar :1224][CRITICAL][428758] Pillar render error: Rendering SLS 'logstash.nodes' failed. Please see master log for details.
2023-03-07 02:30:46,014 [salt.utils.job :85 ][INFO ][428771] Got return from so-node-manager_managersearch for job 20230307023046014300
2023-03-07 02:30:46,033 [salt.utils.event :905 ][ERROR ][428771] Event iteration failed with exception: 'list' object has no attribute 'items'
2023-03-07 02:30:46,052 [salt.client.mixins:442 ][INFO ][428770] Runner completed: 20230307023045412284
2023-03-07 02:30:46,053 [salt.utils.templates:274 ][ERROR ][428770] Rendering exception occurred
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 502, 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 "", line 27, in
jinja2.exceptions.UndefinedError: list object has no element 0
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 261, in render_tmpl
output = render_str(tmplstr, context, tmplpath)
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 509, in render_jinja_tmpl
raise SaltRenderError("Jinja variable {}{}".format(exc, out), buf=tmplstr)
salt.exceptions.SaltRenderError: Jinja variable list object has no element 0
2023-03-07 02:30:46,053 [salt.pillar :900 ][CRITICAL][428770] Rendering SLS 'logstash.nodes' failed, render error:
Jinja variable list object has no element 0
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 502, 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 "", line 27, in
jinja2.exceptions.UndefinedError: list object has no element 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/pillar/init.py", line 887, in render_pstate
state = compile_template(
File "/usr/lib/python3/dist-packages/salt/template.py", line 99, in compile_template
ret = render(input_data, saltenv, sls, **render_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 1201, 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 1216, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/renderers/jinja.py", line 62, in render
tmp_data = salt.utils.templates.JINJA(
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 509, in render_jinja_tmpl
raise SaltRenderError("Jinja variable {}{}".format(exc, out), buf=tmplstr)
salt.exceptions.SaltRenderError: Jinja variable list object has no element 0
2023-03-07 02:30:46,064 [salt.pillar :1224][CRITICAL][428770] Pillar render error: Rendering SLS 'logstash.nodes' failed. Please see master log for details.
2023-03-07 02:30:46,147 [salt.utils.job :85 ][INFO ][428767] Got return from so-node-sensor-01_sensor for job 20230307023046146693
2023-03-07 02:30:46,147 [salt.utils.event :905 ][ERROR ][428767] Event iteration failed with exception: 'list' object has no attribute 'items'
`
Any pointers would be greatly appreciated.
I am running version 2.3.190, but cannot run soup to update to the latest version as is.
Beta Was this translation helpful? Give feedback.
All reactions