Open sed-i opened 2 years ago
todo: look at https://github.com/canonical/observability-libs/pull/10 and consider implementing some liveness check by using that external process to wake up the charm when "traefik is done", and only then publish the relation data to tell "ingress is ready"
Bug Description
Currently,
ready_for_unit
is emitted based on relation events only:https://github.com/canonical/traefik-k8s-operator/blob/494741059d931a9827e8214401f61cde8585582e/lib/charms/traefik_k8s/v1/ingress_per_unit.py#L692-L695
This is racy with the traefik workload: sometimes the remote app processes the event before traefik workload is in fact ready.
To Reproduce
Relate prometheus and traefik.
Environment
Relevant log output
Additional context
No response