contiv / netplugin

Container networking for various use cases
Apache License 2.0
514 stars 177 forks source link

Cannot deploy pods on worker nodes #1123

Open verizonold opened 6 years ago

verizonold commented 6 years ago

Description

I followed your example at http://contiv.github.io/documents/tutorials/networking-kubernetes-16.html I deployed contiv-c2.yaml [vagrant@kubeadm-master ~]$ kubectl get pods -o wide NAME READY STATUS RESTARTS AGE IP NODE contiv-c1 1/1 Running 0 49m 10.1.2.2 kubeadm-master contiv-c2 0/1 ContainerCreating 0 45m kubeadm-worker0

Expected Behavior

I expected to see the contiv-c2 pod in running state on worker node.

Observed Behavior

Instead, the pod remains in ContainerCreating state and I see this message on worker node:

Mar 15 06:03:37 kubeadm-worker0 kubelet[3221]: W0315 06:03:37.307665 3221 pod_container_deletor.go:77] Container "9eae00b45abfb248fc229477e780df62578d9cce30f02a7fd074c43a9a76cb55" not found in pod's containers Mar 15 06:03:38 kubeadm-worker0 kubelet[3221]: E0315 06:03:38.823825 3221 cni.go:259] Error adding network: Contiv:Post http://localhost/ContivCNI.AddPod: dial unix /run/contiv/contiv-cni.sock: connect: connection refused Mar 15 06:03:38 kubeadm-worker0 kubelet[3221]: E0315 06:03:38.823872 3221 cni.go:227] Error while adding to cni network: Contiv:Post http://localhost/ContivCNI.AddPod: dial unix /run/contiv/contiv-cni.sock: connect: connection refused Mar 15 06:03:39 kubeadm-worker0 kubelet[3221]: E0315 06:03:39.309851 3221 remote_runtime.go:92] RunPodSandbox from runtime service failed: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up pod "contiv-c2_default" network: Contiv:Post http://localhost/ContivCNI.AddPod: dial unix /run/contiv/contiv-cni.sock: connect: connection refused Mar 15 06:03:39 kubeadm-worker0 kubelet[3221]: E0315 06:03:39.344145 3221 kuberuntime_sandbox.go:54] CreatePodSandbox for pod "contiv-c2_default(f055c161-2813-11e8-8779-525400ada096)" failed: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up pod "contiv-c2_default" network: Contiv:Post http://localhost/ContivCNI.AddPod: dial unix /run/contiv/contiv-cni.sock: connect: connection refused Mar 15 06:03:39 kubeadm-worker0 kubelet[3221]: E0315 06:03:39.344195 3221 kuberuntime_manager.go:647] createPodSandbox for pod "contiv-c2_default(f055c161-2813-11e8-8779-525400ada096)" failed: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up pod "contiv-c2_default" network: Contiv:Post http://localhost/ContivCNI.AddPod: dial unix /run/contiv/contiv-cni.sock: connect: connection refused Mar 15 06:03:39 kubeadm-worker0 kubelet[3221]: E0315 06:03:39.367248 3221 pod_workers.go:186] Error syncing pod f055c161-2813-11e8-8779-525400ada096 ("contiv-c2_default(f055c161-2813-11e8-8779-525400ada096)"), skipping: failed to "CreatePodSandbox" for "contiv-c2_default(f055c161-2813-11e8-8779-525400ada096)" with CreatePodSandboxError: "CreatePodSandbox for pod \"contiv-c2_default(f055c161-2813-11e8-8779-525400ada096)\" failed: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up pod \"contiv-c2_default\" network: Contiv:Post http://localhost/ContivCNI.AddPod: dial unix /run/contiv/contiv-cni.sock: connect: connection refused"

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Your Environment

Server Version: Version: 1.1.1 GitCommit: 6657054 BuildTime: 07-20-2017.21-46-06.UTC