Skip to content
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

Promote some InTreePluginXXXUnregister to GA #124023

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

carlory
Copy link
Member

@carlory carlory commented Mar 22, 2024

What type of PR is this?

/kind cleanup
/sig storage

What this PR does / why we need it:

The following plugins in the Special notes for your reviewer section already completed the migration task and its in-tree code was removed as part of the migration process. So, the corresponding feature gate should be removed, but it has not been removed yet.

Whatever the value of the feature gate is, it won't affect the code's behavior. Even if the feature gate is false, we will still get the right value from csinode's annotations. The PR updates the value to true and promotes them to GA. And those feature gates will be removed in v1.32.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

KEPs:

/cc @leakingtapan @andyzhangx @davidz627 @adisky @dims @divyenpatel @xing-yang

Does this PR introduce a user-facing change?

Promoted the following feature gates to general availability:
- `InTreePluginAWSUnregister`
- `InTreePluginAzureDiskUnregister`
- `InTreePluginAzureFileUnregister`
- `InTreePluginGCEUnregister`
- `InTreePluginOpenStackUnregister`
- `InTreePluginvSphereUnregister`

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 22, 2024
@k8s-ci-robot k8s-ci-robot added the sig/storage Categorizes an issue or PR as relevant to SIG Storage. label Mar 22, 2024
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 22, 2024
@k8s-ci-robot k8s-ci-robot requested a review from dims March 22, 2024 03:49
@k8s-ci-robot
Copy link
Contributor

@carlory: GitHub didn't allow me to request PR reviews from the following users: davidz627.

Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

What type of PR is this?

/kind cleanup
/sig storage

What this PR does / why we need it:

The following plugins in the Special notes for your reviewer section already completed the migration task and its in-tree code was removed as part of the migration process. So, the corresponding feature-gate should be removed as well, but it is not removed yet.

Whatever the value of the feature-gate is, it won't have any effect on the behavior of the code. Even if the feature-gate is set to false, we will still get the right value from csinode's annotations. The PR is to promote their to GA. And those feature-gates will be removed in v1.32.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

KEPs:

/cc @leakingtapan @andyzhangx @davidz627 @adisky @dims @divyenpatel @xing-yang

Does this PR introduce a user-facing change?

Promote the following feature-gates to GA:
- InTreePluginAWSUnregister
- InTreePluginAzureDiskUnregister
- InTreePluginAzureFileUnregister
- InTreePluginGCEUnregister
- InTreePluginOpenStackUnregister
- InTreePluginvSphereUnregister

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


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/test-infra repository.

@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Mar 22, 2024
@carlory carlory marked this pull request as draft March 22, 2024 07:50
@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. sig/apps Categorizes an issue or PR as relevant to SIG Apps. labels Mar 22, 2024
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 22, 2024
@bart0sh bart0sh added this to Triage in SIG Node CI/Test Board Mar 24, 2024
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 27, 2024
@carlory
Copy link
Member Author

carlory commented Mar 27, 2024

/test pull-kubernetes-unit

@carlory carlory marked this pull request as ready for review March 27, 2024 06:04
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 27, 2024
@carlory
Copy link
Member Author

carlory commented Mar 27, 2024

/cc @jsafrane

@@ -1076,21 +1076,21 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS

ImageMaximumGCAge: {Default: true, PreRelease: featuregate.Beta},

InTreePluginAWSUnregister: {Default: false, PreRelease: featuregate.Alpha},
InTreePluginAWSUnregister: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.32
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should move a featuregate directly from "Alpha" to "GA".

cc @jsafrane @msau42

Copy link
Member Author

@carlory carlory Mar 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but the in-tree code was removed, so the beta stage may be meaningless.

@xing-yang
Copy link
Contributor

/hold

Putting this on hold until we understand the implications of moving this to GA. If this means the user cannot use in-tree PVs/PVCs/StorageClasses any more, then we can never enable this by default.

cc @jsafrane

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 27, 2024
@jsafrane
Copy link
Member

jsafrane commented Mar 28, 2024

Thanks for the enhancement link! I checked the PR and tested with in-tree AWS on Kubernetes 1.29, CSI migration works fine. We should have declare these feature gates GA when CSI migration went GA and remove them when CSI migration gates were removed.

