Closed vigmat28 closed 1 year ago
Yes, I think that would be fine for graceful degradation, especially on systems that don't have any USB devices. Would you like to make a PR to log and ignore the error and just move on?
Also, out of curiosity, what OS/kernel/distro are you running? I'm curious as to why that directory does not exist on your system.
Also, out of curiosity, what OS/kernel/distro are you running? I'm curious as to why that directory does not exist on your system.
Linux xxxx 5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64 GNU/Linux
Hi, I'm running the device-plugin and I'm trying to discover
/dev/fuse
, but the device is not found and in the kubelet log I see these errors:On the worker node the directory
/sys/bus/usb/devices/
doesn't exist:This is the yaml file that I applied:
On the source code I found this:
https://github.com/squat/generic-device-plugin/blob/013b39297e99d0bccb6cbb9e60c828e710a16e40/deviceplugin/usb.go#L134
How about checking if the folder exists instead of just throwing the error if it doesn't?