-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pod creation fails when requesting vfio-pci bound resource via SRIOV CNI, as DANM unable to setup dummy kernel interface for the device #231
Comments
To add some more information, I tried similar with dpdk's 'igb_uio' driver and was able to make it work, the dummy interface creation was successful, unlike the case of 'vfio-pci'. So this issue is specifically for devices bound to 'vfio-pci' driver alone. Any help on this will be appreciated, as vfio-pci is the way we want to move ahead. Thanks in advance ! |
interesting issue cause i explicitly tested the scenario and it was working for me :) Line 285 in 181255e
at this point the IP address is actually not yet added to the link, we only set its MAC address! so the error is 1: coming from the kernel 2: must be MAC clash related, not IP I can only think of two things why this can happen:
but TBH my money is on the old kernel |
@superfix906 so managed to retest this recently with 82599 NICs (which model you are using BTW?), on CentOS 7.8 with 4.18 kernel in any case, we did encounter such an error you describe in our evnrionment, but it only happened when DANM was asked to work with improperly setup VFs (binding to VFIO was not properly done before the Pod was created) |
further debugged the problem. the error possibly appears when the MAC address of the VF is full zero. the kernel refuses to set it on the dummy interface |
@Levovar Thanks a lot for the detailed research and inputs. Appreciate that ! Unfortunately, we have digressed from this at the moment. Shall update once we back at this again. Thanks again. |
@superfix906 no problem :) thanks again for reporting the case! |
we found setting the mac address apriori as part of node/device setup is better than leaving it zero mac. This prevents creation of random mac when DPDK enumerates the VFs for some models. |
Is this a BUG REPORT or FEATURE REQUEST?:
What happened:
What you expected to happen:
How to reproduce it:
Anything else we need to know?:
Environment:
DANM version (use
danm -version
): v4.2.0, commit: c0a4c15Kubernetes version (use
kubectl version
): v1.18.6DANM configuration (K8s manifests, kubeconfig files, CNI config file):
/etc/cni/net.d/00-danm.conf
uname -a
): 3.10.0-1062.18.1.rt56.1044.el7.x86_64The text was updated successfully, but these errors were encountered: