Prometheus2 charm doesn't yet support jammy

Bug #1986047 reported by Vern Hart
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Prometheus2 charm
Fix Released
Undecided
Erhan Sunar

Bug Description

$ juju deploy prometheus2 --series jammy
ERROR series "jammy" not supported by charm, supported series are: focal, focal, bionic, bionic, xenial. Use --force to deploy the charm anyway.

Trying with --force gives:

$ juju deploy prometheus2 --series jammy --force
Located charm "prometheus2" in charm-hub, revision 30
ERROR listing resources for charm "ch:amd64/jammy/prometheus2-30": No revision was found in the Store.

Referencing charmstore works:

$ juju deploy cs:prometheus2 --series jammy --force
Located charm "prometheus2" in charm-store, revision 30
Deploying "prometheus2" from charm-store charm "prometheus2", revision 30 in channel stable on jammy

But it errs running the install hook.

Related branches

Revision history for this message
Vern Hart (vern) wrote :
Download full text (3.3 KiB)

From debug-log:

unit-prometheus2-0: 11:14:50 INFO juju.worker.uniter awaiting error resolution for "install" hook
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install error: subprocess-exited-with-error
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install × python setup.py egg_info did not run successfully.
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install │ exit code: 1
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install ╰─> [1 lines of output]
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install error in Tempita setup command: use_2to3 is invalid.
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install [end of output]
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install note: This error originates from a subprocess, and is likely not a problem with pip.
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install error: metadata-generation-failed
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install × Encountered error while generating package metadata.
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install ╰─> See above for output.
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install note: This is an issue with the package mentioned above, not pip.
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install hint: See above for details.
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install Traceback (most recent call last):
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install File "/var/lib/juju/agents/unit-prometheus2-0/charm/hooks/install", line 8, in <module>
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install basic.bootstrap_charm_deps()
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install File "/var/lib/juju/agents/unit-prometheus2-0/charm/lib/charms/layer/basic.py", line 212, in bootstrap_charm_deps
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install check_call([pip, 'install', '-U', reinstall_flag, '--no-index',
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install raise CalledProcessError(retcode, cmd)
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus2/0.install subprocess.CalledProcessError: Command '['/var/lib/juju/agents/unit-prometheus2-0/.venv/bin/pip', 'install', '-U', '--force-reinstall', '--no-index', '--no-cache-dir', '-f', 'wheelhouse', 'Jinja2==2.10.1', 'chardet==3.0.4', 'requests==2.24.0', 'PyYAML==5.2', 'wheel==0.33.6', 'idna==2.10', 'MarkupSafe==1.1.1', 'pbr==5.8.1', 'netaddr==0.7.19', 'pyaml==21.10.1', 'urllib3==1.25.11', 'charmhelpers==0.20.24', 'tenacity==5.0.3', 'charms.reactive==1.5.0', 'six==1.16.0', 'certifi==2021.10.8', 'Tempita==0.5.2']' returned non-zero exit status 1.
unit-prometheus2-0: 11:14:59 ERRO...

Read more...

Erhan Sunar (esunar)
Changed in charm-prometheus2:
assignee: nobody → Erhan Sunar (esunar)
Erhan Sunar (esunar)
Changed in charm-prometheus2:
milestone: none → 22.10
Erhan Sunar (esunar)
Changed in charm-prometheus2:
status: New → In Progress
Erhan Sunar (esunar)
Changed in charm-prometheus2:
status: In Progress → Fix Committed
Erhan Sunar (esunar)
Changed in charm-prometheus2:
status: Fix Committed → Fix Released
Revision history for this message
Vern Hart (vern) wrote :

Is this actually Fixed Release? Seems like latest/stable does not yet contain these updates.

Revision history for this message
Erhan Sunar (esunar) wrote :

released to candidate

Erhan Sunar (esunar)
Changed in charm-prometheus2:
status: Fix Released → Fix Committed
Erhan Sunar (esunar)
Changed in charm-prometheus2:
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.