What if we just delete the feature gates? They don't affect anything, you can turn them on and off, but they don't have any impact on any code in Kubernetes.

For example, InTreePluginAWSUnregister is used only in IsMigrationCompleteForPlugin(), which is used only by A/D controller to see if there could be a node that still has kubelet with CSI migration enabled disabled. There can be no such kubelet, AWS CSI migration went GA in 1.24 and the oldest kubelet that 1.31 KCM supports is 1.27. And even if it was such a kubelet, A/D controller does not have the in-tree volume plugin to attach/detach its non-migrated volumes anyway, we removed the volume plugin in 1.27.

@carlory can you please split it into two PRs, one that updates all the unit tests (most of this PR) and a second one that deletes the feature gates and all their usage? That one should be small and we can argue if it's safe or not to remove them.


InTreePluginPortworxUnregister: {Default: false, PreRelease: featuregate.Alpha},

InTreePluginRBDUnregister: {Default: false, PreRelease: featuregate.Deprecated}, // deprecated in 1.28, remove in 1.31

InTreePluginvSphereUnregister: {Default: false, PreRelease: featuregate.Alpha},
InTreePluginvSphereUnregister: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.32
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to test this on vSphere before this change is merged.

Copy link
Member Author

@carlory carlory Mar 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI:

So 1.29 is the last release that can handle version skew between managers and nodes. It's not related to this PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

@carlory carlory Mar 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the https://kubernetes.io/releases/version-skew-policy/, kube-apiserver is at 1.29 and kubelet is supported at 1.29, 1.28, 1.27, and 1.26.

So if kube-apiserver is at 1.30 and kubelet is supported at 1.30, 1.29, 1.28, and 1.27.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the CSIMigrationvSphere feature-gate was GA at 1.27, so csinode's annotation storage.alpha.kubernetes.io/migrated-plugins always contains the kubernetes.io/vsphere-volume item.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In other words, operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carlory
Copy link
Member Author

carlory commented Mar 29, 2024

can you please split it into two PRs, one that updates all the unit tests (most of this PR) and a second one that deletes the feature gates and all their usage? That one should be small and we can argue if it's safe or not to remove them.

I will do it

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 29, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: carlory
Once this PR has been reviewed and has the lgtm label, please assign xing-yang for approval. For more information see the Kubernetes Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@bart0sh bart0sh moved this from Triage to Archive-it in SIG Node CI/Test Board Mar 31, 2024
@pacoxu
Copy link
Member

pacoxu commented Apr 2, 2024

/test pull-kubernetes-e2e-gce-cos-alpha-features

@pacoxu
Copy link
Member

pacoxu commented Apr 2, 2024

@sftim
Copy link
Contributor

sftim commented Apr 23, 2024

Changelog suggestion

Promoted the following feature gates to general availability:
- `InTreePluginAWSUnregister`
- `InTreePluginAzureDiskUnregister`
- `InTreePluginAzureFileUnregister`
- `InTreePluginGCEUnregister`
- `InTreePluginOpenStackUnregister`
- `InTreePluginvSphereUnregister`

@dims
Copy link
Member

dims commented May 10, 2024

/test all

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 10, 2024
@carlory
Copy link
Member Author

carlory commented May 11, 2024

replaced by #124815

@carlory carlory closed this May 11, 2024
@carlory
Copy link
Member Author

carlory commented May 13, 2024

/reopen

@k8s-ci-robot k8s-ci-robot reopened this May 13, 2024
@k8s-ci-robot
Copy link
Contributor

@carlory: Reopened this PR.

In response to this:

/reopen

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.

@carlory carlory force-pushed the InTreePluginXXXUnregister branch from 03881eb to eb52ea8 Compare May 13, 2024 02:48
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 13, 2024
@k8s-ci-robot
Copy link
Contributor

@carlory: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kubernetes-unit eb52ea8 link true /test pull-kubernetes-unit

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/apps Categorizes an issue or PR as relevant to SIG Apps. sig/storage Categorizes an issue or PR as relevant to SIG Storage. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

None yet

7 participants