kubernetes/pkg/controller
Kubernetes Submit Queue e3969fed1d
Merge pull request #67825 from nikopen/master
Automatic merge from submit-queue (batch tested with PRs 67745, 67432, 67569, 67825, 67943). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

Fix VMWare VM freezing bug by reverting #51066

**What this PR does / why we need it**: kube-controller-manager, VSphere specific: When the controller tries to attach a Volume to Node A that is already attached to Node B, Node A freezes until the volume is attached.  Kubernetes continues to try to attach the volume as it thinks that it's 'multi-attachable' when it's not. #51066 is the culprit.


**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 https://github.com/vmware/kubernetes/issues/500 / https://github.com/vmware/kubernetes/issues/502 (same issue)

**Special notes for your reviewer**:

- Repro:

Vsphere installation, any k8s version from 1.8 and above, pod with attached PV/PVC/VMDK:

1. cordon the node which the pod is in
2. `kubectl delete po/[pod] --force --grace-period=0`
3. the pod is immediately rescheduled to a new node. Grab the new node from a `kubectl describe [pod]` and attempt to Ping it or SSH into it.
4. you can see that pings/ssh fail to reach the new node. `kubectl get node` shows it as 'NotReady'. New node is frozen until the volume is attached - usually 1 minute freeze for 1 volume in a low-load cluster, and many minutes more with higher loads and more volumes involved.

- Patch verification:

Tested a custom patched 1.9.10 kube-controller-manager with #51066 reverted and the above bug is resolved - can't repro it anymore. New node doesn't freeze at all, and attaching happens quite quickly, in a few seconds.


**Release note**:

``` 
Fix VSphere VM Freezing bug by reverting #51066 

```
2018-08-29 15:19:41 -07:00
..
bootstrap Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
certificates UT case of certificate_controller 2018-07-14 16:40:08 +08:00
cloud Add Labels to various OWNERS files 2018-08-21 13:59:08 -04:00
clusterroleaggregation Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
cronjob Add Labels to various OWNERS files 2018-08-21 13:59:08 -04:00
daemon Add Labels to various OWNERS files 2018-08-21 13:59:08 -04:00
deployment Add Labels to various OWNERS files 2018-08-21 13:59:08 -04:00
disruption Add Labels to various OWNERS files 2018-08-21 13:59:08 -04:00
endpoint K8s SCTP support implementation for the first pull request 2018-08-27 05:56:27 +00:00
garbagecollector Add sig/api-machinery label to apimachinery OWNERS files 2018-08-20 18:46:47 +05:30
history Merge pull request #67485 from linyouchong/pr-0816 2018-08-21 21:10:05 -07:00
job Merge pull request #66085 from liggitt/updatejob 2018-08-27 17:40:54 -07:00
namespace Add sig/api-machinery label to apimachinery OWNERS files 2018-08-20 18:46:47 +05:30
nodeipam Update external k8s.io/metrics imports 2018-07-02 10:44:18 +02:00
nodelifecycle fix an issue that scheduling doesn't respect NodeLost status of a node 2018-08-27 11:46:15 -07:00
podautoscaler Merge pull request #67067 from moonek/master 2018-08-28 15:08:01 -07:00
podgc add ns info for pod in log 2018-08-01 16:25:34 +08:00
replicaset Add Labels to various OWNERS files 2018-08-21 13:59:08 -04:00
replication Add Labels to various OWNERS files 2018-08-21 13:59:08 -04:00
resourcequota allow failed discovery on initial quota controller start 2018-08-17 11:42:54 -04:00
route Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
service K8s SCTP support implementation for the first pull request 2018-08-27 05:56:27 +00:00
serviceaccount Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
statefulset Add Labels to various OWNERS files 2018-08-21 13:59:08 -04:00
testutil Merge pull request #65052 from dbdd4us/master 2018-07-11 22:25:03 -07:00
ttl Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
util/node Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
volume Merge pull request #67825 from nikopen/master 2018-08-29 15:19:41 -07:00
.import-restrictions add import restrictions 2016-10-13 16:10:24 -07:00
BUILD Update Bazel 2018-08-15 13:34:31 +02:00
client_builder.go Deprecate ListWatchUntil, fix it and call places 2018-08-15 13:34:31 +02:00
controller_ref_manager.go Use apps/v1 in Deployment controller. 2018-05-22 13:42:10 -07:00
controller_ref_manager_test.go Use apps/v1 in Deployment controller. 2018-05-22 13:42:10 -07:00
controller_utils.go controller expectations for deletion can be met by 404 2018-08-24 09:03:51 -04:00
controller_utils_test.go controller expectations for deletion can be met by 404 2018-08-24 09:03:51 -04:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
lookup_cache.go Use fnv.New32a() in hash instead adler32 2017-02-15 14:03:54 +08:00
OWNERS remove some people from OWNERS so they don't get reviews anymore 2017-07-13 10:02:21 -07:00