Skip to content

neighbor: Fix bug where neighbor discovery subsystem reports unhealthy when it is healthy#41186

Merged
joestringer merged 1 commit intocilium:mainfrom
mhofstetter:pr/mhofstetter/fix-neighbor-error-handling
Aug 19, 2025
Merged

neighbor: Fix bug where neighbor discovery subsystem reports unhealthy when it is healthy#41186
joestringer merged 1 commit intocilium:mainfrom
mhofstetter:pr/mhofstetter/fix-neighbor-error-handling

Conversation

@mhofstetter
Copy link
Copy Markdown
Member

@mhofstetter mhofstetter commented Aug 15, 2025

This commit fixes some errorhandling cases in the neighbor calculator where the value of the error is not checked before joining with other errors.

This leads to the incorrect health status being reported.

e.g.

desired neighbor calculator errored: failed to insert desired neighbor: %!w(<nil>)\nfailed to insert desired neighbor: %!w(<nil>)

Note: NOT checking if an error is nil before joining is fine. but in these cases the error that gets joined is never nil because the actual error (that can be nil) gets wrapped.

@mhofstetter mhofstetter requested a review from a team as a code owner August 15, 2025 13:48
@mhofstetter mhofstetter added release-note/misc This PR makes changes that have no direct user impact. kind/bug This is a bug in the Cilium logic. needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch release-note/bug This PR fixes an issue in a previous release of Cilium. and removed release-note/misc This PR makes changes that have no direct user impact. labels Aug 15, 2025
@mhofstetter
Copy link
Copy Markdown
Member Author

/test

Copy link
Copy Markdown
Member

@dylandreimerink dylandreimerink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

This commit fixes some errorhandling cases in the neighbor calculator
where the value of the error is not checked before joining with other errors.

This leads to the incorrect health status being reported.

e.g.

```
desired neighbor calculator errored: failed to insert desired neighbor: %!w(<nil>)\nfailed to insert desired neighbor: %!w(<nil>)
```

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/fix-neighbor-error-handling branch from 5c5e9d1 to 57b1a9b Compare August 18, 2025 13:45
@mhofstetter
Copy link
Copy Markdown
Member Author

rebased to main to pickup ci-ginkgo fix

@mhofstetter
Copy link
Copy Markdown
Member Author

/test

@mhofstetter mhofstetter added dont-merge/bad-bot To prevent MLH from marking ready-to-merge. and removed dont-merge/bad-bot To prevent MLH from marking ready-to-merge. labels Aug 18, 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 Aug 18, 2025
@joestringer
Copy link
Copy Markdown
Member

Could you update the PR description or PR title to provide a release note that users could better interpet? For instance, "Fix bug where neighbor discovery subsystem reports unhealthy when it is healthy"

@joestringer joestringer added this pull request to the merge queue Aug 19, 2025
Merged via the queue into cilium:main with commit 0b63209 Aug 19, 2025
71 of 79 checks passed
@mhofstetter mhofstetter changed the title neighbor: fix errorhandling in neighbor calculator neighbor: Fix bug where neighbor discovery subsystem reports unhealthy when it is healthy Aug 20, 2025
@mhofstetter mhofstetter deleted the pr/mhofstetter/fix-neighbor-error-handling branch August 20, 2025 06:01
@pippolo84 pippolo84 mentioned this pull request Aug 25, 2025
17 tasks
@pippolo84 pippolo84 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 Aug 25, 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 Sep 1, 2025
@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

backport-done/1.18 The backport for Cilium 1.18.x for this PR is done. kind/bug This is a bug in the Cilium logic. 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.

5 participants