-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Pods not getting deleted with error: failed to parse netconf: unexpected end of JSON input #1662
Comments
Could you check the content of |
|
Is it possible to get the containerd version? |
containerd://1.6.6 |
The config seems right. Could you check kubelet logs? When the deleting request is done it should log the flannel executed command. |
Exactly the same issue here with: |
This is what I see in kubelet logs:
Attached kubelet logs |
Could you check the files included on |
Hello @rbrtbnfgl 👋 |
Yes, we also found 0 bytes files in dir
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We saw this problem for the first time this week. Using K3s 1.26.3, but the issue doesn't seem version related, considering the comments above. I don't have a definite clue as to the cause, but after some questioning it turns out that this system is special because the operator is frequently turning off power to the system, and we don't have a UPS. It seems plausible that this could be related to the zero-bytes files in |
The issue is actually in the flannel CNI binary and should be fixed in release 1.1.2: https://github.com/flannel-io/cni-plugin/releases/tag/v1.1.2 Could you check which version is used? |
Sure, and it seems I was incorrect. I thought they were running a newer version of the system at the site, but it turns out they are still running with K3s 1.23.6, which includes Flannel 0.17.0 and cni-plugin 1.0.1. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I also see this problem randomly happening with K3S |
Could you open the issue in K3s please? |
Will be rolled out via seed reconciliation. Fixes flannel-io/flannel#1662
Will be rolled out via seed reconciliation. Fixes flannel-io/flannel#1662
Pods not getting deleted with error: "Unknown desc = failed to destroy network for sandbox "ff252b2872f45846e140c96bb096d5a23100dcd13bd25cecbf858655b336093e": plugin type="flannel" failed (delete): failed to parse netconf: unexpected end of JSON input"
Expected Behavior
Expected all pods to get deleted after a reboot of all k8s nodes.
Current Behavior
Pods not getting deleted with error: failed to parse netconf: unexpected end of JSON input
Steps to Reproduce (for bugs)
Context
Disaster recovery scenarios with k8s 1.24 in containerd environment is failing with this issue. This was working fine in k8s 1.23 with dockershim.
##Your Environment
Flannel version: v0.18.1 (https://github.com/flannel-io/flannel/blob/v0.18.1/Documentation/kube-flannel.yml)
Etcd version: etcd:3.5.3-0
Kubernetes version (if used): 1.24
Operating System and version: linux
Link to your project (optional): https://github.com/kubernetes-sigs/vsphere-csi-driver
The text was updated successfully, but these errors were encountered: