designate-bind build.lock still pins Jinja2 at 2.10.1 causing conflict with py310

Bug #1983395 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Designate-Bind Charm
New
Undecided
Unassigned

Bug Description

A jammy-yoga deploy of designate-bind results in:

2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: 2022-08-01 16:38:45 INFO unit.designate-bind/0.juju-log server.go:319 Reactive main running for hook install
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: 2022-08-01 16:38:48 INFO unit.designate-bind/0.juju-log server.go:319 Installing python3-jinja2 with options: ['--option=Dpkg::Options::=--force-confold']
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: 2022-08-01 16:38:48 ERROR unit.designate-bind/0.juju-log server.go:319 Hook error:
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: Traceback (most recent call last):
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/.venv/lib/python3.10/site-packages/charmhelpers/contrib/openstack/templating.py", line 27, in <module>
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: from jinja2 import FileSystemLoader, ChoiceLoader, Environment, exceptions
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/.venv/lib/python3.10/site-packages/jinja2/__init__.py", line 33, in <module>
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: from jinja2.environment import Environment, Template
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/.venv/lib/python3.10/site-packages/jinja2/environment.py", line 16, in <module>
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: from jinja2.defaults import BLOCK_START_STRING, \
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/.venv/lib/python3.10/site-packages/jinja2/defaults.py", line 32, in <module>
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: from jinja2.tests import TESTS as DEFAULT_TESTS
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/.venv/lib/python3.10/site-packages/jinja2/tests.py", line 13, in <module>
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: from collections import Mapping
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log:
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: During handling of the above exception, another exception occurred:
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log:
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: Traceback (most recent call last):
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/.venv/lib/python3.10/site-packages/charms/reactive/__init__.py", line 71, in main
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: bus.discover()
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/.venv/lib/python3.10/site-packages/charms/reactive/bus.py", line 426, in discover
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: _register_handlers_from_file(search_path, filepath)
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/.venv/lib/python3.10/site-packages/charms/reactive/bus.py", line 466, in _register_handlers_from_file
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: _load_module(root, filepath)
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/.venv/lib/python3.10/site-packages/charms/reactive/bus.py", line 444, in _load_module
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: return importlib.import_module(package + module)
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: return _bootstrap._gcd_import(name[level:], package, level)
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "<frozen importlib._bootstrap_external>", line 883, in exec_module
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/charm/reactive/layer_openstack.py", line 8, in <module>
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: import charms_openstack.charm as charm
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/.venv/lib/python3.10/site-packages/charms_openstack/charm/__init__.py", line 19, in <module>
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: from charms_openstack.charm.defaults import use_defaults
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/.venv/lib/python3.10/site-packages/charms_openstack/charm/defaults.py", line 5, in <module>
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: from charms_openstack.charm.classes import OpenStackCharm
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/.venv/lib/python3.10/site-packages/charms_openstack/charm/classes.py", line 22, in <module>
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: from charms_openstack.charm.core import (
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/.venv/lib/python3.10/site-packages/charms_openstack/charm/core.py", line 10, in <module>
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: import charmhelpers.contrib.openstack.templating as os_templating
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/.venv/lib/python3.10/site-packages/charmhelpers/contrib/openstack/templating.py", line 31, in <module>
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: from jinja2 import FileSystemLoader, ChoiceLoader, Environment, exceptions
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/.venv/lib/python3.10/site-packages/jinja2/__init__.py", line 33, in <module>
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: from jinja2.environment import Environment, Template
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/.venv/lib/python3.10/site-packages/jinja2/environment.py", line 16, in <module>
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: from jinja2.defaults import BLOCK_START_STRING, \
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/.venv/lib/python3.10/site-packages/jinja2/defaults.py", line 32, in <module>
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: from jinja2.tests import TESTS as DEFAULT_TESTS
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: File "/var/lib/juju/agents/unit-designate-bind-0/.venv/lib/python3.10/site-packages/jinja2/tests.py", line 13, in <module>
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: from collections import Mapping
2022-08-01 16:39:02 [ERROR] unit-designate-bind-0.log: ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-designate-bind (stable/yoga)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-designate-bind (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/charm-designate-bind/+/851904
Committed: https://opendev.org/openstack/charm-designate-bind/commit/6f555df4df9e69d7152e8a970e76e04571ebb484
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 6f555df4df9e69d7152e8a970e76e04571ebb484
Author: Corey Bryant <email address hidden>
Date: Tue Aug 2 15:50:44 2022 +0000

    Switch build.lock pin of Jinja2 to 3.1.1

    The current pin of 2.10.1 doesn't support py310.

    This change also drops 'series: focal' from nrpe in
    the jammy-yoga bundle since the nrpe charm now supports
    jammy.

    Closes-Bug: #1983395
    Depends-On: https://review.opendev.org/c/openstack/charm-designate/+/852178
    Change-Id: Ia9e565790f81920b90bb53d10e710a815450c693

tags: added: in-stable-yoga
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.