dashboards-relation-changed failed, if remove_unit is None
Bug #1946006 reported by
Robert Gildein
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Grafana Charm |
Fix Released
|
Medium
|
Alvaro Uria |
Bug Description
When `dashboards-
remote_unit is None, this hook fails and the unit enters an error state.
The solution would be to move this condition [1] to this line [2].
---
[1]: https:/
[2]: https:/
Related branches
~aluria/charm-grafana:bug/1946006
- Celia Wang: Approve
- Xav Paice (community): Approve
- 🤖 prod-jenkaas-bootstack: Approve (continuous-integration)
-
Diff: 73 lines (+25/-23)1 file modifiedsrc/reactive/grafana.py (+25/-23)
description: | updated |
Changed in charm-grafana: | |
status: | New → In Progress |
assignee: | nobody → Alvaro Uria (aluria) |
importance: | Undecided → Medium |
Changed in charm-grafana: | |
status: | In Progress → Fix Committed |
milestone: | none → 21.10 |
Changed in charm-grafana: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This error was noticed when I tried to update the relation data via relation. data[self. app].update( ...)` in the charm based on the
`event.
operator framework.
I think it makes more sense when data is part of an application
relation data, which is not supported now. Solution for that will
be using `relation_id=None` if remote_unit is None.