Page MenuHomePhabricator
Paste P43407

(An Untitled Masterwork)
ActivePublic

Authored by jbond on Jan 26 2023, 1:49 PM.
Tags
None
Referenced Files
F36511797: raw-paste-data.txt
Jan 26 2023, 1:49 PM
Subscribers
None
ERROR:homer:Device cr2-eqiad.wikimedia.org failed to render the template, skipping.
Traceback (most recent call last):
File "/srv/deployment/homer/venv-1669128386/lib/python3.9/site-packages/homer/templates.py", line 57, in render
return template.render(data)
File "/srv/deployment/homer/venv-1669128386/lib/python3.9/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/srv/deployment/homer/venv-1669128386/lib/python3.9/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/srv/homer/public/templates/cr.conf", line 19, in top-level template code
{{ section("cr", "interfaces") }}
File "/srv/deployment/homer/venv-1669128386/lib/python3.9/site-packages/jinja2/runtime.py", line 777, in _invoke
rv = self._func(*arguments)
File "/srv/homer/public/templates/macros/common.conf", line 3, in template
{% include category_name + "/" + section_name + ".conf" %}
File "/srv/homer/public/templates/cr/interfaces.conf", line 121, in top-level template code
{% if sub_config['ips'][ipversion] %}
File "/srv/deployment/homer/venv-1669128386/lib/python3.9/site-packages/jinja2/environment.py", line 466, in getitem
return obj[argument]
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'ips'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/srv/deployment/homer/venv-1669128386/lib/python3.9/site-packages/homer/__init__.py", line 313, in _execute
device_config.append(self._renderer.render(device.metadata['role'], device_data))
File "/srv/deployment/homer/venv-1669128386/lib/python3.9/site-packages/homer/templates.py", line 61, in render
raise HomerError(f'Could not render template {template_file}') from e
homer.exceptions.HomerError: Could not render template cr.conf
ERROR:homer:Homer run had issues on 1 devices: ['cr2-eqiad.wikimedia.org']