k3s/pkg/volume
Kubernetes Submit Queue 03360d7b65 Merge pull request #48402 from ianchakeres/local-storage-teardown-fix
Automatic merge from submit-queue

Local storage teardown fix

**What this PR does / why we need it**: Local storage uses bindmounts and the method IsLikelyNotMountPoint does not detect these as mountpoints. Therefore, local PVs are not properly unmounted when they are deleted.

**Which issue this PR fixes**: fixes #48331

**Special notes for your reviewer**:

You can use these e2e tests to reproduce the issue and validate the fix works appropriately https://github.com/kubernetes/kubernetes/pull/47999

The existing method IsLikelyNotMountPoint purposely does not check mountpoints reliability (4c5b22d4c6/pkg/util/mount/mount_linux.go (L161)), since the number of mountpoints can be large. 4c5b22d4c6/pkg/util/mount/mount.go (L46)

This implementation changes the behavior for local storage to detect mountpoints reliably, and avoids changing the behavior for any other callers to a UnmountPath.

**Release note**:

```
Fixes bind-mount teardown failure with non-mount point Local volumes (issue https://github.com/kubernetes/kubernetes/issues/48331).
```
2017-07-11 20:35:29 -07:00
..
aws_ebs run hack/update-all 2017-06-22 11:31:03 -07:00
azure_dd run hack/update-all 2017-06-22 11:31:03 -07:00
azure_file run hack/update-all 2017-06-22 11:31:03 -07:00
cephfs Merge pull request #47241 from NickrenREN/cephfs-loglevel 2017-06-22 21:33:29 -07:00
cinder run hack/update-all 2017-06-22 11:31:03 -07:00
configmap run hack/update-all 2017-06-22 11:31:03 -07:00
downwardapi run hack/update-all 2017-06-22 11:31:03 -07:00
empty_dir run hack/update-all 2017-06-22 11:31:03 -07:00
fc run hack/update-all 2017-06-22 11:31:03 -07:00
flexvolume run hack/update-all 2017-06-22 11:31:03 -07:00
flocker run hack/update-all 2017-06-22 11:31:03 -07:00
gce_pd run hack/update-all 2017-06-22 11:31:03 -07:00
git_repo run hack/update-all 2017-06-22 11:31:03 -07:00
glusterfs Merge pull request #47647 from humblec/glusterfs-unused-var 2017-06-26 11:41:01 -07:00
host_path run hack/update-all 2017-06-22 11:31:03 -07:00
iscsi Merge pull request #47619 from mtanino/iscsi-remove-redundant-nil-check 2017-06-29 14:05:24 -07:00
local Fixes bind-mount teardown failure with non-mount point Local volumes 2017-07-11 17:19:58 -04:00
nfs run hack/update-all 2017-06-22 11:31:03 -07:00
photon_pd run hack/update-all 2017-06-22 11:31:03 -07:00
portworx run hack/update-all 2017-06-22 11:31:03 -07:00
projected run hack/update-all 2017-06-22 11:31:03 -07:00
quobyte Make the Quota creation optional 2017-06-29 13:12:24 +02:00
rbd Merge pull request #45805 from weiwei04/ceph-imageformat-2 2017-06-23 16:43:37 -07:00
scaleio run hack/update-all 2017-06-22 11:31:03 -07:00
secret run hack/update-all 2017-06-22 11:31:03 -07:00
storageos run hack/update-all 2017-06-22 11:31:03 -07:00
testing run hack/update-all 2017-06-22 11:31:03 -07:00
util Fixes bind-mount teardown failure with non-mount point Local volumes 2017-07-11 17:19:58 -04:00
validation do not allow backsteps in host volume plugin 2017-06-16 16:48:24 -04:00
vsphere_volume run hack/update-all 2017-06-22 11:31:03 -07:00
BUILD run hack/update-all 2017-06-22 11:31:03 -07:00
OWNERS Merge pull request #45295 from rootfs/vol-owner 2017-05-09 04:13:00 -07:00
doc.go
metrics_cached.go
metrics_du.go add volume timestamps 2017-03-02 15:01:59 -08:00
metrics_du_test.go Update metrics_du_test.go 2017-05-31 17:21:46 +05:30
metrics_errors.go
metrics_nil.go
metrics_nil_test.go
metrics_statfs.go add volume timestamps 2017-03-02 15:01:59 -08:00
metrics_statfs_test.go add volume timestamps 2017-03-02 15:01:59 -08:00
plugins.go run hack/update-all 2017-06-22 11:31:03 -07:00
plugins_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
util.go Add err judgment 2017-06-26 19:04:10 +08:00
util_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
volume.go run hack/update-all 2017-06-22 11:31:03 -07:00
volume_linux.go Remove all references to types.UnixUserID and types.UnixGroupID 2017-06-21 04:09:07 -07:00
volume_unsupported.go Remove all references to types.UnixUserID and types.UnixGroupID 2017-06-21 04:09:07 -07:00