-
Notifications
You must be signed in to change notification settings - Fork 195
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
MGMT-16332: fix issue validating pre-release versions #5837
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -108,6 +108,14 @@ var _ = Describe("Lvm Operator", func() { | |||||||||||||||||
&common.Cluster{Cluster: models.Cluster{HighAvailabilityMode: &fullHaMode, Hosts: []*models.Host{hostWithSufficientResources, hostWithSufficientResources}, OpenshiftVersion: operator.config.LvmMinMultiNodeSupportVersion}}, | ||||||||||||||||||
api.ValidationResult{Status: api.Success, ValidationId: operator.GetHostValidationID()}, | ||||||||||||||||||
), | ||||||||||||||||||
table.Entry("High Availability Mode Full with pre-release version", | ||||||||||||||||||
&common.Cluster{Cluster: models.Cluster{HighAvailabilityMode: &fullHaMode, Hosts: []*models.Host{hostWithSufficientResources, hostWithSufficientResources}, OpenshiftVersion: "4.15.0-rc0"}}, | ||||||||||||||||||
api.ValidationResult{Status: api.Success, ValidationId: operator.GetHostValidationID()}, | ||||||||||||||||||
), | ||||||||||||||||||
table.Entry("High Availability Mode Full with higher than LvmMinMultiNodeSupportVersion", | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we add SNO with openshift version > LvmMinMultiNodeSupportVersion? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. already there - the naming is a big confusing noneHaMode := models.ClusterHighAvailabilityModeNone assisted-service/internal/operators/lvm/lvm_operator_test.go Lines 123 to 130 in a209574
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yep sorry I've missed it 😓 |
||||||||||||||||||
&common.Cluster{Cluster: models.Cluster{HighAvailabilityMode: &fullHaMode, Hosts: []*models.Host{hostWithSufficientResources, hostWithSufficientResources}, OpenshiftVersion: "4.15.7"}}, | ||||||||||||||||||
api.ValidationResult{Status: api.Success, ValidationId: operator.GetHostValidationID()}, | ||||||||||||||||||
), | ||||||||||||||||||
table.Entry("High Availability Mode Full and Openshift version less than LvmMinMultiNodeSupportVersion", | ||||||||||||||||||
&common.Cluster{Cluster: models.Cluster{HighAvailabilityMode: &fullHaMode, Hosts: []*models.Host{hostWithSufficientResources}, OpenshiftVersion: "4.14.0"}}, | ||||||||||||||||||
api.ValidationResult{Status: api.Failure, ValidationId: operator.GetHostValidationID(), Reasons: []string{"Logical Volume Manager is only supported for highly available openshift with version 4.15.0 or above"}}, | ||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check about being SNO disappeared, is that intended?
IIUC in this case SNO with version greater than minimum for multi node would pass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is no need for it - was redandent
there is an if statement before
assisted-service/internal/operators/lvm/lvm_operator.go
Lines 82 to 87 in a209574