Charm errors out due to reference to non-existing configuration template when deployed on Mitaka

Bug #1879337 reported by Frode Nordahl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Manila Charm
Fix Released
High
Frode Nordahl

Bug Description

2020-05-18 13:04:14 ERROR juju-log identity-service:43: Could not load template manila-api.conf from None.
2020-05-18 13:04:14 ERROR juju-log identity-service:43: Could not load template etc_apache2_sites-available_manila-api.conf from None.
2020-05-18 13:04:14 ERROR juju-log identity-service:43: Hook error:
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-manila-4/.venv/lib/python3.5/site-packages/charms_openstack/charm/core.py", line 809, in render_configs
    _render(os.path.basename(conf))
  File "/var/lib/juju/agents/unit-manila-4/.venv/lib/python3.5/site-packages/charms_openstack/charm/core.py", line 806, in _render
    perms=self.permission_override_map.get(conf) or 0o640,
  File "/var/lib/juju/agents/unit-manila-4/.venv/lib/python3.5/site-packages/charmhelpers/core/templating.py", line 84, in render
    raise e
  File "/var/lib/juju/agents/unit-manila-4/.venv/lib/python3.5/site-packages/charmhelpers/core/templating.py", line 79, in render
    template = template_env.get_template(source)
  File "/var/lib/juju/agents/unit-manila-4/.venv/lib/python3.5/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/var/lib/juju/agents/unit-manila-4/.venv/lib/python3.5/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/var/lib/juju/agents/unit-manila-4/.venv/lib/python3.5/site-packages/jinja2/loaders.py", line 408, in load
    raise TemplateNotFound(name)
jinja2.exceptions.TemplateNotFound: manila-api.conf

Frode Nordahl (fnordahl)
Changed in charm-manila:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Frode Nordahl (fnordahl)
milestone: none → 20.05
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-manila (master)

Fix proposed to branch: master
Review: https://review.opendev.org/728919

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-manila (master)

Reviewed: https://review.opendev.org/728919
Committed: https://git.openstack.org/cgit/openstack/charm-manila/commit/?id=b1a20a21f2bae8dcbe97960d6fe2d461c46f7328
Submitter: Zuul
Branch: master

commit b1a20a21f2bae8dcbe97960d6fe2d461c46f7328
Author: Frode Nordahl <email address hidden>
Date: Mon May 18 16:49:31 2020 +0200

    Move WSGI configuration template

    The charm currently provides the ``manila-api.conf`` in the
    pike templates folder, but attempts to use it for all
    supported releases.

    Move the template to the earliest supported release to avoid
    hook errors.

    Change-Id: I16135e6535f8cabe9caa6693a6ee8a228dcb4b65
    Closes-Bug: #1879337

Changed in charm-manila:
status: In Progress → Fix Committed
David Ames (thedac)
Changed in charm-manila:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.