Skip to content

Conversation

meyskens
Copy link
Contributor

@meyskens meyskens commented Jul 20, 2023

This adds a delete call to the metadata map of the ipcache. On a delete from ipcache this info was left bhind. In case a node gets deleted the IP would keep receiving the remote-host label from this cache incorrectly.

This issue came out of an issue where we saw EKS nodes being recycled and the IPs getting re-used and receiving an incorrect remote-host label in identity cache and ip cache.

Delete IP Label metadata on delete from ipcache

@maintainer-s-little-helper maintainer-s-little-helper bot added backport/1.12 kind/backports This PR provides functionality previously merged into master. labels Jul 20, 2023
@meyskens meyskens marked this pull request as ready for review July 24, 2023 07:10
@meyskens meyskens requested a review from a team as a code owner July 24, 2023 07:10
@meyskens meyskens changed the title Delete IP Label metadata on delete from ipcache [v1.12] Delete IP Label metadata on delete from ipcache Jul 24, 2023
Copy link
Contributor

@youngnick youngnick left a comment

Choose a reason for hiding this comment

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

LGTM but it seems like I shouldn't be the only one reviewing this.

@meyskens meyskens requested review from a team and nathanjsweet and removed request for a team July 24, 2023 07:14
@meyskens
Copy link
Contributor Author

@youngnick added sig-policy for review

@meyskens
Copy link
Contributor Author

meyskens commented Jul 25, 2023

/test-backport-1.12

Job 'Cilium-PR-K8s-1.17-kernel-4.9' hit: #25721 (97.68% similarity)

This adds a delete call to the metadatamap of the ipcache.
On a delete from ipcache this info was left bhind.
In case a node gets deleted the IP would keep receiving the remote-host
label from this cache incorrectly.

Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
@meyskens meyskens force-pushed the meyskens/112-ipcache-meta-delete branch from b3c6b9b to 1e57744 Compare July 26, 2023 20:15
@meyskens
Copy link
Contributor Author

meyskens commented Jul 26, 2023

/test-backport-1.12

Job 'Cilium-PR-K8s-1.20-kernel-4.9' failed:

Click to show.

Test Name

K8sDatapathConfig MonitorAggregation Checks that monitor aggregation restricts notifications

Failure Output

FAIL: Unable to restart unmanaged pods with 'kubectl -n kube-system delete pods coredns-7c74c644b-rxsz6': Exitcode: 1 

Jenkins URL: https://jenkins.cilium.io/job/Cilium-PR-K8s-1.20-kernel-4.9/113/

If it is a flake and a GitHub issue doesn't already exist to track it, comment /mlh new-flake Cilium-PR-K8s-1.20-kernel-4.9 so I can create one.

Then please upload the Jenkins artifacts to that issue.

@meyskens
Copy link
Contributor Author

meyskens commented Jul 27, 2023

/mlh new-flake Cilium-PR-K8s-1.20-kernel-4.9

👍 created #27118

@meyskens meyskens added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jul 27, 2023
@youngnick youngnick merged commit f9fe611 into cilium:v1.12 Jul 28, 2023
@meyskens meyskens deleted the meyskens/112-ipcache-meta-delete branch July 28, 2023 11:52
@marseel marseel mentioned this pull request Aug 9, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/backports This PR provides functionality previously merged into master. ready-to-merge This PR has passed all tests and received consensus from code owners to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants