-
Notifications
You must be signed in to change notification settings - Fork 256
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
topology-updater: "Scan failed: checking if pod in a namespace is watchable" #922
Comments
ping @fromanirh @swatisehgal you know the code better than me To me this just sounds like a race condition that can happen with short-lived pods. AFAIU this shouldn't be anything fatal and should be fixed (unless a new race occurs) on the next "round" |
ack, will check |
Hmm, now that I took a quick look at the code I think we have a problem:
By calling |
Ah darn, that's bad indeed. Will send a PR ASAP. |
Is this a bug, timer is not retriggered?
/~https://github.com/kubernetes-sigs/node-feature-discovery/blob/master/pkg/nfd-client/topology-updater/nfd-topology-updater.go#L137
this basically happens when pod comes and goes away in short duration, e.g. a pod going from pending to TopologyAffinityError. While Scan() is going on, it issues getPod and if pod is absent, then it gets into this issue.
this is the error
nfd-topology-updater.go:137] Scan failed: checking if pod in a namespace is watchable, namespace:default, pod name trex-sriov-intel-0-6: pods "trex-sriov-intel-0-6" not found
Environment:
kubectl version
): 2.23.0cat /etc/os-release
): SuSeuname -a
): 5.3.18The text was updated successfully, but these errors were encountered: