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

hardware-exporter service wasn't installed when cos_agent relation is provided #284

Closed
zxhdaze opened this issue Aug 1, 2024 · 0 comments · Fixed by #285
Closed

hardware-exporter service wasn't installed when cos_agent relation is provided #284

zxhdaze opened this issue Aug 1, 2024 · 0 comments · Fixed by #285
Labels
bug Something isn't working

Comments

@zxhdaze
Copy link
Contributor

zxhdaze commented Aug 1, 2024

Similar to #281, I also found the config-change hook is called before hardware-exporter get installed.
I'm able to reproduce this error on a Redfish supported machine by:

juju deploy ubuntu
juju deploy hardware-observer
juju deploy grafana-agent
#To reproduce the error, relate grafana-agent to hardware-observer first
juju relate grafana-agent hardware-observer
juju relate hardware-observer ubuntu

The unit becomes blocked, asking to attach the storcli-deb resource and then requesting Redfish credentials. At this point, hardware-exporter is not installed. If I configure the charm with Redfish credentials at this stage, it crashes.

This error does not occur if the cos_agent relations are not provided. This is possibly related to #215.

@zxhdaze zxhdaze added the bug Something isn't working label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant