Skip to content

pkg/redirectpolicy: Check for LRP backend pod readiness#43095

Merged
aditighag merged 1 commit intocilium:mainfrom
aditighag:pr/aditighag/fix-lrp-pod-readiness
Dec 5, 2025
Merged

pkg/redirectpolicy: Check for LRP backend pod readiness#43095
aditighag merged 1 commit intocilium:mainfrom
aditighag:pr/aditighag/fix-lrp-pod-readiness

Conversation

@aditighag
Copy link
Copy Markdown
Member

@aditighag aditighag commented Dec 2, 2025

Fixes: #43080

Fix a bug with local redirect service entries being created when backend pods weren't ready.

@aditighag aditighag added area/lrp Impacts Local Redirect Policy. needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch labels Dec 2, 2025
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Dec 2, 2025
@aditighag aditighag force-pushed the pr/aditighag/fix-lrp-pod-readiness branch 2 times, most recently from aec8cee to cdaed45 Compare December 2, 2025 23:29
@aditighag aditighag force-pushed the pr/aditighag/fix-lrp-pod-readiness branch from cdaed45 to 2cc7761 Compare December 2, 2025 23:51
@aditighag aditighag marked this pull request as ready for review December 2, 2025 23:52
@aditighag aditighag requested a review from a team as a code owner December 2, 2025 23:52
@aditighag aditighag requested a review from joamaki December 2, 2025 23:52
@aditighag
Copy link
Copy Markdown
Member Author

/test

@aditighag aditighag added the release-note/bug This PR fixes an issue in a previous release of Cilium. label Dec 2, 2025
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Dec 2, 2025
@aditighag aditighag marked this pull request as draft December 2, 2025 23:57
@aditighag aditighag force-pushed the pr/aditighag/fix-lrp-pod-readiness branch from 2cc7761 to afbdd26 Compare December 3, 2025 00:06
@aditighag
Copy link
Copy Markdown
Member Author

/test

@aditighag aditighag marked this pull request as ready for review December 3, 2025 00:06
@aditighag aditighag marked this pull request as draft December 4, 2025 17:22
@aditighag aditighag force-pushed the pr/aditighag/fix-lrp-pod-readiness branch from afbdd26 to 4c36361 Compare December 4, 2025 17:33
@aditighag aditighag marked this pull request as ready for review December 4, 2025 17:33
@aditighag
Copy link
Copy Markdown
Member Author

/test

@aditighag aditighag enabled auto-merge December 4, 2025 17:33
@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 Dec 5, 2025
@aditighag aditighag added dont-merge/discussion A discussion is ongoing and should be resolved before merging, regardless of reviews & tests status. and removed ready-to-merge This PR has passed all tests and received consensus from code owners to merge. labels Dec 5, 2025
The refactored LB control plane for LRP missed the pod
readiness check from the earlier LRP manager implementation.
As a result, this led to creation of local-redirect entries
when pod backends weren't ready to service traffic.

Fixes: 5a289d5 ("experimental: Implement handling of LocalRedirectPolicies")
Fixes: cilium#43080
Signed-off-by: Aditi Ghag <aditi@cilium.io>
@aditighag aditighag force-pushed the pr/aditighag/fix-lrp-pod-readiness branch from 4c36361 to 7ecc741 Compare December 5, 2025 18:02
@aditighag aditighag removed the dont-merge/discussion A discussion is ongoing and should be resolved before merging, regardless of reviews & tests status. label Dec 5, 2025
@aditighag
Copy link
Copy Markdown
Member Author

/test

@aditighag aditighag added this pull request to the merge queue Dec 5, 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 Dec 5, 2025
Merged via the queue into cilium:main with commit 8446c23 Dec 5, 2025
75 checks passed
@aditighag aditighag deleted the pr/aditighag/fix-lrp-pod-readiness branch December 5, 2025 20:00
@kaworu kaworu mentioned this pull request Dec 12, 2025
7 tasks
@Artyop Artyop mentioned this pull request Dec 18, 2025
4 tasks
@Artyop Artyop added backport-pending/1.18 The backport for Cilium 1.18.x for this PR is in progress. backport/author The backport will be carried out by the author of the PR. and removed needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch backport-pending/1.18 The backport for Cilium 1.18.x for this PR is in progress. labels Dec 18, 2025
@github-actions github-actions bot added the backport-done/1.18 The backport for Cilium 1.18.x for this PR is done. label Dec 19, 2025
@mattrawles
Copy link
Copy Markdown

Hi , I originally reported this under issue #43080 and it was fixed in issue #43095 , that is listed in the release notes for 1.18.6 but the issue remains in 1.18.6 (its gone from 1.19.pre-4.| @aditighag @joamaki

Looking at the backport PR #43425 that has a message

Dropped #43095 : multiple issue, set.go in pkg/labels do not exist in v1.18, same for types.Match

So this doesn't look like its made it to 1.18.6!

@julianwiedmann
Copy link
Copy Markdown
Member

yep, thanks for the ping! Looks like the backport was dropped from #43425, but still triggered a label update here.

So we'd still need a manual backport to v1.18.

@julianwiedmann julianwiedmann added needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch and removed backport-done/1.18 The backport for Cilium 1.18.x for this PR is done. labels Jan 14, 2026
@giorio94 giorio94 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 Jan 19, 2026
@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 Jan 20, 2026
@cilium-release-bot cilium-release-bot bot moved this to Released in cilium v1.19.0 Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/lrp Impacts Local Redirect Policy. backport/author The backport will be carried out by the author of the PR. 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

No open projects
Status: Released

Development

Successfully merging this pull request may close these issues.

Local Redirect Policy for local DNS cache - observing intermittent DNS failures on new nodes if node-local-dns pod has not yet started fully

7 participants