Skip to content
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

nfd-worker errors reading speed parameter for paravirtualized devices #1556

Closed
mantramantra12 opened this issue Jan 22, 2024 · 5 comments
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@mantramantra12
Copy link
Contributor

mantramantra12 commented Jan 22, 2024

What happened:
The nfd-worker pods on my cluster get this error every time they perform feature discovery:

"failed to read net iface attribute" err="read /host-sys/class/net/ifb0/speed: invalid argument" attributeName="speed"

I believe this is because the devices are paravirtual and so the speed parameter is nonsensical in this context. The file still exists however I think because the kernel puts it there.

What you expected to happen:
Feature discovery completes without error

How to reproduce it (as minimally and precisely as possible):
Run feature discovery on a node with paravirtual devices connected

Anything else we need to know?:
N/A

Environment:

  • Kubernetes version (use kubectl version): 1.27.7
  • Cloud provider or hardware configuration: Proxmox ubuntu VM
  • OS (e.g: cat /etc/os-release): Ubuntu 22.04.3 LTS
  • Kernel (e.g. uname -a): Linux 5.15.0-91-generic 101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
  • Install tools:
  • Network plugin and version (if this is a network-related bug):
  • Others:
@marquiz
Copy link
Contributor

marquiz commented Feb 14, 2024

Fixed by #1557
/close

@k8s-ci-robot
Copy link
Contributor

@marquiz: Closing this issue.

In response to this:

Fixed by #1557
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@weikinhuang
Copy link

weikinhuang commented Mar 21, 2024

I'm still seeing this for the local interface

E0321 23:00:33.543500       1 network.go:152] "failed to read net iface attribute" err="read /host-sys/class/net/lo/speed: invalid argument" attributeName="speed"

@marquiz
Copy link
Contributor

marquiz commented Mar 22, 2024

@weikinhuang which version of nfd are you running? The fix hasn't been released, yet. It'll be in the upcoming v0.16 release

@weikinhuang
Copy link

@marquiz oh, I thought the fix was in 0.15.2. I am on 0.15.3. If that's the case thanks for letting me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants