-
Notifications
You must be signed in to change notification settings - Fork 530
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
OCPNODE-2877: Remove support to configure cgroupsv1 in OCP #2181
base: master
Are you sure you want to change the base?
Conversation
@sairameshv: This pull request references OCPNODE-2877 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 story to target the "4.19.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. |
Hello @sairameshv! Some important instructions when contributing to openshift/api: |
/jira refresh |
@sairameshv: This pull request references OCPNODE-2877 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. |
c3acf1f
to
442cb45
Compare
/hold |
442cb45
to
0024d5a
Compare
0024d5a
to
5417ce7
Compare
@sairameshv: This pull request references OCPNODE-2877 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. |
/test verify |
@sairameshv: This pull request references OCPNODE-2877 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 |
config/v1/types_node.go
Outdated
@@ -77,6 +77,7 @@ type NodeStatus struct { | |||
} | |||
|
|||
// +kubebuilder:validation:Enum=v1;v2;"" | |||
// +kubebuilder:validation:XValidation:rule="self != \"v1\"",message="cgroups v1 is not supported on openshift anymore" |
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.
Shouldn't this be == "v1"?
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.
Please take a look at the tests/readme and add a test to prove this validation ratchets as expected and that any existing invalid value does not prevent future writes
5417ce7
to
19394d1
Compare
@sairameshv: This pull request references OCPNODE-2877 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. |
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.
@JoelSpeed Could you PTAL at this PR?
19394d1
to
6fd52b1
Compare
/retest |
1 similar comment
/retest |
config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_nodes-CustomNoUpgrade.crd.yaml
Outdated
Show resolved
Hide resolved
6fd52b1
to
611d390
Compare
/lgtm thanks! |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: haircommander, sairameshv 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 |
/retest |
1 similar comment
/retest |
611d390
to
ef2493d
Compare
New changes are detected. LGTM label has been removed. |
- Cgroupsv1 support is removed from OCP 4.19. Hence, denying the user when the `nodes.config` object's `cgroupMode` field is set to `"v1"` - Added integration tests to validate the enum removal Signed-off-by: Sai Ramesh Vanka <[email protected]>
ef2493d
to
daced88
Compare
Changes LGTM, how do we know this is safe? Can you please explain in the PR description what has been done in 4.18 that makes this a safe change in 4.19? |
@sairameshv: This pull request references OCPNODE-2877 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. |
@sairameshv: This pull request references OCPNODE-2877 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. |
As described in the enhancement proposal's Goal's section, the upgradadeability of the machine config cluster operator gets set to |
Which change do you mean? Is there something in 4.18 that already blocks upgrades if cgroups mode is v1, or is that still work to do? |
The change still needs to be added |
yeah I think we should /hold on this until we have the upgradable=false condition in MCO and the upgrade edge defined in cincinati |
Do this first. Once you have that logic in 4.18.z and set the minimum upgrade version in the upgrade graph, I'm happy to then merge this API PR to remove the value from the enum |
@sairameshv: The following tests 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. |
cgroupMode
field of thenodes.config.openshift.io
object.cgroupMode
fieldEnhancement Proposal Ref: https://github.com/openshift/enhancements/blob/master/enhancements/machine-config/mco-cgroupsv2-support.md
Summary:
cgroupMode v1
Upgradeable=False
when thecgroupMode
is found to bev1
and request users to update tov2