k3s/test/e2e/storage
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
..
utils Add e2e tests for volumeMode of persistent volume 2018-06-27 17:25:55 +00:00
vsphere Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
BUILD Add e2e tests for volumeMode of persistent volume 2018-06-27 17:25:55 +00:00
OWNERS
csi_objects.go e2e/storage: central argument handling 2018-05-28 11:46:50 +02:00
csi_volumes.go Re-enable write-read pv check in volume provisioning tests 2018-07-10 16:20:58 -04:00
empty_dir_wrapper.go Remove kubectl reapers 2018-05-25 22:18:05 +02:00
ephemeral_volume.go Fix setup of configmap/secret/projected/downwardapi 2018-06-07 09:15:01 -04:00
flexvolume.go Flexvolume e2e test for attachable driver: Introduced delay after pod deletion to ensure detach happens 2018-07-25 15:32:55 -07:00
generic_persistent_volume-disruptive.go Refactor subpath reconstruction tests to use util test 2018-04-11 14:20:29 -07:00
mounted_volume_resize.go Remove feature tags from e2e test for resize 2018-05-25 15:32:44 -04:00
nfs_persistent_volume-disruptive.go Make various fixes to flex tests and fix some crashes 2018-06-29 11:10:26 -04:00
pd.go Typo fix: toto -> to 2018-06-12 23:12:39 +08:00
persistent_volumes-gce.go Remove the use of storage class beta annotations in e2e tests. 2018-04-10 15:29:08 +08:00
persistent_volumes-local.go fix wrong output in e2e log 2018-07-28 14:39:12 +08:00
persistent_volumes-volumemode.go Add e2e tests for volumeMode of persistent volume 2018-06-27 17:25:55 +00:00
persistent_volumes.go Detect if GCE PD udev link is wrong and try to correct it 2018-08-01 10:04:06 -07:00
pv_protection.go Remove the use of storage class beta annotations in e2e tests. 2018-04-10 15:29:08 +08:00
pvc_protection.go Enable PV protection test by default 2018-02-23 16:59:22 +01:00
regional_pd.go Merge pull request #64480 from verult/repd-ig-fix 2018-05-31 14:12:15 -07:00
subpath.go Note: 2018-07-31 17:23:46 -03:00
volume_expand.go Remove feature tags from e2e test for resize 2018-05-25 15:32:44 -04:00
volume_io.go Move Ceph server secret creation to common code. 2018-05-25 14:02:59 +02:00
volume_metrics.go Add extra metrics for PV Controller 2018-07-19 15:36:37 +02:00
volume_provisioning.go Reverting commit #56600 as GCE PD is allocated in chunks of GiB instead of GBs 2018-07-16 11:55:57 -07:00
volumes.go Remove Feature:Volume from tests 2018-06-05 15:39:32 +02:00