Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ialidzhikov
Copy link
Contributor

Cherry pick of #101737 on release-1.18.

#101737: Use CSI driver to determine unique name for migrated in-tree

For details on the cherry pick process, see the cherry pick requests page.

@k8s-ci-robot k8s-ci-robot added this to the v1.18 milestone Jun 11, 2021
@k8s-ci-robot k8s-ci-robot added do-not-merge/cherry-pick-not-approved Indicates that a PR is not yet approved to merge into a release branch. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 11, 2021
@k8s-ci-robot
Copy link
Contributor

@ialidzhikov: This cherry pick PR is for a release branch and has not yet been approved by Release Managers.
Adding the do-not-merge/cherry-pick-not-approved label.

To merge this cherry pick, it must first be approved (/lgtm + /approve) by the relevant OWNERS.

AFTER it has been approved by code owners, please ping the kubernetes/release-managers team in a comment to request a cherry pick review.

(For details on the patch release process and schedule, see the Patch Releases page.)

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 do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Jun 11, 2021
@k8s-ci-robot
Copy link
Contributor

@ialidzhikov: 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
Copy link
Contributor

Hi @ialidzhikov. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. sig/apps Categorizes an issue or PR as relevant to SIG Apps. labels Jun 11, 2021
@k8s-ci-robot k8s-ci-robot requested review from gnufied and verult June 11, 2021 15:27
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Jun 11, 2021
@ialidzhikov
Copy link
Contributor Author

/area storage
/kind bug

This PR is a fix for a regression that was introduced in 1.18.16 with #98224.
/kind regression

/cc @Jiawei0227 @msau42

PS. I really know that 1.18 is out of support and there will be an exceptional last patch release for 1.18 (https://groups.google.com/g/kubernetes-dev/c/KuF8s2zueFs/m/GWGAACgKAgAJ). But I think the bug fix #101737 deserves a cherry-pick.

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. kind/regression Categorizes issue or PR as related to a regression from a prior release. labels Jun 11, 2021
@k8s-ci-robot
Copy link
Contributor

@ialidzhikov: The label(s) area/storage cannot be applied, because the repository doesn't have them.

In response to this:

/area storage
/kind bug

This PR is a fix for a regression that was introduced in 1.18.16 with #98224.
/kind regression

/cc @Jiawei0227 @msau42

PS. I really know that 1.18 is out of support and there will be an exceptional last patch release for 1.18 (https://groups.google.com/g/kubernetes-dev/c/KuF8s2zueFs/m/GWGAACgKAgAJ). But I think the bug fix #101737 deserves a cherry-pick.

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 removed the do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. label Jun 11, 2021
@ialidzhikov
Copy link
Contributor Author

/sig storage

@k8s-ci-robot k8s-ci-robot added the sig/storage Categorizes an issue or PR as relevant to SIG Storage. label Jun 11, 2021
@ialidzhikov
Copy link
Contributor Author

/cc @puerco

@k8s-ci-robot k8s-ci-robot requested a review from puerco June 11, 2021 18:58
@puerco
Copy link
Member

puerco commented Jun 11, 2021

Hi @ialidzhikov I'm sorry, 1.18 is now EOL so we cannot approve the cherry-pick anymore :(

@ialidzhikov
Copy link
Contributor Author

Hi @ialidzhikov I'm sorry, 1.18 is now EOL so we cannot approve the cherry-pick anymore :(

According to https://groups.google.com/g/kubernetes-dev/c/KuF8s2zueFs/m/GWGAACgKAgAJ it seems that there will be one final patch release. I know that 1.18 is already out of support but I believe that this fix is critical enough to be included as well. The regression itself was introduced in 1.18.16. @Jiawei0227 @msau42 I believe you would agree with me.

Copy link
Contributor

@Jiawei0227 Jiawei0227 left a comment

Choose a reason for hiding this comment

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

There is another PR that is related to this which is: https://github.com/kubernetes/kubernetes/pull/102176/files

I believe if you really want to backport it in 1.18 we should also cherrypick this.

@Jiawei0227
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 12, 2021
@ialidzhikov ialidzhikov force-pushed the automated-cherry-pick-of-#101737-upstream-release-1.18 branch from e2267a6 to 678795e Compare June 13, 2021 07:26
@ialidzhikov
Copy link
Contributor Author

There is another PR that is related to this which is: https://github.com/kubernetes/kubernetes/pull/102176/files

I believe if you really want to backport it in 1.18 we should also cherrypick this.

I synced with the PR author @timebertt few days back on this topic. We agreed that the change is not that critical because it only fixes the garbage collection logic for VolumeAttachments to consider CSI migrated volumes as well. It is nice to have of course but I don't want to bundle it into this PR.
On the other side #101737 fixes an issue where kube-controller-manager can potentially wrongly detach CSI migrated volumes. This issue is already reported in kubernetes/cloud-provider-openstack#1531, kubernetes-sigs/aws-ebs-csi-driver#896 and we see it on our landscapes as well.

@ialidzhikov
Copy link
Contributor Author

/test pull-kubernetes-node-e2e

@ialidzhikov
Copy link
Contributor Author

All checks are passing now. @Jiawei0227 @msau42 @gnufied can you check again?

PS: I guess the final patch release for 1.18 is scheduled for 2021-06-16.

@Jiawei0227
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 14, 2021
@msau42
Copy link
Member

msau42 commented Jun 14, 2021

/approve

This fixes a regression that causes disks using CSI migration to be prematurely detached from nodes while pods are still running, causing IO errors to workloads if kube-controller-manger restarts (like on an upgrade). I think this is a serious enough bug to be considered for the final patch release.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ialidzhikov, msau42

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 14, 2021
@msau42
Copy link
Member

msau42 commented Jun 14, 2021

/priority critical-urgent

@k8s-ci-robot k8s-ci-robot added priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Jun 14, 2021
@ialidzhikov
Copy link
Contributor Author

/cc @kubernetes/release-managers

@k8s-ci-robot k8s-ci-robot requested a review from a team June 14, 2021 16:41
@ialidzhikov
Copy link
Contributor Author

/close

@k8s-ci-robot
Copy link
Contributor

@ialidzhikov: Closed this PR.

In response to this:

/close

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.

@justaugustus
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/cherry-pick-not-approved Indicates that a PR is not yet approved to merge into a release branch. kind/bug Categorizes issue or PR as related to a bug. kind/regression Categorizes issue or PR as related to a regression from a prior release. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. 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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants