Skip to content

Conversation

@rollandf
Copy link
Member

@rollandf rollandf commented Nov 18, 2025

The DTK flow was failing with path mismatches because the volume mount
path is created by network-operator using NFD labels, which sanitize
kernel version strings by replacing non-alphanumeric characters (except
-._) with underscores.

Example kernel: 5.14.0-570.60.1.el9_6.aarch64+64k
NFD label: feature.node.kubernetes.io/kernel-version.full=5.14.0-570.60.1.el9_6.aarch64_64k

This caused:

  • Volume mount path: /mnt/shared-doca-driver-toolkit/5.14.0-570.60.1.el9_6.aarch64_64k/
  • Container using: /mnt/shared-doca-driver-toolkit/5.14.0-570.60.1.el9_6.aarch64+64k/

The mismatch led to timeout errors where one container waited for
dtk_start_compile flag in the sanitized path while the other container
created flags in the unsanitized path.

Fix: Apply NFD-compatible sanitization to kernel version when constructing
DTK_OCP_NIC_SHARED_DIR path in both entrypoint.sh and dtk_nic_driver_build.sh.
The FULL_KVER variable remains unchanged for package operations that require
the actual kernel version format.

This matches the sanitization logic in node-feature-discovery:
https://github.com/kubernetes-sigs/node-feature-discovery/blob/master/source/kernel/version.go#L38-L42

Applies to RT kernels (+rt) and 64k hugepage kernels (+64k) on RHEL/RHCOS.

The DTK flow was failing with path mismatches because the volume mount
path is created by network-operator using NFD labels, which sanitize
kernel version strings by replacing non-alphanumeric characters (except
-._) with underscores.

Example kernel: 5.14.0-570.60.1.el9_6.aarch64+64k
NFD label: feature.node.kubernetes.io/kernel-version.full=5.14.0-570.60.1.el9_6.aarch64_64k

This caused:
- Volume mount path: /mnt/shared-doca-driver-toolkit/5.14.0-570.60.1.el9_6.aarch64_64k/
- Container using: /mnt/shared-doca-driver-toolkit/5.14.0-570.60.1.el9_6.aarch64+64k/

The mismatch led to timeout errors where one container waited for
dtk_start_compile flag in the sanitized path while the other container
created flags in the unsanitized path.

Fix: Apply NFD-compatible sanitization to kernel version when constructing
DTK_OCP_NIC_SHARED_DIR path in both entrypoint.sh and dtk_nic_driver_build.sh.
The FULL_KVER variable remains unchanged for package operations that require
the actual kernel version format.

This matches the sanitization logic in node-feature-discovery:
https://github.com/kubernetes-sigs/node-feature-discovery/blob/master/source/kernel/version.go#L38-L42

Applies to RT kernels (+rt) and 64k hugepage kernels (+64k) on RHEL/RHCOS.

Signed-off-by: Fred Rolland <[email protected]>
@rollandf rollandf changed the title fix: sanitized dtk dir as in NFD fix: DTK shared directory path mismatch due to NFD label sanitization Nov 18, 2025
@rollandf rollandf merged commit 37bd070 into Mellanox:main Nov 18, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants