kubernetes/pkg
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
..
api apimachinery: remove unneeded GetObjectKind() impls 2017-07-08 18:37:37 +02:00
apimachinery/tests Move pkg/apimachinery/test to apimachinery 2017-07-08 08:48:38 +08:00
apis apimachinery: remove unneeded GetObjectKind() impls 2017-07-08 18:37:37 +02:00
auth Only do string trim when it's necessary 2017-06-15 17:32:31 +08:00
bootstrap/api run hack/update-all 2017-06-22 11:31:03 -07:00
capabilities Fix comment for method SetForTests 2017-02-14 17:16:49 +08:00
client run hack/update-all 2017-06-22 11:31:03 -07:00
cloudprovider Use glog.*f when a format string is passed 2017-07-10 19:04:03 +08:00
controller apimachinery: remove unneeded GetObjectKind() impls 2017-07-08 18:37:37 +02:00
conversion Revert "Remove conversion package" 2017-01-22 15:41:06 -08:00
credentialprovider run hack/update-all 2017-06-22 11:31:03 -07:00
features Add priority to Kubernetes API 2017-06-26 13:43:19 -07:00
fieldpath Add Pod UID (metadata.uid) to downward API env var 2017-06-27 16:54:35 +08:00
fields move pkg/fields to apimachinery 2017-01-19 09:50:16 -05:00
generated Move pkg/apimachinery/test to apimachinery 2017-07-08 08:48:38 +08:00
hyperkube Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
kubeapiserver Merge pull request #47038 from yastij/DefaultExternalHost-for-registredCP 2017-06-27 08:29:25 -07:00
kubectl apimachinery: remove unneeded GetObjectKind() impls 2017-07-08 18:37:37 +02:00
kubelet Merge pull request #48402 from ianchakeres/local-storage-teardown-fix 2017-07-11 20:35:29 -07:00
kubemark Merge pull request #47783 from NickrenREN/containerruntime 2017-06-23 08:29:28 -07:00
labels add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
master remove dead code 2017-07-07 09:12:29 -04:00
metrics autogenerated 2017-04-14 10:40:57 -07:00
printers Merge pull request #46017 from xilabao/fix-print-of-generic-resources 2017-07-11 20:00:23 -07:00
probe Set default User-Agent on http probe 2017-06-21 10:50:33 -04:00
proxy Use glog.*f when a format string is passed 2017-07-10 19:04:03 +08:00
quota run hack/update-all 2017-06-22 11:31:03 -07:00
registry bulk delete of tpr packages 2017-07-05 11:02:23 -04:00
routes Merge pull request #45490 from deads2k/owners-01-extensions 2017-05-10 12:51:51 -07:00
runtime add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
security run hack/update-all 2017-06-22 11:31:03 -07:00
securitycontext run hack/update-all 2017-06-22 11:31:03 -07:00
serviceaccount don't accept delete tokens that are waiting to be reaped 2017-06-30 09:22:36 -04:00
ssh autogenerated 2017-04-14 10:40:57 -07:00
types add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
util Merge pull request #48402 from ianchakeres/local-storage-teardown-fix 2017-07-11 20:35:29 -07:00
version Convert go_binary linkstamp to x_defs 2017-06-08 14:59:55 -07:00
volume Merge pull request #48402 from ianchakeres/local-storage-teardown-fix 2017-07-11 20:35:29 -07:00
watch autogenerated 2017-04-14 10:40:57 -07:00
BUILD run hack/update-all 2017-06-22 11:31:03 -07:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00