-
Notifications
You must be signed in to change notification settings - Fork 223
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
ACM-17553: Save version of imported clusters - ACM 2.12 #7250
base: release-ocm-2.12
Are you sure you want to change the base?
ACM-17553: Save version of imported clusters - ACM 2.12 #7250
Conversation
This is a backport of OCPBUGS-42059 for ACM 2.12. Currently when a cluster is imported the `openshift_version` column of the database is not populated. As a result that version will not be available for validations, in particular for the validation that checks if dual-stack VIPs are supported. A side effect of that is that adding a node to a cluster with dual-stack VIPs will always fail with an error message like this, regardless of the version: ``` "dual-stack VIPs are not supported in OpenShift " ``` That error happens because we are trying to see if the version is less than 4.12, but the result is always true because the version is empty. To avoid that this patch changes the cluster import code so that it populates the `openshift_version` database column. Related: https://issues.redhat.com/browse/ACM-17553 Related: https://issues.redhat.com/browse/OCPBUGS-42059 Signed-off-by: Juan Hernandez <[email protected]>
@jhernand: This pull request references ACM-17553 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jhernand The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release-ocm-2.12 #7250 +/- ##
=================================================
Coverage 68.30% 68.31%
=================================================
Files 257 257
Lines 37611 37614 +3
=================================================
+ Hits 25692 25695 +3
Misses 9635 9635
Partials 2284 2284
|
/retest-required |
@jhernand: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
This is a backport of OCPBUGS-42059 and #7249 for ACM 2.12.
Currently when a cluster is imported the
openshift_version
column of the database is not populated. As a result that version will not be available for validations, in particular for the validation that checks if dual-stack VIPs are supported. A side effect of that is that adding a node to a cluster with dual-stack VIPs will always fail with an error message like this, regardless of the version:That error happens because we are trying to see if the version is less than 4.12, but the result is always true because the version is empty.
To avoid that this patch changes the cluster import code so that it populates the
openshift_version
database column.List all the issues related to this PR
https://issues.redhat.com/browse/ACM-17553
https://issues.redhat.com/browse/OCPBUGS-42059
What environments does this code impact?
How was this code tested?
Checklist
docs
, README, etc)Reviewers Checklist