Skip to content

[CP 336] cni: Append fallback paths when resolving host-device binary#100

Merged
yuva29 merged 1 commit into
ROCm:mainfrom
ci-penbot-01:CP.O2O.pensando.network-operator.336.rocm.network-operator.main
Jun 23, 2026
Merged

[CP 336] cni: Append fallback paths when resolving host-device binary#100
yuva29 merged 1 commit into
ROCm:mainfrom
ci-penbot-01:CP.O2O.pensando.network-operator.336.rocm.network-operator.main

Conversation

@ci-penbot-01

Copy link
Copy Markdown
Contributor

cp of pensando/network-operator#336

When CNI_PATH is set by the container runtime (e.g., Multus on
OpenShift sets it to /opt/cni/bin), getCNIPath() returned only that
path without including the fallback locations. On OpenShift, the
host-device binary is installed by the network operator's CNI plugins
DaemonSet into /var/lib/cni/bin, which is part of the fallback but
was never searched when CNI_PATH was set.

Append fallbackCNIPluginPath to the runtime-provided CNI_PATH so
that both locations are searched.

Signed-off-by: Leonardo Ochoa-Aday <lochoa@redhat.com>
(cherry picked from commit 6639a74783ac4a434404a7e71bb17f33beee4948)
@yuva29 yuva29 merged commit 09964c6 into ROCm:main Jun 23, 2026
2 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.

3 participants