k3s/pkg/volume
Kubernetes Submit Queue d3c09656d7
Merge pull request #66832 from msau42/udev
Automatic merge from submit-queue (batch tested with PRs 64645, 66832). 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>.

Detect if GCE PD udev link is wrong and try to correct it

**What this PR does / why we need it**:
udev can miss scsi events and not update device links properly when disks are detached and reattached to the same node in a different order.  This PR workarounds the issue by comparing the udev link name, which is the PD disk name, with the scsi disk serial number returned from scsi_id, and prevents mounting of the disk if the link is wrong.  It will also run `udevadm trigger` on the disk to try to correct the bad link.

**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 #

**Special notes for your reviewer**:

**Release note**:

```release-note
This fix prevents a GCE PD volume from being mounted if the udev device link is stale and tries to correct the link.
```
2018-08-01 17:13:03 -07:00
..
aws_ebs Add DynamicProvisioningScheduling support for EBS 2018-08-01 09:00:03 -07:00
azure_dd Update compute API to 2018-04-01 2018-07-25 17:39:32 +08:00
azure_file Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
cephfs Add UT Test to cephfs 2018-07-25 10:40:16 +08:00
cinder Avoid overflowing int64 in RoundUpSize and return error if overflow int 2018-07-23 13:48:45 -04:00
configmap Remove unused io util writer & volume host GetWriter() 2018-07-09 14:09:48 -07:00
csi Use glog instead of fmt 2018-07-24 09:46:56 +08:00
downwardapi Stop sorting downward api file lines 2018-07-09 15:44:03 -04:00
empty_dir Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
fc kubernetes: fix printf format errors 2018-07-11 00:10:15 +03:00
flexvolume Implement fixes for flexvolume when kubelet is contanerized 2018-07-03 14:04:52 -04:00
flocker Avoid overflowing int64 in RoundUpSize and return error if overflow int 2018-07-23 13:48:45 -04:00
gce_pd Merge pull request #66832 from msau42/udev 2018-08-01 17:13:03 -07:00
git_repo Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
glusterfs Remove `auto_unmount` mount option from pv spec annotation to setup() func. 2018-07-25 22:27:40 +05:30
host_path fixformat 2018-07-14 10:34:21 +08:00
iscsi Avoid deleted iSCSI LUNs in the kernel 2018-07-24 23:58:19 -04:00
local Merge pull request #65310 from wenlxie/upstream.master.fixlocalvolumevmnotfound 2018-06-29 20:14:12 -07:00
nfs Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
photon_pd Avoid overflowing int64 in RoundUpSize and return error if overflow int 2018-07-23 13:48:45 -04:00
portworx kubernetes: fix printf format errors 2018-07-11 00:10:15 +03:00
projected Merge pull request #65429 from WanLinghao/projected_error_return_fix 2018-07-16 13:52:54 -07:00
quobyte Merge pull request #66202 from tanshanshan/fixformat 2018-07-24 21:24:30 -07:00
rbd Merge pull request #66202 from tanshanshan/fixformat 2018-07-24 21:24:30 -07:00
scaleio Check presence of sioDiskIDPath before reading it 2018-07-17 09:55:46 -07:00
secret Remove unused io util writer & volume host GetWriter() 2018-07-09 14:09:48 -07:00
storageos Avoid overflowing int64 in RoundUpSize and return error if overflow int 2018-07-23 13:48:45 -04:00
testing extend FakeVolumePlugin to implement VolumePluginWithAttachLimits interface 2018-07-16 09:09:48 -07:00
util Add DynamicProvisioningScheduling support for EBS 2018-08-01 09:00:03 -07:00
validation Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
vsphere_volume Avoid overflowing int64 in RoundUpSize and return error if overflow int 2018-07-23 13:48:45 -04:00
BUILD Remove unused io util writer & volume host GetWriter() 2018-07-09 14:09:48 -07:00
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 Remove unused io util writer & volume host GetWriter() 2018-07-09 14:09:48 -07:00
plugins_test.go
volume.go Merge pull request #63193 from lichuqiang/provision_0425 2018-06-05 15:31:58 -07:00
volume_linux.go
volume_unsupported.go