- 
                Notifications
    You must be signed in to change notification settings 
- Fork 168
Unpublish legacy volume even if it appears in multiple zones #2207
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
| [APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mattcary 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  | 
| /lgtm | 
Change-Id: I4e8cd457ab869f52e9202d2d1640c902b169f330
| New changes are detected. LGTM label has been removed. | 
| @mattcary: The following tests failed, say  
 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. | 
| /cherry-pick release-1.21 | 
| @mattcary: #2207 failed to apply on top of branch "release-1.21": 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 kubernetes-sigs/prow repository. | 
/kind bug
What this PR does / why we need it:
If there are disks with the same name across multiple zones, and a legacy (pre-migration) volume is used, unpublish will fail when trying to reconstruct the full volume key. However, since we have the node when we are unpublishing, we do know the zone and can detach the correct disk.
Failing to do this results in stuck workloads for customers, as if they manually create a node in a second zone before detaching a similarly named one, they can never unpublish.
Which issue(s) this PR fixes:
This was found in internal testing in GKE.