-
Notifications
You must be signed in to change notification settings - Fork 784
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
failed to create bridge "cni0": could not add "cni0": operation not supported #370
Comments
This seems to be a regression. As if I use v0.7.5, there's no such problem. commit a62711a (tag: v0.7.5, origin/v0.7) |
I've tracked down to the following commit. I think it caused such regression. commit dc53699
|
Interesting |
@squeed v0.7.5 works for me. Checking the v0.7 branch, I think v0.7.6 should also work. |
@ChenQi1989 git master has the same commit as v0.7.6 though... |
@dcbw I mean things are working well on v0.7 branch, including v0.7.5 and v0.7.6. But they are working well on master branch. I tracked down to the following commit.
""" But I don't know the root cause. |
@dcbw Sorry for typo above. I mean the master branch is NOTworking well. |
Having the same issue on master and v0.8.2 UPDATE: I did not fix the issue. |
I suspect I know the issue. Can you try building the binaries manually with this line commented out? https://github.com/containernetworking/plugins/blob/master/plugins/main/bridge/bridge.go#L224 |
I'm seeing this behavior on a Raspberry Pi with plugins v0.8.2. When I reverted to v0.7.5 it worked.
cc. @alexellis |
Confirming that commenting the line as pointed by @squeed fixes the problem and the bridge interface is created. |
Does |
@bboreham cc |
Maybe @SchSeba could also help out figuring if it's something missing on Kernel side. |
I try to reinstall k8s, it is work! |
If the node is not running coredns, cni0 will not be created. |
I'm trying to setup k8s using flannel. But I'm blocked by this error. Hope someone could give me some suggestion.
I used the following commands:
cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
chown
I also added some output in kubelet and link_linux.go to help debugging. But I'm now blocked here. Below are the related logs. Any idea?
Aug 13 03:30:39 yocto-k8s-master kubelet[9968]: I0813 03:30:39.018857 9968 raw_exec.go:40] chenqi: raw_exec.ExecPlugin &{/opt/cni/bin/flannel [/opt/cni/bin/flannel] [PATH=/usr/local/sbin:/usr/local/bin:/usr
/sbin:/usr/bin:/sbin:/bin INVOCATION_ID=ed7608a7f620418695c029825e3d374d CNI_ARGS=IgnoreUnknown=1;K8S_POD_NAMESPACE=kube-system;K8S_POD_NAME=coredns-5f7fc64c95-x4l8t;K8S_POD_INFRA_CONTAINER_ID=ce1302be7aedaf89
32763b461a287fa5437a3889580fa615c7422f43f65d4c54 KUBELET_KUBEADM_ARGS=--cgroup-driver=systemd --network-plugin=cni --pod-infra-container-image=k8s.gcr.io/pause:3.1 --resolv-conf=/run/systemd/resolve/resolv.con
f CNI_IFNAME=eth0 LANG=C JOURNAL_STREAM=8:3119020 KUBELET_KUBECONFIG_ARGS=--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf CNI_CONTAINERID=ce1302be7aedaf8
932763b461a287fa5437a3889580fa615c7422f43f65d4c54 CNI_NETNS=/proc/12016/ns/net KUBELET_CONFIG_ARGS=--config=/var/lib/kubelet/config.yaml KUBELET_EXTRA_ARGS=-v 4 CNI_COMMAND=ADD CNI_PATH=/opt/cni/bin] {"cniVer
sion":"","delegate":{"hairpinMode":true,"isDefaultGateway":true},"name":"cbr0","type":"flannel"} %!s(*os.File=&{0xc00009e120}) [] %!s(*syscall.SysProcAttr=) %!s(*os.Process=) %!s(*context.empt
yCtx=0xc000052038) %!s(bool=false) [] [] [] [] %!s(chan error=) %!s(chan struct {}=)}
Aug 13 03:30:39 yocto-k8s-master kubelet[9968]: 2019/08/13 03:30:39 chenqi: link_linux.go: link type is *netlink.Bridge
Aug 13 03:30:39 yocto-k8s-master kubelet[9968]: 2019/08/13 03:30:39 chenqi: link_linux.go: after req.AddData
Aug 13 03:30:39 yocto-k8s-master systemd[1]: Created slice libcontainer_12120_systemd_test_default.slice.
Aug 13 03:30:39 yocto-k8s-master kubelet[9968]: I0813 03:30:39.030635 9968 factory.go:177] Factory "docker" was unable to handle container "/libcontainer_12120_systemd_test_default.slice"
Aug 13 03:30:39 yocto-k8s-master kubelet[9968]: I0813 03:30:39.030661 9968 factory.go:166] Error trying to work out if we can handle /libcontainer_12120_systemd_test_default.slice: /libcontainer_12120_syste
md_test_default.slice not handled by systemd handler
Aug 13 03:30:39 yocto-k8s-master kubelet[9968]: I0813 03:30:39.030668 9968 factory.go:177] Factory "systemd" was unable to handle container "/libcontainer_12120_systemd_test_default.slice"
Aug 13 03:30:39 yocto-k8s-master kubelet[9968]: I0813 03:30:39.030678 9968 factory.go:170] Factory "raw" can handle container "/libcontainer_12120_systemd_test_default.slice", but ignoring.
Aug 13 03:30:39 yocto-k8s-master kubelet[9968]: I0813 03:30:39.030689 9968 manager.go:908] ignoring container "/libcontainer_12120_systemd_test_default.slice"
Aug 13 03:30:39 yocto-k8s-master systemd[1]: Removed slice libcontainer_12120_systemd_test_default.slice.
Aug 13 03:30:39 yocto-k8s-master systemd-udevd[12091]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Aug 13 03:30:39 yocto-k8s-master systemd-udevd[12091]: link_config: could not get ethtool features for cni0
Aug 13 03:30:39 yocto-k8s-master systemd-udevd[12091]: Could not set offload features of cni0: No such device
Aug 13 03:30:39 yocto-k8s-master kubelet[9968]: 2019/08/13 03:30:39 chenqi: link_linux.go: req.Execute(unix.NETLINK_ROUTE, 0) failed
Aug 13 03:30:39 yocto-k8s-master kubelet[9968]: I0813 03:30:39.041036 9968 raw_exec.go:51] chenqi: in pluginErr: error: exit status 1; output = {
Aug 13 03:30:39 yocto-k8s-master kubelet[9968]: "code": 100,
Aug 13 03:30:39 yocto-k8s-master kubelet[9968]: "msg": "failed to create bridge "cni0": could not add "cni0": operation not supported"
Aug 13 03:30:39 yocto-k8s-master kubelet[9968]: }
Aug 13 03:30:39 yocto-k8s-master kubelet[9968]: I0813 03:30:39.041077 9968 raw_exec.go:59] chenqi: pluginErr returning error message: failed to create bridge "cni0": could not add "cni0": operation not supported
Aug 13 03:30:39 yocto-k8s-master kubelet[9968]: E0813 03:30:39.041085 9968 cni.go:338] Error adding kube-system_coredns-5f7fc64c95-x4l8t/ce1302be7aedaf8932763b461a287fa5437a3889580fa615c7422f43f65d4c54 to network flannel/cbr0: failed to create bridge "cni0": could not add "cni0": operation not supported
The text was updated successfully, but these errors were encountered: