Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

endpoint: Avoid benign error messages on restoration #13667

Merged
merged 1 commit into from
Oct 22, 2020

Conversation

pchaigno
Copy link
Member

@pchaigno pchaigno commented Oct 21, 2020

During the endpoint restoration process, when we parse the endpoints, we assign them a reserved init identity if they don't already have an identity. If we later remove the endpoint (because the corresponding K8s pod or interface are missing), we attempt to remove the identity from the identity manager. That last operation results in the following error message because the init identity was never added to the manager.

level=error msg="removing identity not added to the identity manager!" identity=5 subsys=identitymanager

This pull request fixes it by skipping the removal attempt from the manager in the case of identity init.

During the endpoint restoration process, when we parse the endpoints, we
assign them a reserved init identity if they don't already have an
identity [0]. If we later remove the endpoint (because the corresponding
K8s pod or interface are missing), we attempt to remove the identity
from the identity manager. That last operation results in the following
error message because the init identity was never added to the manager.

  level=error msg="removing identity not added to the identity manager!" identity=5 subsys=identitymanager

This commit fixes it by skipping the removal attempt from the manager in
the case of identity init.

0 - https://github.com/cilium/cilium/blob/80a71791320df34df5b6252b9680553e38d88d20/pkg/endpoint/endpoint.go#L819
Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno pchaigno added kind/bug This is a bug in the Cilium logic. release-note/bug This PR fixes an issue in a previous release of Cilium. needs-backport/1.7 labels Oct 21, 2020
@pchaigno
Copy link
Member Author

test-me-please

@pchaigno pchaigno marked this pull request as ready for review October 21, 2020 16:47
@pchaigno pchaigno requested a review from a team as a code owner October 21, 2020 16:47
@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 Oct 22, 2020
@aanm aanm merged commit 228a485 into master Oct 22, 2020
@aanm aanm deleted the pr/pchaigno/skip-remove-init-identity branch October 22, 2020 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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
None yet
Development

Successfully merging this pull request may close these issues.

5 participants