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

Drop MOFED support older than 5.7-0.1.2.0 #566

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

e0ne
Copy link
Collaborator

@e0ne e0ne commented Jul 9, 2023

No description provided.

@e0ne
Copy link
Collaborator Author

e0ne commented Jul 9, 2023

/retest-nic_operator_kind

@adrianchiris
Copy link
Collaborator

please add more info in each commit message.

  1. why we drop support for MOFED image format older than 5.7 (because its old and we dont really need it anymore)
  2. specify what is the new image format.

pkg/state/state_ofed.go Outdated Show resolved Hide resolved
cr.Spec.OFEDDriver.Version = "5.6-1.0.0.0"
imageName := stateOfed.getMofedDriverImageName(cr, nodeAttr, testLogger)
Expect(imageName).To(Equal("nvcr.io/mellanox/mofed-5.6-1.0.0.0:ubuntu20.04-amd64"))
})
It("generates new image format", func() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: drop the "new"

@@ -63,6 +65,8 @@ var attrToLabel = []string{
NodeLabelOSName,
// AttrTypeOSVer
NodeLabelOSVer,
// AttrTypeOSVerMajor
NodeLabelCudaVersionMajor,
Copy link
Collaborator

Choose a reason for hiding this comment

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

duplicate ?

osName := nodeAttr[nodeinfo.AttrTypeOSName]
osVer := nodeAttr[nodeinfo.AttrTypeOSVer]
if curDriverVer != nil && curDriverVer.GreaterThan(oldRhelFormatDriverVer) && osName == rhelOSName {
osVer = nodeAttr[nodeinfo.AttrTypeOSVerMajor] + ".x"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I asked Vlad to tag (re-tag) each version explicitly why do we need this.

in addition IF we will need a special version for a specific RHEL release we will loose the ability to do it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@e0ne i think we should try to keep a single format in network operator.

MOFED driver container can be re-tagged as needed for multiple OS versions

We don't need to support old MOFED version in the latest
Network Operator release.

Signed-off-by: Ivan Kolodiazhny <ikolodiazhny@nvidia.com>
@e0ne e0ne changed the title Support new MOFED image format for RHEL Drop MOFED support older than 5.7-0.1.2.0 Jul 10, 2023
@e0ne e0ne requested a review from adrianchiris July 13, 2023 11:10
@adrianchiris adrianchiris merged commit 295ec68 into Mellanox:master Jul 18, 2023
9 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

2 participants