Mirantis / virtlet

Kubernetes CRI implementation for running VM workloads
Apache License 2.0
739 stars 128 forks source link

Not able to ping VM/POD primary IP when multus, calico is used #890

Closed hemanthnakkina-zz closed 5 years ago

hemanthnakkina-zz commented 5 years ago

Installed Virtlet (image with tag latest) on kubernetes as per the instructions @ https://docs.virtlet.cloud/user-guide/real-cluster/ Enabled Multus with Calico and SRIOV as CNI plugins in kubernetes.

Launched Ubuntu VM spec from examples and pod is in running state and can see qemu process running.

Ping to the POD ip failed.

Error message in Multus log:

2019-06-27T01:29:54-04:00 [debug] GetK8sArgs: &{4a23502f-2a11-4337-614c-12a98d704605 /var/run/netns/4a23502f-2a11-4337-614c-12a98d704605 virtlet-eth0 K8S_ANNOT={"cni": "calico"} /opt/cni/bin [123 34 99 108 117 115 116 101 114 78 101 116 119 111 114 107 34 58 34 99 110 105 45 99 97 108 105 99 111 34 44 34 99 110 105 86 101 114 115 105 111 110 34 58 34 48 46 51 46 48 34 44 34 100 101 108 101 103 97 116 101 115 34 58 91 93 44 34 107 117 98 101 99 111 110 102 105 103 34 58 34 47 101 116 99 47 99 110 105 47 110 101 116 46 100 47 109 117 108 116 117 115 46 100 47 109 117 108 116 117 115 46 107 117 98 101 99 111 110 102 105 103 34 44 34 108 111 103 70 105 108 101 34 58 34 47 118 97 114 47 108 111 103 47 109 117 108 116 117 115 46 108 111 103 34 44 34 108 111 103 76 101 118 101 108 34 58 34 100 101 98 117 103 34 44 34 110 97 109 101 34 58 34 109 117 108 116 117 115 45 99 110 105 45 110 101 116 119 111 114 107 34 44 34 116 121 112 101 34 58 34 109 117 108 116 117 115 34 125]}
2019-06-27T01:29:54-04:00 [debug] cmdAdd Err2: ARGS: unknown args ["K8S_ANNOT={\"cni\": \"calico\"}"]
2019-06-27T01:29:54-04:00 [error] Multus: Err in getting k8s args: ARGS: unknown args ["K8S_ANNOT={\"cni\": \"calico\"}"]

The error seems to be because of option "K8S_ANNOT" which is only recognized by CNI Genie

hemanthnakkina-zz commented 5 years ago

Adding IgnoreUnknown option resolved the issue.

https://github.com/Mirantis/virtlet/pull/891

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.