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

grafana-agent install hook fail: ImportError: charms.tls_certificates_interface.v2.tls_certificates is missing #13

Closed
jneo8 opened this issue Oct 19, 2023 · 3 comments

Comments

@jneo8
Copy link
Contributor

jneo8 commented Oct 19, 2023

Bug Description

Unit in error status, which deploy from edge channel, (revision 20).

The error message will like

To Reproduce

# base focal
juju deploy ubuntu
juju deploy grafana-agent
juju relate grafana-agent ubuntu

Environment

juju 3.2.3 with local lxd

Relevant log output

2023-10-19 10:38:22 WARNING unit.grafana-agent/0.install logger.go:60 ImportError: libssl.so.3: cannot open shared object file: No such file or directory
2023-10-19 10:38:22 WARNING unit.grafana-agent/0.install logger.go:60 
2023-10-19 10:38:22 WARNING unit.grafana-agent/0.install logger.go:60 During handling of the above exception, another exception occurred:
2023-10-19 10:38:22 WARNING unit.grafana-agent/0.install logger.go:60 
2023-10-19 10:38:22 WARNING unit.grafana-agent/0.install logger.go:60 Traceback (most recent call last):
2023-10-19 10:38:22 WARNING unit.grafana-agent/0.install logger.go:60   File "./src/charm.py", line 20, in <module>
2023-10-19 10:38:22 WARNING unit.grafana-agent/0.install logger.go:60     from grafana_agent import METRICS_RULES_SRC_PATH, GrafanaAgentCharm
2023-10-19 10:38:22 WARNING unit.grafana-agent/0.install logger.go:60   File "/var/lib/juju/agents/unit-grafana-agent-0/charm/src/grafana_agent.py", line 31, in <module>
2023-10-19 10:38:22 WARNING unit.grafana-agent/0.install logger.go:60     from charms.observability_libs.v0.cert_handler import CertHandler
2023-10-19 10:38:22 WARNING unit.grafana-agent/0.install logger.go:60   File "/var/lib/juju/agents/unit-grafana-agent-0/charm/lib/charms/observability_libs/v0/cert_handler.py", line 51, in <module>
2023-10-19 10:38:22 WARNING unit.grafana-agent/0.install logger.go:60     raise ImportError(
2023-10-19 10:38:22 WARNING unit.grafana-agent/0.install logger.go:60 ImportError: charms.tls_certificates_interface.v2.tls_certificates is missing; please get it through charmcraft fetch-lib
2023-10-19 10:38:22 ERROR juju.worker.uniter.operation runhook.go:180 hook "install" (via hook dispatching script: dispatch) failed: exit status 1

Additional context

No response

@PietroPasotti PietroPasotti transferred this issue from canonical/grafana-agent-k8s-operator Oct 19, 2023
@PietroPasotti
Copy link
Contributor

the error message is misleading, the real issue is above: ImportError: libssl.so.3

what base is it running on? is libssl supposed to be found there?

@jneo8
Copy link
Contributor Author

jneo8 commented Oct 20, 2023

what base is it running on? is libssl supposed to be found there?

It's on focal.

@jneo8
Copy link
Contributor Author

jneo8 commented Oct 20, 2023

After some debuging, the issue only happen on if we relate Jammy series grafana-agent to focal series ubuntu.

@jneo8 jneo8 closed this as completed Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants