Skip to content

Conversation

mhofstetter
Copy link
Member

The new Cilium LB controlplane introduced a new property Unhealthy on the backend params which allows for healthchecker extensions to report a backend as unhealthy. The LB backend selection respects the State & Unhealthy properties of the backend.

While introducing the new property, there was an oversight of cilium-dbg service list which still shows the backend state as active even though the backend is reported as unhealthy.

Therefore, this commit changes the LB REST API implementation to report the state of a backend as quarantined if Unhealthy==true.

The new Cilium LB controlplane introduced a new property `Unhealthy` on the
backend params which allows for healthchecker extensions to report a backend
as unhealthy. The LB backend selection respects the `State` & `Unhealthy`
properties of the backend.

While introducing the new property, there was an oversight of `cilium-dbg service list`
which still shows the backend state as `active` even though the backend is reported as
`unhealthy`.

Therefore, this commit changes the LB REST API implementation to report the state
of a backend as `quarantined` if `Unhealthy==true`.

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
@mhofstetter mhofstetter added release-note/bug This PR fixes an issue in a previous release of Cilium. area/cli Impacts the command line interface of any command in the repository. area/loadbalancing Impacts load-balancing and Kubernetes service implementations labels Jul 29, 2025
@mhofstetter
Copy link
Member Author

/test

@mhofstetter mhofstetter requested a review from joamaki July 29, 2025 10:21
@mhofstetter mhofstetter marked this pull request as ready for review July 29, 2025 10:21
@mhofstetter mhofstetter requested a review from a team as a code owner July 29, 2025 10:21
@mhofstetter mhofstetter added the needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch label Jul 29, 2025
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jul 29, 2025
@aanm aanm added this pull request to the merge queue Jul 29, 2025
Merged via the queue into cilium:main with commit 32f7fa6 Jul 29, 2025
73 of 74 checks passed
@mhofstetter mhofstetter deleted the pr/mhofstetter/lb-api-fix-backend-state branch July 29, 2025 11:29
@rastislavs rastislavs mentioned this pull request Jul 31, 2025
14 tasks
@rastislavs rastislavs added backport-pending/1.18 The backport for Cilium 1.18.x for this PR is in progress. and removed needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch labels Jul 31, 2025
@github-actions github-actions bot added backport-done/1.18 The backport for Cilium 1.18.x for this PR is done. and removed backport-pending/1.18 The backport for Cilium 1.18.x for this PR is in progress. labels Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Impacts the command line interface of any command in the repository. area/loadbalancing Impacts load-balancing and Kubernetes service implementations backport-done/1.18 The backport for Cilium 1.18.x for this PR is done. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/bug This PR fixes an issue in a previous release of Cilium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants