Kubernetes NetworkPlugin error: route already exists for an interface other than

11/25/2021

Error details

  Warning  FailedCreatePodSandBox  22m                    kubelet, mzywx-k8s-node6  Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "c361cf86c338cff58383efa4ce4fb2562e0e86b67c74ecf44e1925280415e671" network for pod "kubia-66b4657d7b-m9gdj": networkPlugin cni failed to set up pod "kubia-66b4657d7b-m9gdj_default" network: error adding host side routes for interface: cali1f7fb2d037e, error: route (Ifindex: 10710, Dst: 192.168.174.16/32, Scope: 253) already exists for an interface other than 'cali1f7fb2d037e'
  Warning  FailedCreatePodSandBox  8m17s (x322 over 22m)  kubelet, mzywx-k8s-node6  (combined from similar events): Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "56c9b0c2629fea3dabb629a8c7d12eb185fd2b7e0bb347de04666ab4b90fb836" network for pod "kubia-66b4657d7b-m9gdj": networkPlugin cni failed to set up pod "kubia-66b4657d7b-m9gdj_default" network: error adding host side routes for interface: cali1f7fb2d037e, error: route (Ifindex: 11055, Dst: 192.168.174.54/32, Scope: 253) already exists for an interface other than 'cali1f7fb2d037e'

I do have this IP, but why is there a conflict when allocating pod IP?

I refer to this, but I don't understand enter link description here

calico-node logs:

2021-11-25 08:06:00.152 [INFO][74] int_dataplane.go 907: Applying dataplane updates
2021-11-25 08:06:00.152 [INFO][74] int_dataplane.go 921: Finished applying updates to dataplane. msecToApply=0.119689
2021-11-25 08:06:00.153 [INFO][74] int_dataplane.go 551: Linux interface state changed. ifaceName="calie0955a67031" state="up"
2021-11-25 08:06:00.153 [INFO][74] int_dataplane.go 797: Received interface update msg=&intdataplane.ifaceUpdate{Name:"calie0955a67031", State:"up"}
2021-11-25 08:06:00.153 [INFO][74] int_dataplane.go 907: Applying dataplane updates
2021-11-25 08:06:00.153 [INFO][74] endpoint_mgr.go 314: Workload interface came up, marking for reconfiguration. ifaceName="calie0955a67031"
2021-11-25 08:06:00.153 [INFO][74] endpoint_mgr.go 922: Applying /proc/sys configuration to interface. ifaceName="calie0955a67031"
2021-11-25 08:06:00.155 [INFO][74] int_dataplane.go 921: Finished applying updates to dataplane. msecToApply=1.657033
2021-11-25 08:06:00.603 [INFO][74] int_dataplane.go 551: Linux interface state changed. ifaceName="calie0955a67031" state="down"
2021-11-25 08:06:00.603 [INFO][74] int_dataplane.go 797: Received interface update msg=&intdataplane.ifaceUpdate{Name:"calie0955a67031", State:"down"}
2021-11-25 08:06:00.603 [INFO][74] int_dataplane.go 907: Applying dataplane updates
2021-11-25 08:06:00.605 [INFO][74] int_dataplane.go 921: Finished applying updates to dataplane. msecToApply=1.10982
2021-11-25 08:06:00.622 [INFO][74] int_dataplane.go 584: Linux interface addrs changed. addrs=<nil> ifaceName="calie0955a67031"
2021-11-25 08:06:00.622 [INFO][74] int_dataplane.go 812: Received interface addresses update msg=&intdataplane.ifaceAddrsUpdate{Name:"calie0955a67031", Addrs:set.Set(nil)}
2021-11-25 08:06:00.622 [INFO][74] hostip_mgr.go 84: Interface addrs changed. update=&intdataplane.ifaceAddrsUpdate{Name:"calie0955a67031", Addrs:set.Set(nil)}
-- Xiaole Zhang
calico
cni
kubernetes
project-calico

0 Answers