Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

fix disk unavailable issue when mounting multiple azure disks due to dev name change #2410

Merged
merged 1 commit into from
Mar 8, 2018

Conversation

andyzhangx
Copy link
Contributor

What this PR does / why we need it:
fix disk unavailable issue when mounting multiple azure disks due to dev name change

When User mount the 6th azure data disk on an D2_V2 VM, other azure disk would be unavailable due to device name change. This PR set the default cachingmode as None to fix this issue.
You could find more details in this upstream PR: kubernetes/kubernetes#60346

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #1918

Special notes for your reviewer:
@jackfrancis @JiangtianLi This is a critical bug fix, we have changed the default cachingmode value as None in upstream code, while as a simple workaround, we could change the cachingmode value to None in azure disk storage class. Could you fix it in AKS also? Thanks.

Release note:

fix disk unavailable issue when mounting multiple azure disks

…dev name change

fall back azure file storage class change
@@ -10,6 +10,7 @@ provisioner: kubernetes.io/azure-disk
parameters:
kind: Managed
storageaccounttype: Standard_LRS
cachingmode: None
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the default cachingmode if it is not set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

default is ReadWrite, and I have set to None in current k8s upstream code from v1.7-v1.10, all minor version should fix this issue.

Copy link
Contributor

@JiangtianLi JiangtianLi left a comment

Choose a reason for hiding this comment

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

/lgtm

@jackfrancis jackfrancis merged commit 63b5605 into Azure:master Mar 8, 2018
tesharp pushed a commit to tesharp/acs-engine that referenced this pull request Mar 16, 2018
…dev name change (Azure#2410)

fall back azure file storage class change
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unable to use azure disk in StatefulSet since /dev/sd* changed after detach/attach disk
3 participants