[Bug 2072526] Re: ERROR octavia.controller.worker.v2.controller_worker jinja2.exceptions.TemplateNotFound: amphora_agent_conf.template

James Page 2072526 at bugs.launchpad.net
Fri Oct 4 15:01:52 UTC 2024


This bug was fixed in the package octavia - 1:15.0.0-0ubuntu1~cloud0
---------------

 octavia (1:15.0.0-0ubuntu1~cloud0) noble-dalmatian; urgency=medium
 .
   * New upstream release for the Ubuntu Cloud Archive.
 .
 octavia (1:15.0.0-0ubuntu1) oracular; urgency=medium
 .
   * New upstream release for OpenStack Dalmatian.
 .
 octavia (1:15.0.0~rc1-0ubuntu1) oracular; urgency=medium
 .
   * d/gbp.conf: upstream-branch -> upstream-dalmatian.
   * New upstream release for OpenStack Dalmatian.
   * d/p/oslo.policy-4.4.0-compat.patch: Drop, no longer needed.
   * d/p/tenacity-8.5-compat.patch: Tidy debug logging.
 .
 octavia (1:14.0.0+git2024080716.c2c5a4ce-0ubuntu2) oracular; urgency=medium
 .
   * d/p/cryptography-compat.patch: Provide backwards compatibility with
     older cryptography versions.
 .
 octavia (1:14.0.0+git2024080716.c2c5a4ce-0ubuntu1) oracular; urgency=medium
 .
   * New snapshot for OpenStack Dalmatian.
   * d/control: Align (Build-)Depends with upstream.
   * d/control: Add Build-Conflict on simplejson to fix patching.
   * d/p/oslo.policy-4.4.0-compat.patch: Cherry pick fix for
     compatibility with oslo.policy >= 4.4.0.
 .
 octavia (1:14.0.0-0ubuntu2) oracular; urgency=medium
 .
   [ Felipe Reyes ]
   * d/patches/install-missing-files.patch: Ensure that all data files
     in the Python module directories are included in the binary package
     (LP: #2072526).
 .
   [ James Page ]
   * d/control,d/p/tenacity-8.5-compat.patch: Fix compatibility with newer
     Tenacity versions.


** Changed in: cloud-archive
       Status: Fix Committed => Fix Released

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

Title:
  ERROR octavia.controller.worker.v2.controller_worker
  jinja2.exceptions.TemplateNotFound: amphora_agent_conf.template

Status in OpenStack Octavia Charm:
  Invalid
Status in Ubuntu Cloud Archive:
  Fix Released
Status in Ubuntu Cloud Archive caracal series:
  Fix Committed
Status in octavia package in Ubuntu:
  Fix Released
Status in octavia source package in Noble:
  Fix Committed

Bug description:
  [ Impact ]
  Octavia fails to provision Amphora for load balancers.

  [ Test Plan ]
  Install Octavia as part of a Charmed OpenStack deployment for Caracal.
  Create a loadbalancer - creation will fail with stack trace from original bug report.

  [ Where problems could occur ]
  The fix for this is to ensure that data files in the Python source tree are included in the package installation; this is done by providing a MANIFEST to ensure that this happens; side effects are unlikely.

  [Original Bug Report]
  [Impact]

  Octavia fails to provision the amphora, the stacktrace logged is:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/executor.py", line 52, in _execute_task
      result = task.execute(**arguments)
    File "/usr/lib/python3/dist-packages/octavia/controller/worker/v2/tasks/compute_tasks.py", line 199, in execute
      return super().execute(
    File "/usr/lib/python3/dist-packages/octavia/controller/worker/v2/tasks/compute_tasks.py", line 122, in execute
      agent_cfg = agent_jinja_cfg.AgentJinjaTemplater()
    File "/usr/lib/python3/dist-packages/octavia/amphorae/backends/agent/agent_jinja_cfg.py", line 34, in __init__
      self.agent_template = jinja_env.get_template(
    File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 997, in get_template
      return self._load_template(name, globals)
    File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 958, in _load_template
      template = self.loader.load(self, name, self.make_globals(globals))
    File "/usr/lib/python3/dist-packages/jinja2/loaders.py", line 125, in load
      source, filename, uptodate = self.get_source(environment, name)
    File "/usr/lib/python3/dist-packages/jinja2/loaders.py", line 214, in get_source
      raise TemplateNotFound(template)
  jinja2.exceptions.TemplateNotFound: amphora_agent_conf.template

  When searching for a package where this file is, apt-file can't find
  any.
  https://packages.ubuntu.com/search?searchon=contents&keywords=amphora_agent_conf.template&mode=exactfilename&suite=noble&arch=any

  This file has been around for many years -
  https://opendev.org/openstack/octavia/commits/branch/master/octavia/amphorae/backends/agent/templates/amphora_agent_conf.template
  - and the code that's trying to use it hasn't really received changes
  during the Caracal cycle -
  https://opendev.org/openstack/octavia/commits/branch/master/octavia/amphorae/backends/agent/agent_jinja_cfg.py

  [Environment]

  * OpenStack 2024.1 (Caracal)
  * python3-octavia 1:14.0.0-0ubuntu1~cloud0

To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-octavia/+bug/2072526/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list