Im trying to install the magnum-dashboard and all I get is hook failed “install”.
unit-magnum-dashboard-1: 09:51:56 ERROR juju.worker.uniter.operation hook “install” (via explicit, bespoke hook script) failed: exit status 1
unit-magnum-dashboard-1: 09:51:56 INFO juju.worker.uniter awaiting error resolution for “install” hook
unit-magnum-dashboard-1: 09:51:01 INFO juju.worker.uniter awaiting error resolution for “install” hook
unit-magnum-dashboard-1: 09:51:02 INFO unit.magnum-dashboard/1.juju-log Reactive main running for hook install
unit-magnum-dashboard-1: 09:51:55 WARNING unit.magnum-dashboard/1.install W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to archive.u
buntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (91.189.91.39), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.39), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.36), connection timed out
unit-magnum-dashboard-1: 09:51:55 WARNING unit.magnum-dashboard/1.install W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to a
rchive.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable)
unit-magnum-dashboard-1: 09:51:55 WARNING unit.magnum-dashboard/1.install W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to
archive.ubuntu.com:80 (2001:67c:1562::18). - connect (101: Network is unreachable)
unit-magnum-dashboard-1: 09:51:55 WARNING unit.magnum-dashboard/1.install W: Some index files failed to download. They have been ignored, or old ones used instead.
unit-magnum-dashboard-1: 09:51:55 INFO unit.magnum-dashboard/1.juju-log Installing python3-jinja2 with options: [’–option=Dpkg::Options::=–force-confold’]
unit-magnum-dashboard-1: 09:51:56 ERROR unit.magnum-dashboard/1.juju-log Hook error:
Traceback (most recent call last):
File “/var/lib/juju/agents/unit-magnum-dashboard-1/.venv/lib/python3.10/site-packages/charmhelpers/contrib/openstack/templating.py”, line 29, in
from jinja2 import FileSystemLoader, ChoiceLoader, Environment, exceptions
File “/var/lib/juju/agents/unit-magnum-dashboard-1/.venv/lib/python3.10/site-packages/jinja2/init.py”, line 33, in
from jinja2.environment import Environment, Template
File “/var/lib/juju/agents/unit-magnum-dashboard-1/.venv/lib/python3.10/site-packages/jinja2/environment.py”, line 16, in
from jinja2.defaults import BLOCK_START_STRING, \
File “/var/lib/juju/agents/unit-magnum-dashboard-1/.venv/lib/python3.10/site-packages/jinja2/defaults.py”, line 32, in
from jinja2.tests import TESTS as DEFAULT_TESTS
File “/var/lib/juju/agents/unit-magnum-dashboard-1/.venv/lib/python3.10/site-packages/jinja2/tests.py”, line 13, in
from collections import Mapping
ImportError: cannot import name ‘Mapping’ from ‘collections’ (/usr/lib/python3.10/collections/init.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/var/lib/juju/agents/unit-magnum-dashboard-1/.venv/lib/python3.10/site-packages/charms/reactive/init.py”, line 71, in main
bus.discover()
File “/var/lib/juju/agents/unit-magnum-dashboard-1/.venv/lib/python3.10/site-packages/charms/reactive/bus.py”, line 426, in discover
_register_handlers_from_file(search_path, filepath)
File “/var/lib/juju/agents/unit-magnum-dashboard-1/.venv/lib/python3.10/site-packages/charms/reactive/bus.py”, line 466, in _register_handlers_from_file
_load_module(root, filepath)
File “/var/lib/juju/agents/unit-magnum-dashboard-1/.venv/lib/python3.10/site-packages/charms/reactive/bus.py”, line 444, in _load_module
return importlib.import_module(package + module)
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 1006, in _find_and_load_unlocked
File “”, line 688, in _load_unlocked
File “”, line 883, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/var/lib/juju/agents/unit-magnum-dashboard-1/charm/reactive/layer_openstack.py”, line 8, in
import charms_openstack.charm as charm
File “/var/lib/juju/agents/unit-magnum-dashboard-1/.venv/lib/python3.10/site-packages/charms_openstack/charm/init.py”, line 19, in
from charms_openstack.charm.defaults import use_defaults
File “/var/lib/juju/agents/unit-magnum-dashboard-1/.venv/lib/python3.10/site-packages/charms_openstack/charm/defaults.py”, line 5, in
from charms_openstack.charm.classes import OpenStackCharm
File “/var/lib/juju/agents/unit-magnum-dashboard-1/.venv/lib/python3.10/site-packages/charms_openstack/charm/classes.py”, line 22, in
from charms_openstack.charm.core import (
File “/var/lib/juju/agents/unit-magnum-dashboard-1/.venv/lib/python3.10/site-packages/charms_openstack/charm/core.py”, line 10, in
import charmhelpers.contrib.openstack.templating as os_templating
File “/var/lib/juju/agents/unit-magnum-dashboard-1/.venv/lib/python3.10/site-packages/charmhelpers/contrib/openstack/templating.py”, line 36, in
from jinja2 import FileSystemLoader, ChoiceLoader, Environment, exceptions
File “/var/lib/juju/agents/unit-magnum-dashboard-1/.venv/lib/python3.10/site-packages/jinja2/init.py”, line 33, in
from jinja2.environment import Environment, Template
File “/var/lib/juju/agents/unit-magnum-dashboard-1/.venv/lib/python3.10/site-packages/jinja2/environment.py”, line 16, in
from jinja2.defaults import BLOCK_START_STRING, \
File “/var/lib/juju/agents/unit-magnum-dashboard-1/.venv/lib/python3.10/site-packages/jinja2/defaults.py”, line 32, in
from jinja2.tests import TESTS as DEFAULT_TESTS
File “/var/lib/juju/agents/unit-magnum-dashboard-1/.venv/lib/python3.10/site-packages/jinja2/tests.py”, line 13, in
from collections import Mapping
ImportError: cannot import name ‘Mapping’ from ‘collections’ (/usr/lib/python3.10/collections/init.py)