Skip to content

[CP 327] Mount /etc/amd/ainic in node labeller for NIC profile discovery#92

Merged
sundar-pds merged 1 commit into
ROCm:mainfrom
ci-penbot-01:CP.O2O.pensando.network-operator.327.rocm.network-operator.main
Jun 3, 2026
Merged

[CP 327] Mount /etc/amd/ainic in node labeller for NIC profile discovery#92
sundar-pds merged 1 commit into
ROCm:mainfrom
ci-penbot-01:CP.O2O.pensando.network-operator.327.rocm.network-operator.main

Conversation

@ci-penbot-01

Copy link
Copy Markdown
Contributor

cp of pensando/network-operator#327

nicctl show card profile reads card_profile.json files from
/etc/amd/ainic to map firmware device_config to the profile name.
Without this mount, profile discovery silently returns "default"
for all NICs.

Uses HostPathDirectoryOrCreate so the pod doesn't fail on nodes
where the directory hasn't been provisioned yet — the labeller
gracefully skips the profile label in that case.

(cherry picked from commit 0e985f8b71d273beaec46ea0cba936f679d88b25)

@sundar-pds sundar-pds left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sundar-pds sundar-pds merged commit 8a4db0a into ROCm:main Jun 3, 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