Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[k8s] 22.04-built charm fails on install hook when running on 20.04. #245

Closed
sed-i opened this issue Sep 7, 2023 · 1 comment
Closed

Comments

@sed-i
Copy link
Contributor

sed-i commented Sep 7, 2023

Bug Description

K8s charm fails on install hook, because of a missing libssl.so.3.

Also see "Context" section in #242.

To Reproduce

Run prometheus tests/integration/test_remote_write_grafana_agent.py without forcing series to jammy.

Environment

Latest.

Relevant log output

INFO juju.worker.uniter awaiting error resolution for "install" hook
WARNING unit.grafana-agent/0.install Traceback (most recent call last):
WARNING unit.grafana-agent/0.install   File "/var/lib/juju/agents/unit-grafana-agent-0/charm/lib/charms/observability_libs/v0/cert_handler.py", line 41, in <module>
WARNING unit.grafana-agent/0.install     from charms.tls_certificates_interface.v2.tls_certificates import (  # type: ignore
WARNING unit.grafana-agent/0.install   File "/var/lib/juju/agents/unit-grafana-agent-0/charm/lib/charms/tls_certificates_interface/v2/tls_certificates.py", line 285, in <module>
WARNING unit.grafana-agent/0.install     from cryptography import x509
WARNING unit.grafana-agent/0.install   File "/var/lib/juju/agents/unit-grafana-agent-0/charm/venv/cryptography/x509/__init__.py", line 7, in <module>
WARNING unit.grafana-agent/0.install     from cryptography.x509 import certificate_transparency
WARNING unit.grafana-agent/0.install   File "/var/lib/juju/agents/unit-grafana-agent-0/charm/venv/cryptography/x509/certificate_transparency.py", line 11, in <module>
WARNING unit.grafana-agent/0.install     from cryptography.hazmat.bindings._rust import x509 as rust_x509
WARNING unit.grafana-agent/0.install ImportError: libssl.so.3: cannot open shared object file: No such file or directory

Additional context

According to @jameinel,

if the user isn't explicit, charmhub uses the "select descending LTS then descending supported series"
so 22.04 > 20.04 ... > 23.10 > 23.04

For some reason, the focal (not jammy) series is deployed in prometheus tests/integration/test_remote_write_grafana_agent.py. Maybe something to do with pylibjuju.

However, regardless of the series selection method, we still have a problem here, and juju deploying focal instead of jammy uncovered the issue.

@sed-i
Copy link
Contributor Author

sed-i commented Sep 27, 2023

Fixed in #254.

@sed-i sed-i closed this as completed Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant