Skip to content

Conversation

marseel
Copy link
Contributor

@marseel marseel commented Jul 31, 2025

(description in commits)

eni: improve logging and speed up ipam reconciliation in case of node scale-downs

@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 Jul 31, 2025
@marseel marseel added the release-note/minor This PR changes functionality that users may find relevant to operating Cilium. label Jul 31, 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 Jul 31, 2025
@marseel marseel added dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch labels Jul 31, 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 Jul 31, 2025
@marseel
Copy link
Contributor Author

marseel commented Jul 31, 2025

/test

marseel added 2 commits July 31, 2025 17:53
IPAM NodeManager keeps track of all nodes within cluster and
periodically tries to Resync all CiliumNodes. However, list of nodes
might become stale (for example due to scale-down) during resync.
As a result, log message ""Unable to update CiliumNode status"
error="ciliumnodes.cilium.io Node not found" might be observed in Cilium
Operator logs as it tries to update non-existintent CiliumNode.

Additionally, it was performing unnecessary k8s API calls, potentially
slowing down reconcilation.

Signed-off-by: Marcel Zieba <marcel.zieba@isovalent.com>
Caller of ResyncInterfacesAndIPs already captures error and logs it in
pkg/ipam/node.go
Example logs before this change:
level=warning msg="Instance not found [...]" instanceID nodeName
level=warning msg="Instance not found [...]" error="unable to retrieve ENIs" instanceID nodeName
for the same node.

Signed-off-by: Marcel Zieba <marcel.zieba@isovalent.com>
@marseel marseel force-pushed the pr/marseel/fix_not_found_error branch from 018f617 to 31fed7b Compare July 31, 2025 15:54
@marseel
Copy link
Contributor Author

marseel commented Aug 1, 2025

/test

@marseel marseel added area/eni Impacts ENI based IPAM. area/ipam IP address management, including cloud IPAM labels Aug 1, 2025
@marseel marseel marked this pull request as ready for review August 1, 2025 09:42
@marseel marseel requested review from a team as code owners August 1, 2025 09:42
@marseel marseel requested review from tklauser, liyihuang and aanm August 1, 2025 09:42
@aanm aanm added this pull request to the merge queue Aug 4, 2025
Merged via the queue into main with commit 00c917b Aug 4, 2025
358 of 359 checks passed
@aanm aanm deleted the pr/marseel/fix_not_found_error branch August 4, 2025 09:14
@rastislavs rastislavs mentioned this pull request Aug 6, 2025
17 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 Aug 6, 2025
@github-actions github-actions bot removed the backport-pending/1.18 The backport for Cilium 1.18.x for this PR is in progress. label Aug 8, 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 Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/eni Impacts ENI based IPAM. area/ipam IP address management, including cloud IPAM backport-done/1.18 The backport for Cilium 1.18.x for this PR is done. release-note/minor This PR changes functionality that users may find relevant to operating Cilium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants