-
Notifications
You must be signed in to change notification settings - Fork 22
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
hook failed: "grafana-source-relation-departed" #281
Comments
Additional info. Decided to see what happens on intervention. Performed
With this in debug-log
|
Next resolve --no-retry gives
|
Two more resolves and
|
Issue is that the peer relation is apparently removed before the grafana-source one. So when the charm lib does |
Seeing this issue on grafana |
In a chat with @gaborbk in Matrix we also see this issue on grafana As far as I understand the issue is in fact in this method: def _get_stored_dashboards(self, relation_id: int) -> list:
"""Pull stored dashboards out of the peer data bucket."""
return self.get_peer_data("dashboards").get(str(relation_id), {})
|
This issue is related to this fix in Juju 3.5.5: |
Thank you for finding the fix @Abuelodelanada - sounds like my only option is tiupgrade Juju version to 3.5.5+ |
Bug Description
Deployed cos lite bundle to a model and had it running for several days. Attempted to destroy the model, and grafana agent went into error status with
hook failed: "grafana-source-relation-departed"
To Reproduce
--config git_repo=https://github.com/canonical/sdcore-cos-configuration
--config git_branch=main
--config git_depth=1
--config grafana_dashboards_path=grafana_dashboards/sdcore/
I then performed cross model integrations with two other models on offer cos.prometheus:receive-remote-write and cos.loki:logging.
The first model, I performed a destroy model, however the second still remained with a relation.
I then destroyed the cos-lite model and this error occurred.
Environment
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: