https://github.com/cilium/cilium
Revision bb49619febba44d56ca090792ccf13c5aece2219 authored by Paul Chaignon on 21 October 2020, 13:38:24 UTC, committed by Joe Stringer on 22 October 2020, 22:04:10 UTC
[ upstream commit 228a485f2a5441f506ba9c0f357321c060f93590 ]

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>
1 parent a2c9ee2
History
Tip revision: bb49619febba44d56ca090792ccf13c5aece2219 authored by Paul Chaignon on 21 October 2020, 13:38:24 UTC
endpoint: Avoid benign error messages on restoration
Tip revision: bb49619
File Mode Size
cmd
.gitignore -rw-r--r-- 38 bytes
Makefile -rw-r--r-- 1003 bytes
main.go -rw-r--r-- 785 bytes

back to top