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

Make sure the CNI delete function does not fail when the json config is wrong #33

Merged
merged 1 commit into from
Dec 5, 2022

Conversation

thomasferrandiz
Copy link
Contributor

Otherwise, the kubelet gets stuck deleting a pod

@@ -135,7 +135,8 @@ func doCmdDel(args *skel.CmdArgs, n *NetConf) (err error) {

nc := &types.NetConf{}
if err = json.Unmarshal(netConfBytes, nc); err != nil {
return fmt.Errorf("failed to parse netconf: %v", err)
fmt.Fprintf(os.Stderr, "failed to parse netconf: %v", err)
return nil
Copy link
Collaborator

Choose a reason for hiding this comment

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

the consequence is that we are leaving "zombie" interfaces in the bridge, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, exactly. At least until the node is rebooted.

@rbrtbnfgl
Copy link
Collaborator

This is related to flannel-io/flannel#1662

…is wrong

Otherwise, the kubelet gets stuck deleting a pod
@thomasferrandiz thomasferrandiz merged commit 18a3027 into flannel-io:main Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants