k3s/pkg/volume
Kubernetes Submit Queue b7953a787e Merge pull request #52260 from andyzhangx/azuremounter-issue
Automatic merge from submit-queue (batch tested with PRs 52452, 52115, 52260, 52290)

fix azure disk mounter issue

**What this PR does / why we need it**:
fix azure disk mounter issue, it's a P1 bug, it exists in 1.7, 1.8 release, should cherry pick to 1.7, 1.8

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

consider following issue: 
1) A pod mounting an azure disk in a k8s agent
2) The kubelet is restarted in that k8s agent
3) The pod could not start up, it always reports error as following:

  4d            1m              3065    kubelet, 14777acs9000                   Warning         FailedMount     MountVolume.SetUp failed for volume "pvc-7a0cdeb9-92c7-11e7-b86b-000d3a36d70c" : azureDisk - No
t a mounting point for disk andykubewin175-dynamic-pvc-7a0cdeb9-92c7-11e7-b86b-000d3a36d70c on \var\lib\kubelet\pods\d146c023-92c7-11e7-b86b-000d3a36d70c\volumes\kubernetes.io~azure-disk\pvc-7a0cdeb9-92c7-11
e7-b86b-000d3a36d70c
  4d            1m              3157    kubelet, 14777acs9000                   Warning         FailedMount     Error syncing pod

**Special notes for your reviewer**:
If you take a look at following implementation of vsphere or gce, it will return nil instead of error:
https://github.com/kubernetes/kubernetes/blob/master/pkg/volume/vsphere_volume/vsphere_volume.go#L217-L220
https://github.com/kubernetes/kubernetes/blob/master/pkg/volume/gce_pd/gce_pd.go#L273-L275

The logic of return info parsing here, it's wrong to return error
https://github.com/kubernetes/kubernetes/blob/master/pkg/volume/util/operationexecutor/operation_generator.go#L469-L475

**Release note**:

```release-note
```
2017-09-15 02:00:03 -07:00
..
aws_ebs Merge pull request #51387 from alrs/fix-storageos-swallowed-err 2017-09-13 11:10:24 -07:00
azure_dd Merge pull request #52260 from andyzhangx/azuremounter-issue 2017-09-15 02:00:03 -07:00
azure_file enable azure disk mount on windows node 2017-09-12 01:52:48 +00:00
cephfs Adding dynamic Flexvolume plugin discovery capability, using filesystem watch. 2017-08-25 11:42:32 -07:00
cinder Add storageClass.mountOptions and use it in all applicable plugins 2017-08-29 11:37:36 -04:00
configmap Adding dynamic Flexvolume plugin discovery capability, using filesystem watch. 2017-08-25 11:42:32 -07:00
downwardapi Adding dynamic Flexvolume plugin discovery capability, using filesystem watch. 2017-08-25 11:42:32 -07:00
empty_dir Fix pagesize mount option name 2017-09-12 14:34:39 +02:00
fc Merge pull request #51387 from alrs/fix-storageos-swallowed-err 2017-09-13 11:10:24 -07:00
flexvolume Merge pull request #51474 from verult/ProberTest 2017-09-03 11:10:05 -07:00
flocker Merge branch 'fix-aws-ebs-swallowed-errors' into fix-storageos-swallowed-err 2017-08-26 14:45:45 -07:00
gce_pd Merge pull request #51387 from alrs/fix-storageos-swallowed-err 2017-09-13 11:10:24 -07:00
git_repo Adding dynamic Flexvolume plugin discovery capability, using filesystem watch. 2017-08-25 11:42:32 -07:00
glusterfs Fix glusterfs creating volumes in GiB 2017-09-11 16:25:28 -04:00
host_path Merge branch 'fix-host-path-swallowed-error' into fix-storageos-swallowed-err 2017-08-26 14:51:53 -07:00
iscsi Merge pull request #51628 from jsafrane/fix-iscsi-attach 2017-09-01 00:11:12 -07:00
local Fix local storage code to follow go style 2017-08-31 22:09:41 +08:00
nfs Adding dynamic Flexvolume plugin discovery capability, using filesystem watch. 2017-08-25 11:42:32 -07:00
photon_pd Add storageClass.mountOptions and use it in all applicable plugins 2017-08-29 11:37:36 -04:00
portworx Merge branch 'fix-portworx-swallowed-errors' into fix-storageos-swallowed-err 2017-08-26 14:47:14 -07:00
projected Adding dynamic Flexvolume plugin discovery capability, using filesystem watch. 2017-08-25 11:42:32 -07:00
quobyte Add storageClass.mountOptions and use it in all applicable plugins 2017-08-29 11:37:36 -04:00
rbd Merge pull request #51574 from dillaman/ceph-rbd-image-format 2017-08-31 23:13:15 -07:00
scaleio ScaleIO - Specify SDC GUID value via node label 2017-09-07 16:44:32 -04:00
secret Adding dynamic Flexvolume plugin discovery capability, using filesystem watch. 2017-08-25 11:42:32 -07:00
storageos Merge branch 'fix-aws-ebs-swallowed-errors' into fix-storageos-swallowed-err 2017-08-26 14:45:45 -07:00
testing WaitForAttach refactoring for iSCSI attacher/detacher 2017-08-26 17:21:34 -04:00
util Merge pull request #51387 from alrs/fix-storageos-swallowed-err 2017-09-13 11:10:24 -07:00
validation
vsphere_volume Add storageClass.mountOptions and use it in all applicable plugins 2017-08-29 11:37:36 -04:00
BUILD
OWNERS
doc.go
metrics_cached.go
metrics_du.go
metrics_du_test.go
metrics_errors.go
metrics_nil.go
metrics_nil_test.go
metrics_statfs.go
metrics_statfs_test.go
plugins.go Implement controller for resizing volumes 2017-09-04 09:02:34 +02:00
plugins_test.go Adding dynamic Flexvolume plugin discovery capability, using filesystem watch. 2017-08-25 11:42:32 -07:00
util.go Modify VolumeZonePredicate to handle multi-zone PV 2017-09-04 20:13:32 -07:00
util_test.go Modify VolumeZonePredicate to handle multi-zone PV 2017-09-04 20:13:32 -07:00
volume.go WaitForAttach refactoring for iSCSI attacher/detacher 2017-08-26 17:21:34 -04: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