Commit Graph

90266 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
3072d1e22e
Merge pull request #88036 from ii/promote-podtemplate-lifecycle
Promote: PodTemplate Lifecycle test - +3 conformance endpoint coverage
2020-04-07 15:27:43 -07:00
Michael Gasch
70c9f770d7 Add etcd WithRequireLeader option to API watches
Watches against etcd in the API server can hang forever if the etcd
cluster loses quorum, e.g. the majority of nodes crashes. This fix
improves responsiveness (detection and reaction time) of API server
watches against etcd in some rare (but still possible) edge cases so
that watches are terminated with `"etcdserver: no leader"
(ErrNoLeader)`.

Implementation behavior described by jingyih:

```
The etcd server waits until it cannot find a leader for 3 election
timeouts to cancel existing streams. 3 is currently a hard coded
constant. The election timeout defaults to 1000ms.

If the cluster is healthy, when the leader is stopped, the leadership
transfer should be smooth. (leader transfers its leadership before
stopping). If leader is hard killed, other servers will take an election
timeout to realize leader lost and start campaign.
```

For further details, discussion and validation see
https://github.com/kubernetes/kubernetes/issues/89488#issuecomment-606491110
and https://github.com/etcd-io/etcd/issues/8980.

Closes: https://github.com/kubernetes/kubernetes/issues/89488

