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

Add default env vars for MOFED container #573

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

adrianchiris
Copy link
Collaborator

In case of older distros (kernels),
we need to explictly specify CREATE_IFNAMES_UDEV
so that netdev names are preserved.

when MOFED container loads the driver, it reports
additional information to kernel about Nvidia network devices that affect the way the OS names netdevs.

On newer distros (kernels) this is not needed as
inbox driver already reports this information.

Instruct MOFED container to install the
"name preserving udev" on the following OSes:

rhel < 9.0
ocp < 4.13
ubuntu < 22.04

@adrianchiris
Copy link
Collaborator Author

created #574 the mofed state file keeps growing, at some point we need to chop it up.

@adrianchiris adrianchiris force-pushed the defaut-ofed-vars branch 2 times, most recently from 593efde to c4c1d45 Compare July 18, 2023 12:43
@adrianchiris
Copy link
Collaborator Author

@e0ne @ykulazhenkov PTAL, this is needed b4 next beta drop.

i also testing this one on kind cluster, it behaves as expected.

Copy link
Collaborator

@e0ne e0ne left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@ykulazhenkov ykulazhenkov left a comment

Choose a reason for hiding this comment

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

overall looks good, I added few nit comments which you can ignore

pkg/state/state_ofed.go Outdated Show resolved Hide resolved
pkg/state/state_ofed.go Show resolved Hide resolved
In case of older distros (kernels),
we need to explictly specify CREATE_IFNAMES_UDEV
so that netdev names are preserved.

when MOFED container loads the driver, it reports
additional information to kernel about Nvidia network
devices that affect the way the OS names netdevs.

On newer distros (kernels) this is not needed as
inbox driver already reports this information.

Instruct MOFED container to install the
"name preserving udev" on the following OSes:

rhel < 9.0
ocp < 4.13
ubuntu < 22.04

Signed-off-by: adrianc <adrianc@nvidia.com>
@adrianchiris adrianchiris merged commit ce089f0 into Mellanox:master Jul 19, 2023
14 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.

None yet

3 participants