-
Notifications
You must be signed in to change notification settings - Fork 457
OCPNODE-3874: Remove the dead code of setting the operator status for cgroupv1 based clusters #5399
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
Conversation
QiWang19
left a comment
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.
/lgtm
| if err != nil { | ||
| return err | ||
| } | ||
| if configNode.Spec.CgroupMode == configv1.CgroupModeV1 { |
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.
Can you also remove this CgroupModeV1 constant from the API repo? Simplifying API docs by removing options we no longer allow users to set seems like a win with no downsides.
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.
I agree with you @wking . The only reason this wasn't removed earlier was the clusterfleetevaluation check.
But I think this check can also be removed with the cgroupv1 getting removed from all the ocp>4.19 clusters.
Let me update the commit with those changes as well.
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.
Here are the follow-up PRs @wking , Could you help tagging them?
openshift/api#2579
openshift/cluster-node-tuning-operator#1428
clusters - Option of configuring cgroupv1 has been removed in OCP - 4.19 - It is safe to remove this check from the operator status for all the clusters greater than OCP - 4.19 - Also removed the cluster fleet evaluation that checks if a cluster is configured with cgroupv1 Signed-off-by: Sai Ramesh Vanka <[email protected]>
1446706 to
dd2e67c
Compare
isabella-janssen
left a comment
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.
/approve
This looks like a fair change to me as the OCP docs do indicate that a cluster with cgroup v1 cannot upgrade to 4.19, which makes the removed block of code unnecessary.
|
@sairameshv: This pull request references OCPNODE-3874 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the spike to target the "4.21.0" version, but no target version was set. 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. |
|
/jira refresh |
|
@sairameshv: This pull request references OCPNODE-3874 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. |
|
/retest |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: isabella-janssen, ngopalak-redhat, QiWang19, sairameshv The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/verified Adding the |
|
@sairameshv: The 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. |
|
/verified by @sairameshv Adding the verified label as I don't think we can test this deleted code. |
|
@sairameshv: This PR has been marked as verified by 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. |
|
/label backport-risk-assessed The tests are passing for this PR so it should be a safe change. |
|
/retest-required |
|
All critical test cases passed https://qe-private-deck-ci.apps.ci.l2s4.p1.openshiftapps.com/view/gs/qe-private-deck/logs/periodic-ci-o[…]ration-mco-critical-f7/1988305878943535104 /label qe-approved |
|
@sairameshv: This pull request references OCPNODE-3874 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. |
|
/retest-required |
1 similar comment
|
/retest-required |
|
/hold Revision dd2e67c was retested 3 times: holding |
|
/hold cancel |
|
/retest-required |
|
/retest-required |
|
/hold Revision dd2e67c was retested 3 times: holding |
|
/hold cancel |
|
@sairameshv: all tests passed! 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. |
b0dc9a5
into
openshift:main
Reference: #5397 (comment)