Signed-off-by: Michael Gasch <mgasch@vmware.com>
2020-04-07 22:42:08 +02:00
Kubernetes Prow Robot
007f7ae7dc
Merge pull request #89912 from ahg-g/ahg-fwk
Move scheduler's NodeInfo and Listers types to framework pkg
2020-04-07 12:49:57 -07:00
Kubernetes Prow Robot
f21bd9efb9
Merge pull request #89745 from johnbelamaric/kubeconform-cleanup
Various cleanup for the kubeconform command
2020-04-07 12:49:44 -07:00
David Eads
45c2f4534c add flag check to ensure that flowcontrol API is present 2020-04-07 15:08:50 -04:00
Aldo Culquicondor
e75b5dcfe4 Skip updating cache on pod update if the node was deleted
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-04-07 13:24:42 -04:00
Kubernetes Prow Robot
46b2891089
Merge pull request #89771 from dims/avoid-panic-when-reporting-error-in-conformance-tests
Avoid panic when reporting error in conformance test
2020-04-07 08:31:44 -07:00
wojtekt
101221be33 Stop relying on default conversion in node e2e tests 2020-04-07 17:19:41 +02:00
wojtekt
466acf62e3 Move unstructured test to better place 2020-04-07 17:19:26 +02:00
wojtekt
248a75f9f4 Stop relying on default conversions for metav1beta1 2020-04-07 17:19:00 +02:00
louisgong
d6ea9d7c4c remove duplicate ipvs check 2020-04-07 23:12:09 +08:00
Francesco Romani
623587ec8b cpumanager: test: add missing helper
add back the missing AssertStateEqual helper;
it is needed by some tests we still want to run.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2020-04-07 16:59:07 +02:00
Abdullah Gharaibeh
a5d8172715 move nodeinfo type to framework pkg 2020-04-07 10:25:24 -04:00
Davanum Srinivas
f7e7621395
Avoid panic when reporting error in conformance test
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-07 08:37:02 -04:00
Kubernetes Prow Robot
a7f43a7203
Merge pull request #89421 from mm4tt/disabled_for_large_cluster
Remove the 'DisabledForLargeClusters' tags from LB network tests.
2020-04-07 05:03:44 -07:00
Francesco Romani
be0fe3df9b cpumanager: drop old custom file backend
The cpumanager file-based state backend was obsoleted since few
releases, aving the cpumanager moved to the checkpointmanager common
infrastructure.
The old test checking compatibility to/from the old format is
also no longer needed, because the checkpoint format is stable
(see
https://github.com/kubernetes/kubernetes/tree/master/pkg/kubelet/checkpointmanager).

Signed-off-by: Francesco Romani <fromani@redhat.com>
2020-04-07 13:24:48 +02:00
Patrick Ohly
48f8e398fb mock tests: remove redundant wrapping of error
The "error waiting for expected CSI calls" is redundant because it's
immediately followed by checking that error with:

   framework.ExpectNoError(err, "while waiting for all CSI calls")
2020-04-07 13:09:31 +02:00
Patrick Ohly
2550051f3b mock tests: add timeout
The for loop that waited for the signal to delete pod had no timeout,
so if something went wrong, it would wait for the entire test suite to
time out.
2020-04-07 13:09:31 +02:00
Patrick Ohly
f117849582 mock tests: ResourceExhausted error handling in external-provisioner
The mock driver gets instructed to return a ResourceExhausted error
for the first CreateVolume invocation via the storage class
parameters.

How this should be handled depends on the situation: for normal
volumes, we just want external-scheduler to retry. For late binding,
we want to reschedule the pod. It also depends on topology support.
2020-04-07 13:09:31 +02:00
caiweidong
bbaa76c8f5 Expose scheduler metric register function to make it possible for plugins to use it 2020-04-07 19:07:30 +08:00
Patrick Ohly
367a23e4d9 mock tests: remove redundant retrieval of log output
The code became obsolete with the introduction of parseMockLogs
because that will retrieve the log itself. For debugging of a running
test the normal pod output logging is sufficient.
2020-04-07 13:07:09 +02:00
Patrick Ohly
d06589e4b6 mock tests: less verbose log output checking
parseMockLogs is called potentially multiple times while waiting for
output. Dumping all CSI calls each time is quite verbose and
repetitive. To verify what the driver has done already, the normal
capturing of the container log can be used instead:

csi-mockplugin-0/mock@127.0.0.1: gRPCCall: {"Method":"/csi.v1.Node/NodePublishVolume","Request"...
2020-04-07 13:07:09 +02:00
Morten Hauberg
5fe57c6148
Remove double kubectl from output 2020-04-07 12:54:26 +02:00
Kubernetes Prow Robot
15bb54c2d2
Merge pull request #89041 from jsafrane/stage-error-tests
Add NodeStage error tests
2020-04-07 03:25:57 -07:00
Kubernetes Prow Robot
41856db7b8
Merge pull request #88270 from brianpursley/duration-2y0d
Add unit tests for human readable duration functions
2020-04-07 03:25:43 -07:00
Kubernetes Prow Robot
38f0a8bc74
Merge pull request #89652 from liggitt/relist-timeout
Fix client watch reestablishment handling of client-side timeouts
2020-04-07 01:15:44 -07:00
Kubernetes Prow Robot
4c81edbb41
Merge pull request #89905 from oomichi/DescribeIng
Move DescribeIng() into e2eingress
2020-04-06 20:29:44 -07:00
Kubernetes Prow Robot
4ae223fbff
Merge pull request #84904 from clarklee92/FixShellCheck
Fix shell check
2020-04-06 19:09:58 -07:00
Kubernetes Prow Robot
667e028f38
Merge pull request #83378 from ii/promote-pod-replicaset-verification
Promote pod PreemptionExecutionPath verification - +3 conformance endpoint coverage
2020-04-06 19:09:43 -07:00
Kubernetes Prow Robot
871ca4b2a7
Merge pull request #89902 from wojtek-t/ilb_for_large_clusters
Fix setting up internal load balancer for GCE
2020-04-06 17:47:57 -07:00
Kubernetes Prow Robot
cf144eb485
Merge pull request #89656 from dashpole/json_flag
specify in the flag help text that --enable-cadvisor-json-endpoints d…
2020-04-06 17:47:48 -07:00
Kubernetes Prow Robot
ac40660952
Merge pull request #89556 from smarterclayton/remove_startup_script
test: Remove final user of startup-script image
2020-04-06 17:47:34 -07:00
Kubernetes Prow Robot
cabf5d1cdc
Merge pull request #89350 from SataQiu/fix-kube-proxy-20200323
kube-proxy: treat failure to bind to a port as fatal
2020-04-06 17:47:20 -07:00
Kubernetes Prow Robot
87966c39f1
Merge pull request #89890 from fedepaol/useagnhost
Use agnhost version 2.13
2020-04-06 15:42:32 -07:00
Kubernetes Prow Robot
4b56705883
Merge pull request #89713 from hprateek43/channel_migration
Internal channels for scheduler
2020-04-06 15:42:23 -07:00
Kubernetes Prow Robot
037db1cb6c
Merge pull request #89687 from dims/update-docker-dependency
Update docker dependency and remove deprecated method use
2020-04-06 15:42:14 -07:00
Kubernetes Prow Robot
8cdf21ab4c
Merge pull request #86409 from sshukun/fix-golint
Fix go-lint issues in package pkg/kubelet/checkpointmanager/testing/example_checkpoint_formats/v1
2020-04-06 15:42:01 -07:00
Kubernetes Prow Robot
0d8b4b5df4
Merge pull request #85994 from coderanger/patch-1
Tiny typo in a comment.
2020-04-06 15:41:47 -07:00
Kubernetes Prow Robot
f8176abe43
Merge pull request #89858 from tedyu/api-svr-err-etcd
kube-apiserver should exit with error if not able to connect to etcd
2020-04-06 13:48:13 -07:00
Kubernetes Prow Robot
9c3b5887d2
Merge pull request #89821 from wojtek-t/cleanup_apimachinery_tests
Cleanup apimachinery tests and stop relying on default conversions
2020-04-06 13:48:00 -07:00
Kubernetes Prow Robot
9441df3aad
Merge pull request #89808 from fuweid/close-resize-chan
remotecommand: close resize channel for notification
2020-04-06 13:47:46 -07:00
Kenichi Omichi
2f5f16004d Move DescribeIng() into e2eingress
The function is only for e2e ingress test, it is not necessary to
keep the function in e2e test core framework.
2020-04-06 20:01:55 +00:00
Kubernetes Prow Robot
64d75b3bad
Merge pull request #89787 from oomichi/NodeUpgrade
Move NodeUpgrade() into GCP e2e tests
2020-04-06 11:20:03 -07:00
Kubernetes Prow Robot
b984f59fa3
Merge pull request #89735 from rosti/kubeadm-fix-bootstrap-wait
kubeadm join: Properly wait for TLS bootstrapping
2020-04-06 11:19:48 -07:00
wojtekt
c6f6972958 Fix GCE ILB for large clusters 2020-04-06 20:17:12 +02:00
Mayank Gaikwad
7aa94a6549 Promote e2e verifying service's session affinity behaviours 2020-04-06 21:42:22 +05:30
wojtekt
3fb80a6d82 Fix default conversion for pkg/runtime tests 2020-04-06 18:07:10 +02:00
Ted Yu
8d90805c4b kube-apiserver should exit with error if not able to connect to etcd
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-06 08:47:15 -07:00
Wei Fu
d2b59f10c5 remotecommand: close resize channel for notification
Remotecommand package should notify executor by closing resizeChan.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2020-04-06 23:32:23 +08:00
Andrew Sy Kim
2e56866c97 move apparmor annotation constants to k8s.io/api/core/v1
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-04-06 10:22:04 -04:00