-
Notifications
You must be signed in to change notification settings - Fork 26
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
Wrong units exposed by the IngressPerAppEndpoint #260
Comments
Can't seem to reproduce in unittests. |
@gboutry can you please give us some repro instructions? thanks :) |
I just redid the reproduction steps, and I could see that the departing unit was not removed from the After an update status, it was fixed. I don't know what to say more on reproduction steps. |
After some investigation, it looks like loadbalancer's servers are not updated on scale down: https://github.com/canonical/traefik-k8s-operator/blob/main/lib/charms/traefik_k8s/v2/ingress.py#L247C9-L247C9 |
if you're hinting at the absence of a However this should be easy to reproduce in unittests, which I didn't manage to do. Let me give another shot at it. It might also be an instance of canonical/operator#888 but in a departed situation rather than broken. |
found it! #263 |
Bug Description
After a scenario of scale up and scale down, traefik exposed only the missing unit.
To Reproduce
Environment
Traefik: 1.0/candidate 148
Juju: 3.1.5-genericlinux-amd64
Juju agent: 3.1.5
Microk8s: MicroK8s v1.28.0 revision 5802
OS: Ubuntu 22.04.3 LTS
ingress.py: 2.6
Relevant log output
Logs too long for github comments
Debug logs: https://pastebin.ubuntu.com/p/3JsfT9TGQp/
Traefik container logs: https://pastebin.ubuntu.com/p/ZVx2RK4XBR/
Additional context
Show unit:
Traefik definition:
Servers url changed from having neutron-0 and neutron-1 to neutron-1 only, and after some time back to neutron-0 only.
The text was updated successfully, but these errors were encountered: