You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When removing a relation (traefik_route interface) between traefik-k8s and grafana-k8s, and KeyError exception is raised:
KeyError: 'Cannot index relation data with "None". Are you trying to access remote app data during a relation-broken event? This is not allowed.'
To Reproduce
Deploy cos: juju deploy cos-lite --trust
Wait until all units are in active status
Remove relations, for instance: jhack imatrix clear
See in juju debug-log the errors
Environment
juju: 3.0.0 (and 2.9.35 as well)
microk8s: 1.25-strict
Relevant log output
unit-grafana-0: 00:56:30.249 INFO juju.worker.uniter.operation ran "grafana-source-relation-broken" hook (via hook dispatching script: dispatch)
unit-grafana-0: 00:56:32.056 ERROR unit.grafana/0.juju-log ingress:5: Uncaught exception whilein charm code:
Traceback (most recent call last):
File "./src/charm.py", line 1156, in<module>
main(GrafanaCharm, use_juju_for_storage=True)
File "/var/lib/juju/agents/unit-grafana-0/charm/venv/ops/main.py", line 426, in main
charm = charm_class(framework)
File "./src/charm.py", line 210, in __init__
url=self.external_url,
File "./src/charm.py", line 1068, in external_url
if self.ingress.external_host:
File "/var/lib/juju/agents/unit-grafana-0/charm/lib/charms/traefik_route_k8s/v0/traefik_route.py", line 220, in external_host
self._update_stored_external_host()
File "/var/lib/juju/agents/unit-grafana-0/charm/lib/charms/traefik_route_k8s/v0/traefik_route.py", line 235, in _update_stored_external_host
external_host = relation.data[relation.app].get("external_host", "")
File "/var/lib/juju/agents/unit-grafana-0/charm/venv/ops/model.py", line 914, in __getitem__
raise KeyError(
KeyError: 'Cannot index relation data with "None". Are you trying to access remote app data during a relation-broken event? This is not allowed.'
unit-grafana-0: 00:56:32.564 ERROR juju.worker.uniter.operation hook "ingress-relation-broken" (via hook dispatching script: dispatch) failed: exit status 1
Additional context
No response
The text was updated successfully, but these errors were encountered:
Bug Description
When removing a relation (
traefik_route
interface) between traefik-k8s and grafana-k8s, andKeyError
exception is raised:To Reproduce
juju deploy cos-lite --trust
active
statusjhack imatrix clear
juju debug-log
the errorsEnvironment
juju: 3.0.0 (and 2.9.35 as well)
microk8s: 1.25-strict
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: