Skip to content

Worker pod fails to get kernel information from Real-time host OS #2357

@ejalberti

Description

@ejalberti

What happened:
During NFD execution on RT Kernel, the Worker isn't able to read kernel config files even when mountUsrSrc is used.

kernel.go:134] "failed to read kconfig" err="failed to read kernel config from [ /proc/config.gz /host-usr/src/linux-6.6.0-1-rt-amd64/.config /host-usr/src/linux/.config /host-usr/lib/modules/6.6.0-1-rt-amd64/config /host-usr/lib/ostree-boot/config-6.6.0-1-rt-amd64 /host-usr/lib/kernel/config-6.6.0-1-rt-amd64 /host-usr/src/linux-headers-6.6.0-1-rt-amd64/.config /lib/modules/6.6.0-1-rt-amd64/build/.config /host-boot/config-6.6.0-1-rt-amd64]"

This problem is related to the list of possible kernel paths available on NFD kernel class. This list only relies on the suffix+kernel name, but some OS uses the term "rt" right before the kernel uname string.

What you expected to happen:
The worker is expected to be able to read information from the kernel.

How to reproduce it (as minimally and precisely as possible):
Install NFD on a RT kernel system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions