Public bug reported:

It seems that the jinja2 templates are missing from the deb package for
caracal. This is true for both the jammy caracal PPA as well as the
distro packages in ubuntu 24.04.

Amphora load balancers fail to start and the following error appears in
the logs:

2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server [-] Exception 
during message handling: jinja2.exceptions.TemplateNotFound: 
amphora_agent_conf.template
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server Traceback (most 
recent call last):
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/oslo_messaging/rpc/server.py", line 165, in 
_process_incoming
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     res = 
self.dispatcher.dispatch(message)
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/oslo_messaging/rpc/dispatcher.py", line 309, in 
dispatch
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     return 
self._do_dispatch(endpoint, method, ctxt, args)
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/oslo_messaging/rpc/dispatcher.py", line 229, in 
_do_dispatch
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     result = 
func(ctxt, **new_args)
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/octavia/controller/queue/v2/endpoints.py", line 
43, in create_load_balancer
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     
self.worker.create_load_balancer(loadbalancer, flavor,
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/tenacity/__init__.py", line 333, in wrapped_f
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     return 
self(f, *args, **kw)
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/tenacity/__init__.py", line 423, in __call__
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     do = 
self.iter(retry_state=retry_state)
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/tenacity/__init__.py", line 360, in iter
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     return 
fut.result()
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     return 
self.__get_result()
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     raise 
self._exception
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/tenacity/__init__.py", line 426, in __call__
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     result = 
fn(*args, **kwargs)
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/octavia/controller/worker/v2/controller_worker.py",
 line 413, in create_load_balancer
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     
self.run_flow(
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/octavia/controller/worker/v2/controller_worker.py",
 line 113, in run_flow
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     tf.run()
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/taskflow/engines/action_engine/engine.py", line 
247, in run
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     for _state 
in self.run_iter(timeout=timeout):
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/taskflow/engines/action_engine/engine.py", line 
340, in run_iter
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     
failure.Failure.reraise_if_any(er_failures)
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/taskflow/types/failure.py", line 338, in 
reraise_if_any
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     
failures[0].reraise()
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/taskflow/types/failure.py", line 350, in reraise
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     raise value
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/taskflow/engines/action_engine/executor.py", 
line 52, in _execute_task
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     result = 
task.execute(**arguments)
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/octavia/controller/worker/v2/tasks/compute_tasks.py",
 line 199, in execute
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     return 
super().execute(
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/octavia/controller/worker/v2/tasks/compute_tasks.py",
 line 122, in execute
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     agent_cfg = 
agent_jinja_cfg.AgentJinjaTemplater()
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/octavia/amphorae/backends/agent/agent_jinja_cfg.py",
 line 34, in __init__
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     
self.agent_template = jinja_env.get_template(
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/jinja2/environment.py", line 997, in 
get_template
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     return 
self._load_template(name, globals)
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/jinja2/environment.py", line 958, in 
_load_template
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     template = 
self.loader.load(self, name, self.make_globals(globals))
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/jinja2/loaders.py", line 125, in load
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     source, 
filename, uptodate = self.get_source(environment, name)
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server   File 
"/usr/lib/python3/dist-packages/jinja2/loaders.py", line 214, in get_source
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server     raise 
TemplateNotFound(template)
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server 
jinja2.exceptions.TemplateNotFound: amphora_agent_conf.template
2024-10-10 17:44:04.295 173317 ERROR oslo_messaging.rpc.server 


The following folders are missing from the package:

gabriel@arrakis:/tmp/octavia$ find -name templates
./octavia/amphorae/backends/agent/templates
./octavia/amphorae/backends/agent/api_server/templates
./octavia/amphorae/drivers/keepalived/jinja/templates
./octavia/common/jinja/templates
./octavia/common/jinja/lvs/templates
./octavia/common/jinja/haproxy/combined_listeners/templates
./octavia/common/jinja/logging/templates

Probably other non python files as well.

** Affects: magnum (Ubuntu)
     Importance: Undecided
         Status: Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2084183

Title:
  Missing template files in caracal build

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/magnum/+bug/2084183/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to