install icon indicating copy to clipboard operation
install copied to clipboard

Contiv 1.1.7,kubernetes installation fail. Error "contiv netmaster is not ready !!"

Open lovebaicai opened this issue 7 years ago • 5 comments
trafficstars

  • contiv version 1.1.7
  • kubernetes version: v1.8.8
  • command
./install/k8s/install.sh -n 192.168.7.100
  • install log
root@k8s-master01:~/contiv/contiv-1.1.7# ./install/k8s/install.sh -n 192.168.7.100
Installing Contiv for Kubernetes
secret "aci.key" deleted
secret "aci.key" created
Generating local certs for Contiv Proxy
Setting installation parameters
Applying contiv installation
To customize the installation press Ctrl+C and edit ./.contiv.yaml.
Extracting netctl from netplugin container
8bf35b6022bd235cc21b30f9367e28455ff45a92803bb5310111e14a80577d41
clusterrolebinding "contiv-netplugin" configured
clusterrole "contiv-netplugin" configured
serviceaccount "contiv-netplugin" unchanged
clusterrolebinding "contiv-netmaster" configured
clusterrole "contiv-netmaster" configured
serviceaccount "contiv-netmaster" unchanged
configmap "contiv-config" unchanged
daemonset "contiv-netplugin" configured
daemonset "contiv-netmaster" configured
daemonset "contiv-etcd" unchanged

contiv netmaster is not ready !!
  • kubernetes status
root@k8s-master01:~/contiv/contiv-1.1.7# kubectl get all -n kube-system
NAME                  DESIRED   CURRENT   READY     UP-TO-DATE   AVAILABLE   NODE SELECTOR                     AGE
ds/contiv-etcd        0         0         0         0            0           node-role.kubernetes.io/master=   20m
ds/contiv-netmaster   0         0         0         0            0           node-role.kubernetes.io/master=   20m
ds/contiv-netplugin   6         6         6         6            6           <none>                            20m
ds/contiv-etcd        0         0         0         0            0           node-role.kubernetes.io/master=   20m
ds/contiv-netmaster   0         0         0         0            0           node-role.kubernetes.io/master=   20m
ds/contiv-netplugin   6         6         6         6            6           <none>                            20m

NAME                        READY     STATUS    RESTARTS   AGE
po/contiv-netplugin-55knh   2/2       Running   0          20m
po/contiv-netplugin-7tqrx   2/2       Running   0          20m
po/contiv-netplugin-fzgz7   2/2       Running   0          20m
po/contiv-netplugin-gp7ct   2/2       Running   0          20m
po/contiv-netplugin-jf6s6   2/2       Running   0          20m
po/contiv-netplugin-vm25z   2/2       Running   0          20m

root@k8s-master01:~# kubectl get cs
NAME                 STATUS    MESSAGE             ERROR
scheduler            Healthy   ok
controller-manager   Healthy   ok
etcd-1               Healthy   {"health":"true"}
etcd-0               Healthy   {"health":"true"}
etcd-2               Healthy   {"health":"true"}
  • How to solve it? Please help me. Tks!

lovebaicai avatar Jun 08 '18 06:06 lovebaicai

I’m having this same issue trying to install 1.1.8 with k8s as well, has anyone figured out what is leading to this?

btotharye avatar Jul 05 '18 17:07 btotharye

Here is the output on my setup, seems like the contiv-netplugin keeps crashing:

[root@kubemaster contiv-1.1.8]# kubectl get all -n kube-system
NAME                                              READY     STATUS             RESTARTS   AGE
pod/contiv-etcd-wlp27                             1/1       Running            0          46m
pod/contiv-netmaster-r9h7s                        0/3       Pending            0          46m
pod/contiv-netplugin-lxq7g                        1/2       CrashLoopBackOff   13         46m
pod/coredns-78fcdf6894-s6mlm                      0/1       Pending            0          1h
pod/coredns-78fcdf6894-xrnlz                      0/1       Pending            0          1h
pod/etcd-kubemaster.test.com                      1/1       Running            0          58m
pod/kube-apiserver-kubemaster.test.com            1/1       Running            0          59m
pod/kube-controller-manager-kubemaster.test.com   1/1       Running            0          59m
pod/kube-proxy-vk9zd                              1/1       Running            0          1h
pod/kube-scheduler-kubemaster.test.com            1/1       Running            0          59m

NAME               TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)         AGE
service/kube-dns   ClusterIP   10.96.0.10   <none>        53/UDP,53/TCP   1h

NAME                              DESIRED   CURRENT   READY     UP-TO-DATE   AVAILABLE   NODE SELECTOR                     AGE
daemonset.apps/contiv-etcd        1         1         1         1            1           node-role.kubernetes.io/master=   46m
daemonset.apps/contiv-netplugin   1         1         0         1            0           <none>                            46m
daemonset.apps/kube-proxy         1         1         1         1            1           beta.kubernetes.io/arch=amd64     1h

NAME                      DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/coredns   2         2         2            0           1h

NAME                                 DESIRED   CURRENT   READY     AGE
replicaset.apps/contiv-netmaster     1         1         0         46m
replicaset.apps/coredns-78fcdf6894   2         2         0         1h

btotharye avatar Jul 05 '18 17:07 btotharye

Here is some more information the container logs for that netplugin that is crashing shows this:

Initializing OVS
modprobe: ERROR: could not insert 'openvswitch': Exec format error

btotharye avatar Jul 05 '18 22:07 btotharye

This format error is caused by a version of modprobe that does not support compressed kernel modules... I can't remember what the solution was... I think alpine's modprobe doesn't support them?

dseevr avatar Jul 05 '18 22:07 dseevr

I got mine installing using modprobe openvswitch and now everything is loading correctly dashboard and all

btotharye avatar Jul 06 '18 00:07 btotharye