-
Notifications
You must be signed in to change notification settings - Fork 790
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
host-device: failure when using multiple mellanox_hostdevice resources and multiple entries in the NetAttachDef #721
Comments
Code which is handling that is in https://github.com/containernetworking/plugins/blob/main/plugins/main/host-device/host-device.go#L362 |
Related to #300 |
Hi @jellonek , You suggested to modify the Go source code of the plugin to get additional debug info (ls -l /sys/bus/pci/devices/0000:3b:00.0/net) right? However where will I read these additional logs? For example I guess I should see "failed to read net directory %s: %q" somewhere emitted by host-device plugin right? |
Nope. My suggestion was to check output of that command on the host node, but after some time I guess that this will be not helpful as everything works fine in case of a single pci address in NetAttachDef. Anyway, NetAttachDefs are out of scope of this organization/project, also |
Hi,
I'm trying to deploy a POD in kubernetes 1.20.14 with multus-cni plugin (and host-device plugin) on a worker node which has 3 Mellanox ports available.
My POD specification contains in the "resources" section:
and my NetworkAttachmentDefinition contains:
However with this configuration my POD fails to deploy (not even the init containers are able to run) with the following error in the "events" of the POD:
Please note that if instead the NetworkAttachDefinition contains only 1 PCI address, (but the POD resources section still specifies intel.com/mellanox_hostdevice = 3), the POD works just fine and inside the POD "ip a" shows 3 network interfaces (additional to the eth0 interface):
What am I doing wrong?
Thanks
The text was updated successfully, but these errors were encountered: