-
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-17554: Save version of imported clusters - ACM 2.11 #7251
base: release-ocm-2.11
Are you sure you want to change the base?
ACM-17554: Save version of imported clusters - ACM 2.11 #7251
Conversation
This is a backport of OCPBUGS-42059 and openshift#7249 for ACM 2.11. 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-17554 Related: https://issues.redhat.com/browse/OCPBUGS-42059 Signed-off-by: Juan Hernandez <[email protected]>
@jhernand: This pull request references ACM-17554 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.11 #7251 +/- ##
=================================================
Coverage 68.51% 68.52%
=================================================
Files 247 247
Lines 36445 36448 +3
=================================================
+ Hits 24972 24976 +4
+ Misses 9262 9261 -1
Partials 2211 2211
|
@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.11.
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-17554
https://issues.redhat.com/browse/OCPBUGS-42059
What environments does this code impact?
How was this code tested?
Checklist
docs
, README, etc)Reviewers Checklist