Skip to content

endpoint: Skip build queue warning log is context is canceled#32132

Merged
ti-mo merged 1 commit intocilium:mainfrom
jrajahalme:endpoint-events-skip-warning-log
Apr 25, 2024
Merged

endpoint: Skip build queue warning log is context is canceled#32132
ti-mo merged 1 commit intocilium:mainfrom
jrajahalme:endpoint-events-skip-warning-log

Conversation

@jrajahalme
Copy link
Copy Markdown
Member

The warning log on failure to queue endpoint build is most likely not meaningful when the context is canceled, as this typically happends when the endpoint is deleted.

Skip the warning log if error is context.Canceled. This fixes CI flakes like this:

Found 1 k8s-app=cilium logs matching list of errors that must be investigated:
2024-04-22T07:48:47.779499679Z time="2024-04-22T07:48:47Z" level=warning msg="unable to queue endpoint build" ciliumEndpointName=kube-system/coredns-76f75df574-9k8sp containerID=3791acef13 containerInterface=eth0 datapathPolicyRevision=0 desiredPolicyRevision=0 endpointID=637 error="context canceled" identity=25283 ipv4=10.0.0.151 ipv6="fd02::82" k8sPodName=kube-system/coredns-76f75df574-9k8sp subsys=endpoint

Fixes: #31827

The warning log on failure to queue endpoint build is most likely not
meaningful when the context is canceled, as this typically happends when
the endpoint is deleted.

Skip the warning log if error is context.Canceled. This fixes CI flakes
like this:

    Found 1 k8s-app=cilium logs matching list of errors that must be investigated:
    2024-04-22T07:48:47.779499679Z time="2024-04-22T07:48:47Z" level=warning msg="unable to queue endpoint build" ciliumEndpointName=kube-system/coredns-76f75df574-9k8sp containerID=3791acef13 containerInterface=eth0 datapathPolicyRevision=0 desiredPolicyRevision=0 endpointID=637 error="context canceled" identity=25283 ipv4=10.0.0.151 ipv6="fd02::82" k8sPodName=kube-system/coredns-76f75df574-9k8sp subsys=endpoint

Fixes: cilium#31827
Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
@jrajahalme jrajahalme added release-note/misc This PR makes changes that have no direct user impact. ci/flake This is a known failure that occurs in the tree. Please investigate me! labels Apr 22, 2024
@jrajahalme jrajahalme requested a review from a team as a code owner April 22, 2024 17:19
@jrajahalme jrajahalme requested a review from aditighag April 22, 2024 17:19
@jrajahalme
Copy link
Copy Markdown
Member Author

/test

Copy link
Copy Markdown
Member

@aditighag aditighag left a comment

Choose a reason for hiding this comment

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

@jrajahalme Might be worthwhile to trigger ci-ginkgo (more specifically, K8sDatapathConfig test) a couple of times.

@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 Apr 24, 2024
@aditighag
Copy link
Copy Markdown
Member

/ci-ginkgo

@ti-mo ti-mo added this pull request to the merge queue Apr 25, 2024
Merged via the queue into cilium:main with commit 8f0b106 Apr 25, 2024
@gandro gandro mentioned this pull request Apr 29, 2024
18 tasks
@gandro gandro mentioned this pull request Apr 30, 2024
13 tasks
@gandro gandro mentioned this pull request Apr 30, 2024
10 tasks
@github-actions github-actions bot added backport-done/1.14 The backport for Cilium 1.14.x for this PR is done. backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. and removed backport-pending/1.14 labels May 2, 2024
@github-actions github-actions bot added the backport-done/1.15 The backport for Cilium 1.15.x for this PR is done. label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. backport-done/1.14 The backport for Cilium 1.14.x for this PR is done. backport-done/1.15 The backport for Cilium 1.15.x for this PR is done. ci/flake This is a known failure that occurs in the tree. Please investigate me! ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.

Projects

No open projects
Status: Released
Status: Released
Status: Released

Development

Successfully merging this pull request may close these issues.

CI: Conformance Ginkgo: E2E Test (1.29, f06-agent-policy-basic): "unable to queue endpoint build"

4 participants