kindnet: CNIConfigWriter writes .temp file that throws off containerd

We write a conflist.temp file here: https://github.com/aojea/kindnet/blob/main/cmd/kindnetd/cni.go#L175-L181

which causes errors in containerd like so:

Jul 20 07:35:36 ip-172-31-92-72.ec2.internal containerd[4169]: time="2024-07-20T07:35:36.181108954Z" level=error msg="failed to reload cni configuration after receiving fs change event(WRITE         \"/etc/cni/net.d/10-kindnet.conflist.temp\")" error="cni config load failed: no network config found in /etc/cni/net.d: cni plugin not initialized: failed to load cni config"
Jul 20 07:35:36 ip-172-31-92-72.ec2.internal containerd[4169]: time="2024-07-20T07:35:36.181177675Z" level=error msg="failed to reload cni configuration after receiving fs change event(WRITE         \"/etc/cni/net.d/10-kindnet.conflist.temp\")" error="cni config load failed: no network config found in /etc/cni/net.d: cni plugin not initialized: failed to load cni config"
Jul 20 07:35:36 ip-172-31-92-72.ec2.internal containerd[4169]: time="2024-07-20T07:35:36.181227840Z" level=error msg="failed to reload cni configuration after receiving fs change event(WRITE         \"/etc/cni/net.d/10-kindnet.conflist.temp\")" error="cni config load failed: no network config found in /etc/cni/net.d: cni plugin not initialized: failed to load cni config"

because containerd/cri code does not filter them out: https://github.com/containerd/containerd/blob/da3655678d4fd46b6dc6ca9721375da01b90b2f6/internal/cri/server/cni_conf_syncer.go#L100-L105

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (7 by maintainers)

Most upvoted comments

@dims it probably makes sense to update the documentation in containerd to reflect that we only would watch these specific file types