-
Notifications
You must be signed in to change notification settings - Fork 38.8k
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
fix azure disk list corruption issue #77187
fix azure disk list corruption issue #77187
Conversation
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, justaugustus 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 |
/hold |
To avoid such issues again, @andyzhangx could you add a unit test for this? |
I don't think it could be covered in unit test. |
@feiskyer any concern about this PR? I would like to cherry pick to older release ASAP. |
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
/hold cancel |
…7187-upstream-release-1.12 Automated cherry pick of #77187: fix disk list corruption issue
…7187-upstream-release-1.13 Automated cherry pick of #77187: fix disk list corruption issue
…7187-upstream-release-1.14 Automated cherry pick of #77187: fix disk list corruption issue
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR fixed azure disk list corruption issue:
In Azure disk attach/detach function, it uses slice(
disks
) to store the disk list:kubernetes/staging/src/k8s.io/legacy-cloud-providers/azure/azure_controller_standard.go
Line 44 in f01c140
And after
disks
changed, the originalvm.StorageProfile.DataDisks
would also be changed, so original azure data disk list is corrupted after attach/detach diskexample code as below:
Which issue(s) this PR fixes:
Fixes #77186
Special notes for your reviewer:
release-note:
/kind bug
/assign @feiskyer @khenidak
/priority important-soon
/sig azure
/test pull-kubernetes-e2e-aks-engine-azure