Files
kubernetes/pkg/kubelet
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
..
2017-06-20 15:43:11 -07:00
2017-06-27 18:45:02 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-07-05 12:42:41 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-05-17 18:31:56 +08:00
2017-06-22 11:31:03 -07:00
2017-07-05 15:40:51 +08:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-09 10:16:40 +08:00
2017-06-09 10:16:40 +08:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 23:45:15 +02:00
2017-07-04 12:35:14 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-27 18:45:02 -07:00
2017-06-27 18:45:02 -07:00
2017-06-22 11:31:03 -07:00
2017-06-27 18:45:02 -07:00
2017-06-27 18:45:02 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 10:25:57 -07:00
2017-06-22 11:31:03 -07:00
2017-01-19 11:04:57 -08:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-01-11 09:09:48 -05:00
2017-06-22 10:25:57 -07:00
2017-06-22 10:25:57 -07:00
2017-06-22 11:31:03 -07:00