kubernetes/pkg/volume
Kubernetes Submit Queue 8f9e8c0acf
Merge pull request #60183 from andyzhangx/addlock-detach-azuredisk
Automatic merge from submit-queue (batch tested with PRs 60208, 60084, 60183, 59713, 60096). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

fix race condition issue when detaching azure disk

**What this PR does / why we need it**:
add lock before detaching azure disk, without this PR, there would be lots of `Multi-Attach error` when scheduling one pod from one node to another.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #60101

**Special notes for your reviewer**:
@feiskyer @djsly @khenidak 
Since we are using `getLunMutex.LockKey(instanceid)` for both AttachDisk and DetachDisk, there would be only one VM.update operation at a time for both AttachDisk and DetachDisk.

**Release note**:

```
fix race condition issue when detaching azure disk
```

/assign @feiskyer 
Could you also mark as v1.10 milestone @feiskyer thanks.
/sig azure
2018-02-22 23:17:35 -08:00
..
aws_ebs Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
azure_dd add lock before detaching azure disk 2018-02-22 03:54:54 +00:00
azure_file Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
cephfs Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
cinder Merge pull request #59842 from ixdy/update-rules_go-02-2018 2018-02-19 22:23:05 -08:00
configmap Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
csi Make CSI volume attributes first class 2018-02-22 09:16:20 -03:00
downwardapi Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
empty_dir Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
fc Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
flexvolume Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
flocker Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
gce_pd Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
git_repo Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
glusterfs Reformat and update error strings. 2018-02-20 20:07:03 +05:30
host_path Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
iscsi Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
local Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
nfs Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
photon_pd Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
portworx Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
projected Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
quobyte Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
rbd Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
scaleio Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
secret Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
storageos Merge pull request #58816 from croomes/storageos_containerized_kubelet 2018-02-22 18:11:34 -08:00
testing Initial local PV block device plugin checkin. 2018-02-06 14:49:44 -08:00
util Merge pull request #60036 from mtanino/issue/60025 2018-02-20 16:30:41 -08:00
validation Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
vsphere_volume Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
BUILD Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
doc.go
metrics_cached.go
metrics_du_test.go switch from package syscall to x/sys/unix 2017-07-21 12:14:42 +02:00
metrics_du.go add volume timestamps 2017-03-02 15:01:59 -08:00
metrics_errors.go Disambiguate unsupported metrics from metrics errors 2016-09-15 10:05:30 +10:00
metrics_nil_test.go
metrics_nil.go Disambiguate unsupported metrics from metrics errors 2016-09-15 10:05:30 +10:00
metrics_statfs_test.go add volume timestamps 2017-03-02 15:01:59 -08:00
metrics_statfs.go add volume timestamps 2017-03-02 15:01:59 -08:00
OWNERS Update volume OWNERS to reflect active sig-storage reviewers 2017-10-26 13:26:33 -07:00
plugins_test.go Use const instead of hard code for volume plugin 2017-09-18 20:09:07 +08:00
plugins.go mini fix about typo 2018-01-26 15:42:57 +08:00
util_test.go Switch to k8s.gcr.io vanity domain 2018-02-07 21:14:19 -08:00
util.go fix all the typos across the project 2018-02-11 11:04:14 +08:00
volume_linux.go Fixes cross platform build failure 2017-08-26 09:58:51 -04:00
volume_unsupported.go Fixes cross platform build failure 2017-08-26 09:58:51 -04:00
volume.go BlockVolumesSupport: CRI, VolumeManager and OperationExecutor changes 2017-11-20 14:10:26 -05:00