Prometheus2 charm doesn't yet support jammy
Bug #1986047 reported by
Vern Hart
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/
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
~esunar/charm-prometheus2:added-focal-jammy-tests
- Eric Chen: Approve
- 🤖 prod-jenkaas-bootstack: Approve (continuous-integration)
- Robert Gildein: Needs Fixing
- Tianqi Xiao (community): Approve
- Martin Kalcok: Pending requested
- BootStack Reviewers: Pending requested
-
Diff: 392 lines (+113/-39)20 files modified.gitignore (+3/-0)
charmcraft.yaml (+7/-5)
src/metadata.yaml (+1/-3)
src/reactive/prometheus.py (+5/-7)
src/tests/functional/tests/bundles/base-vault.yaml (+63/-0)
src/tests/functional/tests/bundles/base.yaml (+2/-3)
src/tests/functional/tests/bundles/bionic-vault.yaml (+3/-2)
src/tests/functional/tests/bundles/bionic.yaml (+1/-0)
src/tests/functional/tests/bundles/focal-vault.yaml (+1/-0)
src/tests/functional/tests/bundles/focal.yaml (+1/-0)
src/tests/functional/tests/bundles/jammy-vault.yaml (+1/-0)
src/tests/functional/tests/bundles/jammy.yaml (+1/-0)
src/tests/functional/tests/bundles/overlays/bionic.yaml.j2 (+1/-0)
src/tests/functional/tests/bundles/overlays/focal-vault.yaml.j2 (+1/-0)
src/tests/functional/tests/bundles/overlays/focal.yaml.j2 (+1/-0)
src/tests/functional/tests/bundles/overlays/jammy-vault.yaml.j2 (+1/-0)
src/tests/functional/tests/bundles/overlays/jammy.yaml.j2 (+1/-0)
src/tests/functional/tests/tests.yaml (+14/-10)
src/tests/functional/tests/tests_prometheus.py (+2/-0)
src/tests/unit/test_reactive_prometheus.py (+3/-9)
Changed in charm-prometheus2: | |
assignee: | nobody → Erhan Sunar (esunar) |
Changed in charm-prometheus2: | |
milestone: | none → 22.10 |
Changed in charm-prometheus2: | |
status: | New → In Progress |
Changed in charm-prometheus2: | |
status: | In Progress → Fix Committed |
Changed in charm-prometheus2: | |
status: | Fix Committed → Fix Released |
Changed in charm-prometheus2: | |
status: | Fix Released → Fix Committed |
Changed in charm-prometheus2: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
From debug-log:
unit-prometheus2-0: 11:14:50 INFO juju.worker.uniter awaiting error resolution for "install" hook 2/0.install error: subprocess- exited- with-error 2/0.install 2/0.install × python setup.py egg_info did not run successfully. 2/0.install │ exit code: 1 2/0.install ╰─> [1 lines of output] 2/0.install error in Tempita setup command: use_2to3 is invalid. 2/0.install [end of output] 2/0.install 2/0.install note: This error originates from a subprocess, and is likely not a problem with pip. 2/0.install error: metadata- generation- failed 2/0.install 2/0.install × Encountered error while generating package metadata. 2/0.install ╰─> See above for output. 2/0.install 2/0.install note: This is an issue with the package mentioned above, not pip. 2/0.install hint: See above for details. 2/0.install Traceback (most recent call last): 2/0.install File "/var/lib/ juju/agents/ unit-prometheus 2-0/charm/ hooks/install" , line 8, in <module> 2/0.install basic.bootstrap _charm_ deps() 2/0.install File "/var/lib/ juju/agents/ unit-prometheus 2-0/charm/ lib/charms/ layer/basic. py", line 212, in bootstrap_ charm_deps 2/0.install check_call([pip, 'install', '-U', reinstall_flag, '--no-index', 2/0.install File "/usr/lib/ python3. 10/subprocess. py", line 369, in check_call 2/0.install raise CalledProcessEr ror(retcode, cmd) 2/0.install subprocess. CalledProcessEr ror: Command '['/var/ lib/juju/ agents/ unit-prometheus 2-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 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 WARNING unit.prometheus
unit-prometheus2-0: 11:14:59 ERRO...