cni-genie / CNI-Genie

CNI-Genie for choosing pod network of your choice during deployment time. Supported pod networks - Calico, Flannel, Romana, Weave
https://github.com/cni-genie/CNI-Genie/
Apache License 2.0
533 stars 122 forks source link

unable to configure SRIOV Plugin for Intel X710 #160

Open purnendu15 opened 5 years ago

purnendu15 commented 5 years ago

I am unable configure a pod to use the sriov plugin successfully. Here is my configuration. (1)HW: Ethernet Controller X710 interface name: ethXXXX VF: 4

(2) cat /etc/cni/net.d/10-sriov.conf { "name": "sriovnet", "type": "sriov", "master": "ethXXXX", "ipam": { "type": "fixipam", "subnet": "10.55.206.0/26", "routes": [ { "dst": "0.0.0.0/0" } ], "gateway": "10.55.206.1" } }

(3) pod-sriov.yaml: apiVersion: v1 kind: Pod metadata: name: nginx-sriov labels: app: web annotations: cni: "sriov" spec: containers:

(4) Error:

Warning FailedCreatePodSandBox 10s kubelet, my_node Failed create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container "e2400e779995cd20ae1fff0940f75d9ab9efb15b97bd084e1f0e3cb4863036dd" network for pod "nginx-sriov": NetworkPlugin cni failed to set up pod "nginx-sriov_kube-system" network: CNI Genie Add IP internal error: failed to lookup vf device "": Link not found, result: %!!(MISSING)s(), failed to clean up sandbox container "e2400e779995cd20ae1fff0940f75d9ab9efb15b97bd084e1f0e3cb4863036dd" network for pod "nginx-sriov": NetworkPlugin cni failed to teardown pod "nginx-sriov_kube-system" network: CNI Genie release IP internal error: failed to lookup device eth0: Link not found

Observation/Information: 1) There are no eth0 devices, however the log mention eth0:Link not found

sushanthakumar commented 5 years ago

Hi, we will look into this issue and update, thanks

sushanthakumar commented 5 years ago

@purnendu15 , From error, it looks like sriov is throwing error while it is trying to get an ip for pod. Can u recheck the sriov install part and interface it is mapped to. One way to verify sriov setup aspect is to bringup kubernetes and only sriov as network plugin (without genie and others) and check whether pod can get ip from sriov. If ok, with genie also, we should be able to acheive same. Let us know if u get some detail on this and we shall surely continue to analyse further and help you to resolve your issue