Model Controller Cloud/Region Version SLA Timestamp
auth2 k8s2 microk8s/localhost 3.1.6 unsupported 23:27:07-05:00
App Version Status Scale Charm Channel Rev Address Exposed Message
ok unknown 0 oathkeeper 3 10.152.183.181 no
trfk unknown 0 traefik-k8s 2 10.43.8.206 no
zinc ... error 1/0 zinc-k8s 2 10.152.183.134 no hook failed: "auth-proxy-relation-departed"
Unit Workload Agent Address Ports Message
zinc/0* error idle 10.1.166.106 hook failed: "auth-proxy-relation-departed" for ok:auth-proxy
Relevant log output
unit-zinc-0: 23:22:24.558 DEBUG unit.zinc/0.juju-log auth-proxy:21: Emitting Juju event auth_proxy_relation_departed.
unit-zinc-0: 23:22:24.567 ERROR unit.zinc/0.juju-log auth-proxy:21: Uncaught exception while in charm code:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-zinc-0/charm/./src/charm.py", line 132, in <module>
ops.main(ZincCharm)
File "/var/lib/juju/agents/unit-zinc-0/charm/venv/ops/main.py", line 456, in __call__
return main(charm_class, use_juju_for_storage=use_juju_for_storage)
File "/var/lib/juju/agents/unit-zinc-0/charm/venv/ops/main.py", line 441, in main
_emit_charm_event(charm, dispatcher.event_name)
File "/var/lib/juju/agents/unit-zinc-0/charm/venv/ops/main.py", line 149, in _emit_charm_event
event_to_emit.emit(*args, **kwargs)
File "/var/lib/juju/agents/unit-zinc-0/charm/venv/ops/framework.py", line 344, in emit
framework._emit(event)
File "/var/lib/juju/agents/unit-zinc-0/charm/venv/ops/framework.py", line 841, in _emit
self._reemit(event_path)
File "/var/lib/juju/agents/unit-zinc-0/charm/venv/ops/framework.py", line 930, in _reemit
custom_handler(event)
File "/var/lib/juju/agents/unit-zinc-0/charm/lib/charms/oathkeeper/v0/auth_proxy.py", line 440, in _on_relation_departed_event
self._pop_relation_data(event.relation.id)
File "/var/lib/juju/agents/unit-zinc-0/charm/lib/charms/oathkeeper/v0/auth_proxy.py", line 165, in _pop_relation_data
if not self._charm.model.relations[self._relation_name]:
AttributeError: 'AuthProxyRequirer' object has no attribute '_charm'
unit-zinc-0: 23:22:24.784 ERROR juju.worker.uniter.operation hook "auth-proxy-relation-departed" (via hook dispatching script: dispatch) failed: exit status 1
Bug Description
When remove oathkeeper relation, zinc went into error state.
To Reproduce
Deploy the following bundle, and then
juju remove-application ok trfk zinc
.Environment
Relevant log output
Additional context
No response