vorburger / opendaylight-coe-kubernetes-openshift

Personal sandbox for http://OpenDaylight.org CoE Kubernetes OpenShift related stuff which may move "upstream" in due time
Apache License 2.0
1 stars 1 forks source link

runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized #8

Closed vorburger closed 5 years ago

vorburger commented 5 years ago

After a complete fresh from scratch re-install, as of 5659a8e8fccd94984497ad48b8a27e179735f824, I have:

[fedora@coe2-master ~]$ kubectl get nodes
NAME                   STATUS     ROLES    AGE   VERSION
coe2-master.rdocloud   NotReady   master   18m   v1.13.1
coe2-node1.rdocloud    Ready      <none>   16m   v1.13.1
coe2-node2.rdocloud    Ready      <none>   13m   v1.13.1

because:

[fedora@coe2-master ~]$ kubectl describe nodes
Name:               coe2-master.rdocloud
Roles:              master
Labels:             beta.kubernetes.io/arch=amd64
(...)
KubeletNotReady              runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
vorburger commented 5 years ago

Oh, this was just because after I ran my switch-k8s-to-COE-on-OpenStack.sh I manually did sudo kubeadm reset -f, not realizing that this apparently wipes /etc/cni/net.d/ ... so manually doing (re-doing, as the script does) sudo cp odlovs-cni-master.conf /etc/cni/net.d/ did the trick! (It takes a moment to get picked up.)

[fedora@coe2-master ~]$ kubectl get nodes
NAME                   STATUS   ROLES    AGE   VERSION
coe2-master.rdocloud   Ready    master   25m   v1.13.1
coe2-node1.rdocloud    Ready    <none>   22m   v1.13.1
coe2-node2.rdocloud    Ready    <none>   20m   v1.13.1