Commit Graph

3855 Commits (988359d0fe03d8a65fb21a57740a11206768ba0b)

Author SHA1 Message Date
k8s-merge-robot 6a18fbe6af Merge pull request #27019 from girishkalele/nethealth2saltbase
Automatic merge from submit-queue

Add nethealth container to prepull manifest
2016-06-17 02:15:59 -07:00
saadali d8ad98b3bb Remove PD tests out of flaky 2016-06-16 20:14:28 -07:00
Matt Liggett 6ae801f5b8 Re-work the DNS part of the test for #26762
- Dropped the regex test and just test for nslookup exiting 0.
- Moved more setup into BeforeEach and used nested Context for non-local
  case.
- Poll inside the container using a bash loop.
- Aim for less console noise unless something goes wrong.
- Commented out the tests trying to verify that a DNS name is absent.
2016-06-16 18:13:06 -07:00
k8s-merge-robot d82f3bf305 Merge pull request #27561 from nikhiljindal/fixFedTest
Automatic merge from submit-queue

Adding a wait for federation apiserver to be ready in e2e tests

Ref #26762

@kubernetes/sig-cluster-federation @mml
2016-06-16 17:10:05 -07:00
k8s-merge-robot b41405ed22 Merge pull request #27480 from mml/fed-service-clusterip
Automatic merge from submit-queue

Clear ClusterIP in the local service before comparison.

For #26762
2016-06-16 17:09:56 -07:00
k8s-merge-robot 8a89ea6058 Merge pull request #27568 from lavalamp/faster
Automatic merge from submit-queue

Make unit tests faster
2016-06-16 16:11:05 -07:00
nikhiljindal ec6543e1e2 Adding a wait for federation apiserver to be ready in e2e tests 2016-06-16 15:34:45 -07:00
k8s-merge-robot 3c7f70543b Merge pull request #27364 from gmarek/schedulerPredicates
Automatic merge from submit-queue

Fix SchedulerPredictes resources test

Fix #27115 (the part that's not a dupe).

cc @fejta
2016-06-16 14:45:38 -07:00
Daniel Smith 8af08f90b5 remove unused prefix code, fix comment 2016-06-16 14:29:40 -07:00
k8s-merge-robot 0856e1dd43 Merge pull request #27390 from mml/fed-service-type
Automatic merge from submit-queue

Compare v1.Service to v1.Service.
2016-06-16 12:45:00 -07:00
k8s-merge-robot a448313f01 Merge pull request #27188 from rootfs/pd-fix-flakey
Automatic merge from submit-queue

in each pd test, create and delete the pod for every iteration to give new pod name for exec

fix #26141
based on chat with @ncdc

The following is a snapshot of the log. Each iteration now has a new Pod name
```text
[It] should schedule a pod w/two RW PDs both mounted to one container, write to PD, verify contents, delete pod, recreate pod, verify contents, and repeat in rapid succession [Slow] [Flaky]
  /srv/dev/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/pd.go:277
STEP: creating PD1
Jun 10 15:55:45.878: INFO: Successfully created a new PD: "rootfs-e2e-c8b82df9-2f23-11e6-a5a0-b8ca3a62792c".
STEP: creating PD2
Jun 10 15:55:49.794: INFO: Successfully created a new PD: "rootfs-e2e-cb135362-2f23-11e6-a5a0-b8ca3a62792c".
Jun 10 15:55:49.794: INFO: PD Read/Writer Iteration #0
STEP: submitting host0Pod to kubernetes
W0610 15:55:49.860308   17282 request.go:347] Field selector: v1 - pods - metadata.name - pd-test-cd68f34b-2f23-11e6-a5a0-b8ca3a62792c: need to check if this is versioned correctly.
STEP: writing a file in the container
Jun 10 15:56:09.792: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-cd68f34b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- /bin/sh -c echo '988876932586416926' > '/testpd1/tracker0''
Jun 10 15:56:12.003: INFO: Wrote value: "988876932586416926" to PD1 ("rootfs-e2e-c8b82df9-2f23-11e6-a5a0-b8ca3a62792c") from pod "pd-test-cd68f34b-2f23-11e6-a5a0-b8ca3a62792c" container "mycontainer"
STEP: writing a file in the container
Jun 10 15:56:12.003: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-cd68f34b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- /bin/sh -c echo '8414937992264649637' > '/testpd2/tracker0''
Jun 10 15:56:13.170: INFO: Wrote value: "8414937992264649637" to PD2 ("rootfs-e2e-cb135362-2f23-11e6-a5a0-b8ca3a62792c") from pod "pd-test-cd68f34b-2f23-11e6-a5a0-b8ca3a62792c" container "mycontainer"
STEP: reading a file in the container
Jun 10 15:56:13.170: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-cd68f34b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker0'
Jun 10 15:56:14.325: INFO: Read file "/testpd1/tracker0" with content: 988876932586416926

STEP: reading a file in the container
Jun 10 15:56:14.325: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-cd68f34b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker0'
Jun 10 15:56:15.590: INFO: Read file "/testpd2/tracker0" with content: 8414937992264649637

STEP: deleting host0Pod
Jun 10 15:56:15.841: INFO: PD Read/Writer Iteration #1
STEP: submitting host0Pod to kubernetes
W0610 15:56:15.905485   17282 request.go:347] Field selector: v1 - pods - metadata.name - pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c: need to check if this is versioned correctly.
STEP: reading a file in the container
Jun 10 15:56:16.832: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker0'
Jun 10 15:56:18.132: INFO: Read file "/testpd1/tracker0" with content: 988876932586416926

STEP: reading a file in the container
Jun 10 15:56:18.132: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker0'
Jun 10 15:56:19.354: INFO: Read file "/testpd2/tracker0" with content: 8414937992264649637

STEP: writing a file in the container
Jun 10 15:56:19.354: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- /bin/sh -c echo '7639503234625274799' > '/testpd1/tracker1''
Jun 10 15:56:20.526: INFO: Wrote value: "7639503234625274799" to PD1 ("rootfs-e2e-c8b82df9-2f23-11e6-a5a0-b8ca3a62792c") from pod "pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c" container "mycontainer"
STEP: writing a file in the container
Jun 10 15:56:20.526: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- /bin/sh -c echo '7400445987108171911' > '/testpd2/tracker1''
Jun 10 15:56:21.694: INFO: Wrote value: "7400445987108171911" to PD2 ("rootfs-e2e-cb135362-2f23-11e6-a5a0-b8ca3a62792c") from pod "pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c" container "mycontainer"
STEP: reading a file in the container
Jun 10 15:56:21.694: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker0'
Jun 10 15:56:22.904: INFO: Read file "/testpd1/tracker0" with content: 988876932586416926

STEP: reading a file in the container
Jun 10 15:56:22.905: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker0'
Jun 10 15:56:24.080: INFO: Read file "/testpd2/tracker0" with content: 8414937992264649637

STEP: reading a file in the container
Jun 10 15:56:24.081: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker1'
Jun 10 15:56:25.290: INFO: Read file "/testpd1/tracker1" with content: 7639503234625274799

STEP: reading a file in the container
Jun 10 15:56:25.290: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-dcef71e1-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker1'
Jun 10 15:56:26.491: INFO: Read file "/testpd2/tracker1" with content: 7400445987108171911

STEP: deleting host0Pod
Jun 10 15:56:26.756: INFO: PD Read/Writer Iteration #2
STEP: submitting host0Pod to kubernetes
W0610 15:56:26.821828   17282 request.go:347] Field selector: v1 - pods - metadata.name - pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c: need to check if this is versioned correctly.
STEP: reading a file in the container
Jun 10 15:56:27.898: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker1'
Jun 10 15:56:29.096: INFO: Read file "/testpd1/tracker1" with content: 7639503234625274799

STEP: reading a file in the container
Jun 10 15:56:29.096: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker1'
Jun 10 15:56:30.325: INFO: Read file "/testpd2/tracker1" with content: 7400445987108171911

STEP: reading a file in the container
Jun 10 15:56:30.325: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker0'
Jun 10 15:56:31.528: INFO: Read file "/testpd1/tracker0" with content: 988876932586416926

STEP: reading a file in the container
Jun 10 15:56:31.529: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker0'
Jun 10 15:56:32.972: INFO: Read file "/testpd2/tracker0" with content: 8414937992264649637

STEP: writing a file in the container
Jun 10 15:56:32.972: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- /bin/sh -c echo '1846555975530999997' > '/testpd1/tracker2''
Jun 10 15:56:34.157: INFO: Wrote value: "1846555975530999997" to PD1 ("rootfs-e2e-c8b82df9-2f23-11e6-a5a0-b8ca3a62792c") from pod "pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c" container "mycontainer"
STEP: writing a file in the container
Jun 10 15:56:34.157: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- /bin/sh -c echo '2775947264799611726' > '/testpd2/tracker2''
Jun 10 15:56:35.661: INFO: Wrote value: "2775947264799611726" to PD2 ("rootfs-e2e-cb135362-2f23-11e6-a5a0-b8ca3a62792c") from pod "pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c" container "mycontainer"
STEP: reading a file in the container
Jun 10 15:56:35.662: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker0'
Jun 10 15:56:36.868: INFO: Read file "/testpd1/tracker0" with content: 988876932586416926

STEP: reading a file in the container
Jun 10 15:56:36.868: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker0'
Jun 10 15:56:38.062: INFO: Read file "/testpd2/tracker0" with content: 8414937992264649637

STEP: reading a file in the container
Jun 10 15:56:38.062: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker1'
Jun 10 15:56:39.221: INFO: Read file "/testpd1/tracker1" with content: 7639503234625274799

STEP: reading a file in the container
Jun 10 15:56:39.221: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker1'
Jun 10 15:56:40.397: INFO: Read file "/testpd2/tracker1" with content: 7400445987108171911

STEP: reading a file in the container
Jun 10 15:56:40.397: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd1/tracker2'
Jun 10 15:56:41.584: INFO: Read file "/testpd1/tracker2" with content: 1846555975530999997

STEP: reading a file in the container
Jun 10 15:56:41.585: INFO: Running '/srv/dev/kubernetes/_output/local/bin/linux/amd64/kubectl exec --namespace=e2e-tests-pod-disks-2tvm2 pd-test-e370dd2b-2f23-11e6-a5a0-b8ca3a62792c -c=mycontainer -- cat /testpd2/tracker2'
Jun 10 15:56:42.800: INFO: Read file "/testpd2/tracker2" with content: 2775947264799611726

STEP: deleting host0Pod
```

@saad-ali
2016-06-16 12:44:56 -07:00
Piotr Szczesniak 8fff5319db Bumped Heapster to v1.1.0 2016-06-16 20:41:28 +02:00
Prashanth Balasubramanian da6f964be4 Rewrite ingress e2es 2016-06-16 11:28:06 -07:00
Avesh Agarwal 78e833e7bc Add pod status and reason when there are remaining pods. 2016-06-16 14:09:24 -04:00
Girish Kalele ee7ca66dba Add nethealth prepull container output to e2e run logs 2016-06-16 11:03:09 -07:00
k8s-merge-robot 3ba5816e46 Merge pull request #27536 from mwielgus/log-np-del
Automatic merge from submit-queue

Log node-pool deletion in cluster autoscaler tests

cc: @piosz @jszczepkowski
2016-06-16 10:55:21 -07:00
k8s-merge-robot d7d8d2e518 Merge pull request #27504 from nikhiljindal/debugfederationTests
Automatic merge from submit-queue

Dumping logs of federation pods (federation-apiserver, federation-controller-manager) on e2e test failure

Ref https://github.com/kubernetes/kubernetes/issues/26762

This should help with debugging failures.
Right now there is no way to access those logs.

@kubernetes/sig-cluster-federation @colhom
2016-06-16 10:55:16 -07:00
k8s-merge-robot cec153c915 Merge pull request #27488 from bprashanth/ing_e2e_fix
Automatic merge from submit-queue

Call NewFramework constructor instead of hand creating framework.

https://github.com/kubernetes/kubernetes/issues/27486, probably because we defined a new clientConfigGetter for node e2es and this test was hand creating the framework.
2016-06-16 10:55:12 -07:00
k8s-merge-robot 947f60843e Merge pull request #27481 from mml/fed-nslookup
Automatic merge from submit-queue

fix nslookup invocation

The old way with 'sh -c' was not correct.

For #26762
2016-06-16 10:55:08 -07:00
Jing Xu d8eedd5404 Increase timeout for testing PD create/delete.
fix #26795 for releasev1.1
2016-06-16 09:57:37 -07:00
Jon Cope 07ffe9513b Overhauled pv e2e test to reflect common lifecycle 2016-06-16 10:00:40 -05:00
Marcin Wielgus c4787225ee Log node-pool deletion in cluster autoscaler tests 2016-06-16 14:01:24 +02:00
Marcin Wielgus 32b248fdbc More debug in Cluster Autoscaler e2e test 2016-06-16 12:00:55 +02:00
Jan Safranek 26f90d2099 Add integration test for provisioning/deleting of many PVs.
The test is configurable by KUBE_INTEGRATION_PV_OBJECTS for load tests,
100 objects are created by default.
2016-06-16 10:14:49 +02:00
Matt Liggett adbd4d8029 Clear ClusterIP in the local service before comparison. 2016-06-15 17:17:55 -07:00
nikhiljindal ca22a28fff Dumping logs of federation pods on test failure 2016-06-15 17:07:05 -07:00
Daniel Smith 0c09190210 Merge pull request #27411 from nikhiljindal/timeout
federation-apiserver test: Increasing timeout for clusters to be ready
2016-06-15 15:41:29 -07:00
Daniel Smith 571c94a8f0 Merge pull request #27407 from nikhiljindal/fedAPITest
federation-apiserver test: Cleaning up clusters after the test is run
2016-06-15 15:41:04 -07:00
Daniel Smith f9ae3a1a2a Merge pull request #27457 from mml/federation-service-secrets
One more place we need a secret.
2016-06-15 15:40:34 -07:00
Prashanth Balasubramanian a2387b10cf Call NewFramework constructor instead of hand creating framework. 2016-06-15 15:12:49 -07:00
Matt Liggett 2c35ce6b8f fix nslookup invocation 2016-06-15 14:33:31 -07:00
Matt Liggett 4f388d8aad Compare v1.Service to v1.Service. 2016-06-15 12:49:45 -07:00
k8s-merge-robot 6209b1b60c Merge pull request #27433 from jszczepkowski/master
Automatic merge from submit-queue

Fixed e2e gke test "scale up correct target pool".

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()

Fixed e2e gke test "scale up correct target pool" by adding creation of
cluster autoscaler for the new pool.
2016-06-15 12:17:01 -07:00
k8s-merge-robot 12b1e4a1e6 Merge pull request #26801 from saad-ali/mountUnmountRedesign
Automatic merge from submit-queue

Kubelet Volume Attach/Detach/Mount/Unmount Redesign

This PR redesigns the Volume Attach/Detach/Mount/Unmount in Kubelet as proposed in https://github.com/kubernetes/kubernetes/issues/21931

```release-note
A new volume manager was introduced in kubelet that synchronizes volume mount/unmount (and attach/detach, if attach/detach controller is not enabled).

This eliminates the race conditions between the pod creation loop and the orphaned volumes loops. It also removes the unmount/detach from the `syncPod()` path so volume clean up never blocks the `syncPod` loop.
```
2016-06-15 12:16:53 -07:00
Euan Kemp e50a821aa8 e2e: Skip attach tests for rkt runtime 2016-06-15 11:50:58 -07:00
Euan Kemp d8d63be2dd e2e: Skip init container tests under rkt runtime 2016-06-15 11:50:58 -07:00
Euan Kemp fb56095683 e2e: Add container runtime flag 2016-06-15 11:50:58 -07:00
Matthew Wong 327210c2a3 Add integration test for binding PVs using label selectors 2016-06-15 14:34:34 -04:00
Matt Liggett 8a48aad07a One more place we need a secret. 2016-06-15 11:32:04 -07:00
k8s-merge-robot 9a8aabe7cc Merge pull request #27391 from nikhiljindal/fixFedName
Automatic merge from submit-queue

federation: choosing a default federation name in test instead of failing

The tests are failing right now:
http://kubekins.dls.corp.google.com/job/kubernetes-e2e-gce-federation/

```
[k8s.io] Service [Feature:Federation] should be able to discover a non-local federated service

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/federated-service.go:130 Jun 14 12:40:35.091: FEDERATION_NAME environment variable must be set


[k8s.io] Service [Feature:Federation] should be able to discover a federated service

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/federated-service.go:130 Jun 14 12:40:40.802: FEDERATION_NAME environment variable must be set
```

This is to fix them.

cc @kubernetes/sig-cluster-federation @mml
2016-06-15 09:46:53 -07:00
saadali 542f2dc708 Introduce new kubelet volume manager
This commit adds a new volume manager in kubelet that synchronizes
volume mount/unmount (and attach/detach, if attach/detach controller
is not enabled).

This eliminates the race conditions between the pod creation loop
and the orphaned volumes loops. It also removes the unmount/detach
from the `syncPod()` path so volume clean up never blocks the
`syncPod` loop.
2016-06-15 09:34:08 -07:00
k8s-merge-robot 130341b5f1 Merge pull request #27429 from wojtek-t/fix_services_test
Automatic merge from submit-queue

Fix failures in up and down services in large clusters

Ref #26687
2016-06-15 08:39:25 -07:00
k8s-merge-robot 4c0bbe43aa Merge pull request #27416 from wojtek-t/longer_system_pods_timeout
Automatic merge from submit-queue

Make timeout for starting system pods configurable

Context: in 2000-node clusters (if only one node is big enough to fit heapster, which is our testing configuration), heapster won't be scheduled until that node has route. However, creating routes is pretty expensive and currently can take even 2 hours.

@zmerlynn @gmarek
2016-06-15 08:39:21 -07:00
Jerzy Szczepkowski f688165c5b Fixed e2e gke test "scale up correct target pool".
Fixed e2e gke test "scale up correct target pool" by adding creation of
cluster autoscaler for the new pool.
2016-06-15 16:35:36 +02:00
Wojciech Tyczynski 9961b8021b Fix failures in up and down services in large clusters 2016-06-15 16:09:46 +02:00
Piotr Szczesniak 51af487b5f Revert "Downward api node defaults" 2016-06-15 15:47:49 +02:00
gmarek 9cf3724ed6 WaitForRunningReady also waits for PodsSuccess 2016-06-15 15:09:02 +02:00
Piotr Szczesniak 3d09b99d2c Merge pull request #27423 from jszczepkowski/master
Changed constans to reduce hpa e2e test flakiness.
2016-06-15 13:01:39 +02:00
Jerzy Szczepkowski 86764ba4ce Changed constans to reduce hpa e2e test flakiness.
Changed constans to reduce hpa e2e test flakiness.
2016-06-15 11:33:50 +02:00
Marcin Wielgus 9b012a4d44 Turn off mitlinode pool test in GKE until it is fixed 2016-06-15 11:27:44 +02:00
Wojciech Tyczynski e0498ed76a Make timeout for starting system pods configurable 2016-06-15 11:25:42 +02:00
nikhiljindal 33291bd52a choosing a default federation name in test instead of failing 2016-06-14 23:55:05 -07:00
k8s-merge-robot 922facd652 Merge pull request #27303 from derekwaynecarr/downward_api_node_defaults
Automatic merge from submit-queue

Downward api node defaults

Fixes #27062

Replaces https://github.com/kubernetes/kubernetes/pull/27107
2016-06-14 22:53:03 -07:00
nikhiljindal 7f7842e657 Increasing timeout for clusters to be ready 2016-06-14 19:48:45 -07:00
nikhiljindal 912df9b55a Cleaning up clusters after federation apiserver test is run 2016-06-14 18:43:29 -07:00
k8s-merge-robot 364239a294 Merge pull request #27342 from Random-Liu/add-image-pulling-node-e2e
Automatic merge from submit-queue

Add image pulling node e2e

Fixes #27007.
Based on #27309, will rebase after #27309 gets merged.

This PR added all tests mentioned in #27007:
* Pull an image from invalid registry;
* Pull an invalid image from gcr;
* Pull an image from gcr;
* Pull an image from docker hub;
* Pull an image needs auth with/without secrets.

For the imagePullSecrets test, I created a new gcloud project "authenticated-image-pulling", and the service account in the code only has "Storage Object Viewer" permission.

/cc @pwittrock @vishh 

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-06-14 14:50:41 -07:00
k8s-merge-robot 5ba4b3f200 Merge pull request #27338 from fejta/node
Automatic merge from submit-queue

Add description to created node images

Make it a little easier to see who to contact about important node e2e images.
2016-06-14 13:43:44 -07:00
k8s-merge-robot 751f45b641 Merge pull request #27310 from ihmccreery/version-guard-port-forward
Automatic merge from submit-queue

Add kubectl version guard around kubectl port-forward

Fixes #26594 (once this gets backported to v1.2 and v1.3).
2016-06-14 13:43:40 -07:00
k8s-merge-robot abfe894385 Merge pull request #27301 from bprashanth/ps_dbg
Automatic merge from submit-queue

petset and volume debug messages

To help with https://github.com/kubernetes/kubernetes/issues/27299 https://github.com/kubernetes/kubernetes/issues/27058

simple enough that either reviewer can approve I guess.
2016-06-14 12:34:43 -07:00
Eric Chiang d13e351028 add unit and integration tests for rbac authorizer 2016-06-14 11:07:48 -07:00
k8s-merge-robot 2f4309d270 Merge pull request #27351 from jszczepkowski/e2e-gke-migs
Automatic merge from submit-queue

Added e2e test for cluster autoslaer for gke with multiple node-pools.

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()

Added e2e test for cluster autoslaer for gke with multiple node-pools.
2016-06-14 10:19:19 -07:00
Isaac Hollander McCreery fa9f6d7cd2 Add kubectl version guard around kubectl port-forward 2016-06-14 10:04:22 -07:00
derekwaynecarr 712860d55f Fix downward API for resource limits 2016-06-14 12:49:00 -04:00
gmarek aceb273ade Fix SchedulerPredictes resources test 2016-06-14 16:54:39 +02:00
Dr. Stefan Schimanski 3826d2598c Move seccomp annotation validation into api/validation 2016-06-14 14:58:32 +02:00
Jan Chaloupka d9f3e3c3ad e2e.framework.util.StartPods:
The number of pods to start must be non-zero.
Otherwise the function waits for pods forever if waitForRunning is true.
It the number of replicas is zero, panic so the mistake is heard all over the e2e realm.

Update all callers of StartPods to test for non-zero number of replicas.
2016-06-14 13:44:38 +02:00
k8s-merge-robot 970104df31 Merge pull request #27345 from wojtek-t/fix_unschedulable_nodes
Automatic merge from submit-queue

Fix panic in TestUnschedulableNodes

Fix #27344
2016-06-14 03:20:17 -07:00
Jerzy Szczepkowski 8891481246 Added e2e test for cluster autoslaer for gke with multiple node-pools.
Added e2e test for cluster autoslaer for gke with multiple node-pools.
2016-06-14 12:05:32 +02:00
k8s-merge-robot 7e2b523dce Merge pull request #27260 from nikhiljindal/dnsProvider
Automatic merge from submit-queue

Updating federation up scripts to work in non e2e setup

Ref: https://github.com/kubernetes/kubernetes.github.io/pull/656

Updating the federation up scripts so that they work as per steps in https://github.com/kubernetes/kubernetes.github.io/pull/656.

Changes are:
* Updating the default namespace to be "federation" instead of "federation-e2e"
* Updated the kubeconfig context to be named "federation-cluster" instead of "federated-context"
* Fixing federation-up so that FEDERATION_IMAGE_TAG is set even when federation-up is run without running `e2e.go --up`. e2e-up.sh sets it here: 6a388d4a0d/hack/e2e-internal/e2e-up.sh (L44).
* Adding a "missingkey=zero" option to template parser. Without this, the parser adds `"<no value>"` at the place of an env var that is not set. With this change, it instead replaces it with the corresponding zero value (for ex "" for strings). This is required for the FEDERATION_DNS_PROVIDER_CONFIG env var.

cc @kubernetes/sig-cluster-federation @colhom @mml
2016-06-14 02:13:44 -07:00
Wojciech Tyczynski 80d1ae7642 Fix panic in TestUnschedulableNodes 2016-06-14 11:05:07 +02:00
Random-Liu 89502d3c8c Add image pulling node e2e test. 2016-06-14 01:19:47 -07:00
Yu-Ju Hong 2b65b5a283 Node e2e: switch most of the tests to use the e2e framework
This commit switches the tests to use the e2e framework, so that namespace
creation/deletion is handled between tests.
2016-06-14 01:19:47 -07:00
Erick Fejta 25451a686c Add description to created node images 2016-06-13 22:41:30 -07:00
nikhiljindal 5a20112ec4 Adding test for cluster controller 2016-06-13 17:29:06 -07:00
nikhiljindal 9b2b763ab0 Fixing references to federated-context and federation-e2e 2016-06-13 16:43:55 -07:00
k8s-merge-robot 239f6273ad Merge pull request #26636 from madhusudancs/fed-svc-e2e
Automatic merge from submit-queue

Implement first set of federated service e2e tests.

These tests are untested and there is no guarantee that they work. The ongoing auth problems is blocking these e2es from being tested and upon @quinton-hoole's request I am submitting them now.

Only the last commit here needs review.

Depends on #26953

cc @nikhiljindal @colhom @mfanjie @kubernetes/sig-cluster-federation
2016-06-13 16:03:34 -07:00
goltermann 4b722d33aa Fixing timing issues with examples 2016-06-13 15:26:09 -07:00
k8s-merge-robot 8bcecac12f Merge pull request #27286 from Random-Liu/fix-node-problem-detector-test
Automatic merge from submit-queue

Make it blocks in NodeProblemDetector e2e test serial.

Fix #27276.

Move the 3 `It` blocks into 1 `It` block, so that the test itself is running serially. See https://github.com/kubernetes/kubernetes/issues/27276#issuecomment-225655308.

Mark P0 to match the priority of the issue. @dchen1107 

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-06-13 15:00:13 -07:00
Prashanth Balasubramanian 4e2f97a80e Add some logging around ro flag in GCE volume plugin 2016-06-13 13:55:49 -07:00
Prashanth Balasubramanian 90644d773b Add petset directory validation in e2e 2016-06-13 12:02:07 -07:00
k8s-merge-robot d9f788532f Merge pull request #27167 from euank/fix-node-e2e-coreos-kubelet-cgroup-detection
Automatic merge from submit-queue

Fix node e2e coreos kubelet cgroup detection

Fixes #26979 #26431 

The root issue, as best I can tell, is that cgroup detection does not work when the kubelet is started under an ssh session and the systemd `*Accounting` variables are set. I added additional logging and noted some differences in the cgroup slice names between those cadvisor returns and the kubelet detects for itself.
This difference does not occur if the kubelet is properly running under a unit. That environment is also a more common and sane environment.

See also discussion in #26903

cc @derekwaynecarr @vishh @pwittrock
2016-06-13 11:54:05 -07:00
Madhusudan.C.S 839d98adfb Address review comments. 2016-06-13 11:17:53 -07:00
Madhusudan.C.S c4dcb42078 Implement first set of federated service e2e tests.
Note that these tests are untested and there is no guarantee that they work.
The ongoing auth problems is blocking these e2es from being tested and upon
@quinton-hoole's request I am submitting them now.
2016-06-13 11:17:52 -07:00
Random-Liu 0d05ece797 Make it blocks in NodeProblemDetector e2e test serial. 2016-06-13 11:00:41 -07:00
k8s-merge-robot 7180b35535 Merge pull request #27279 from mwielgus/ca-e2e-fix-2
Automatic merge from submit-queue

Add pending pod check in cluster autoscaler e2e tests

The tests should wait until all pods are running before declaring a success and resizing the mig.

cc: @fgrzadkowski @piosz @jszczepkowski
2016-06-13 09:03:04 -07:00
k8s-merge-robot 913241c721 Merge pull request #27271 from jsafrane/integration-flake-2
Automatic merge from submit-queue

volume integration: wait for PVs before creating PVCs

The test should wait until all volumes are processed by volume controller (i.e. in the controller cache) before creating a PVC.

Without that, the "best" matching PV could not be in the cache and controller might bind the PVC to suboptiomal one.

This fixes integration test flake "Bind mismatch! Expected pvc-2 capacity 50000000000 but got pvc-2 capacity 52000000000".

Fixes #27179 (together with #26894)
2016-06-13 09:02:59 -07:00
k8s-merge-robot 1ed5342b35 Merge pull request #26894 from jsafrane/fix-integration-pv-flake
Automatic merge from submit-queue

Fix integration pv flakes

There are two fixes in this PR:
- run tests in separarate functions and use objects with different names, otherwise events from the beginning of the function are caught later when we watch for events of a different PV/PVC
- don't set PV.Spec.ClaimRef.UID of pre-bound PVs. PVs with UID set are considered as bound and they are deleted/recycled when appropriate PVC does not exists yet.

Fixes #26730 and probably also ~~#26894~~ #26256
2016-06-13 09:02:54 -07:00
Marcin Wielgus 5359e9ec91 Add pending pod check in cluster autoscaler e2e tests 2016-06-13 16:33:37 +02:00
k8s-merge-robot 0f72e21add Merge pull request #27130 from pwittrock/nodee2e
Automatic merge from submit-queue

Revert "Wait for arc.getArchive() to complete before running tests"

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()

This reverts commit c1d915df5b.

- Reverting this commit because it tried to fix a red herring.
2016-06-13 07:02:29 -07:00
Jan Safranek 248b4c3350 volume integration: wait for PVs before creating PVCs
The test should wait until all volumes are processed by volume controller (i.e.
in the controller cache) before creating a PVC.

Without that, the "best" matching PV could not be in the cache and controller
might bind the PVC to suboptiomal one.

This fixes integration test flake "Bind mismatch! Expected pvc-2 capacity
50000000000 but got pvc-2 capacity 52000000000".
2016-06-13 14:43:49 +02:00
k8s-merge-robot 6489abe8b4 Merge pull request #26953 from madhusudancs/fed-e2e-framework-clientset
Automatic merge from submit-queue

Add clientset support for federation e2e tests.

Only the last commit here needs review.

Depends on #26952.

cc @colhom @kubernetes/sig-cluster-federation

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-06-13 04:53:41 -07:00
Jerzy Szczepkowski eabe65cba4 Reduced flakiness of HPA e2e tests.
Reduced flakiness of HPA e2e tests.
2016-06-13 10:41:07 +02:00
gmarek 0adcc8ef1e Remove known metrics list 2016-06-13 10:37:21 +02:00
k8s-merge-robot 875a60d030 Merge pull request #27112 from mikedanese/run-unrun
Automatic merge from submit-queue

e2e: run empty_dir test we've been missing

otherwise it's just dead code, and this seemed unintentional
2016-06-13 00:31:43 -07:00
Daniel Smith 6e6ae452e5 Make each integration test use different prefix 2016-06-12 13:33:31 -07:00
k8s-merge-robot 6419b43a1f Merge pull request #27111 from mikedanese/err-check
Automatic merge from submit-queue

e2e: actually check error when we fail to GET the scheduled pod

and GET the pod before we try to gracefully delete it.
and add a debug log.

ref #26224
2016-06-12 12:42:26 -07:00
k8s-merge-robot 9a2ad73cee Merge pull request #22568 from abhgupta/abhgupta-dev
Automatic merge from submit-queue

Considering all nodes for the scheduler cache to allow lookups

Fixes the actual issue that led me to create https://github.com/kubernetes/kubernetes/issues/22554

Currently the nodes in the cache provided to the predicates excludes the unschedulable nodes using field level filtering for the watch results. This results in the above issue as the `ServiceAffinity` predicate uses the cached node list to look up the node metadata for a peer pod (another pod belonging to the same service). Since this peer pod could be currently hosted on a node that is currently unschedulable, the lookup could potentially fail, resulting in the pod failing to be scheduled.

As part of the fix, we are now including all nodes in the watch results and excluding the unschedulable nodes using `NodeCondition`

@derekwaynecarr PTAL
2016-06-11 12:22:46 -07:00
k8s-merge-robot 1b780157a2 Merge pull request #26856 from Random-Liu/flakeready
Automatic merge from submit-queue

shorten e2e_node test, fix pod ready test issue

Fix #25703, #25812.
I fixed https://github.com/kubernetes/kubernetes/pull/26070 and open this PR.

@liangchenye 

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-06-11 11:38:33 -07:00
k8s-merge-robot 76aa4fc0e6 Merge pull request #26831 from yujuhong/downard_api_test
Automatic merge from submit-queue

Port the downward api test to the node e2e suite

Also extend the framework to allow a custom client config loading function, so
that the node e2e suite can reuse the same framework across tests.

This fixes #26609

/cc @timstclair @pwittrock
2016-06-11 09:54:45 -07:00
k8s-merge-robot 911e84ed1e Merge pull request #26710 from sttts/sttts-fix-seccomp-annotations
Automatic merge from submit-queue

Move /seccomp/ into domain prefix in seccomp annotations

Fixes #26610.

/cc @mdshuai @ncdc @jfrazelle
2016-06-11 07:03:50 -07:00
k8s-merge-robot 584d6a1f94 Merge pull request #26648 from Random-Liu/add_node_problem_detector_e2e_test
Automatic merge from submit-queue

Add e2e test for node problem detector

Based on https://github.com/kubernetes/node-problem-detector/pull/12.

This PR added e2e test for node problem detector. It starts a node problem detector with test configuration, and test its functionality.

Question:
* Should this be a node e2e test or e2e test? 
* Should we mark this as Serial? The test should not affect other tests, but it will add a `TestConditon` in node conditions and remove in cleanup.

@dchen1107
/cc @kubernetes/sig-node 
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-06-11 06:21:40 -07:00
k8s-merge-robot a4b5f991e7 Merge pull request #27148 from janetkuo/io-timeout-sleep-and-talk
Automatic merge from submit-queue

In case of i/o timeout error in kubectl e2e, try talking to the server again after 2s before dying

Ref #26715

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-06-11 02:47:49 -07:00
k8s-merge-robot ede661b4af Merge pull request #27012 from janetkuo/reduce-pod-list
Automatic merge from submit-queue

Listing pods only once when getting pods for RS in deployment

Fixes #26834

1. Avoid ranging over RSes and then `List` pods of each RS. Instead, `List` pods of the deployment once, and then filter pods of each RS. 
2. Avoid using clientset to `List` pods in deployment controller. Use podStore instead. (TODO in some functions because the unit tests don't have podStore.)

@kubernetes/deployment 

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-06-10 20:40:22 -07:00
Dawn Chen 70c945a5ea Merge pull request #27166 from quinton-hoole/2016-06-09-add-secrets-to-fed-cluster-e2e-test
Add secret to Federation API Server e2e test.
2016-06-10 16:05:50 -07:00
Janet Kuo 13718846d8 In case of i/o timeout error in kubectl e2e, try talking to the server again after 2s before dying 2016-06-10 10:06:46 -07:00
Janet Kuo 764df2e096 Listing pods only once when getting pods for RS in deployment 2016-06-10 09:55:28 -07:00
Huamin Chen 100222ff31 in each pd test, create and delete the pod for every iteration to give exec the unique pod name
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-06-10 15:34:27 +00:00
Piotr Szczesniak 760c563c72 Merge pull request #27123 from jszczepkowski/hpa-e2e-fix3
Fixed GetGroupNodes method: wrong regexp function was used.
2016-06-10 15:02:39 +02:00
Wojciech Tyczynski 67ddac041f Move SelfLink test 2016-06-10 14:26:14 +02:00
Wojciech Tyczynski 43485a4eef Move APIVersions test 2016-06-10 14:24:08 +02:00
Wojciech Tyczynski 731409ee15 Merge pull request #27176 from kubernetes/revert-26188-test_main
Revert "Add a custom main instead of the standard test main, to reduce stack …"
2016-06-10 13:53:49 +02:00
k8s-merge-robot 8c88cbe74c Merge pull request #27143 from adityakali/localssd
Automatic merge from submit-queue

support for mounting local-ssds on GCI

This change adds support for mounting local ssds on GCI.
It updates the previous container-vm behavior as well to
match that for GCI nodes by mounting the local-ssds under
the same path (/mnt/disks/ssdN).

@vulpecula @roberthbailey @andyzheng0831 @kubernetes/goog-image
2016-06-10 04:05:21 -07:00
k8s-merge-robot c71fd7b1ae Merge pull request #27031 from sttts/sttts-flake-26955-pod-logs
Automatic merge from submit-queue

Flake 26955: portforwarding e2e: print logs when pod doesn't terminate

For more insights why flake #26955 happens.
2016-06-10 03:24:36 -07:00
Wojciech Tyczynski cfd8173f92 Revert "Add a custom main instead of the standard test main, to reduce stack …" 2016-06-10 11:49:42 +02:00
Madhusudan.C.S f7486d52ea Add clientset support for federation e2e tests. 2016-06-10 00:26:30 -07:00
k8s-merge-robot 7b22e426ea Merge pull request #27126 from wojtek-t/fix_intra_pod_test
Automatic merge from submit-queue

Make intra-pod networking test work in large clusters

Fix #27039

@zmerlynn
2016-06-09 23:31:40 -07:00
k8s-merge-robot abc06c9d73 Merge pull request #26913 from bprashanth/petset_e2e
Automatic merge from submit-queue

Improve petset e2es

Mainly
* scale petset to 0 and wait for volume provisioner to delete pvs so we don't leak them
* bake binaries into init[0] and cp into destination, instead of wgetting at runtime
* dump verbose debug output on failure

https://github.com/kubernetes/test-infra/pull/115, https://github.com/kubernetes/kubernetes/issues/26824
2016-06-09 23:31:36 -07:00
Euan Kemp 3d478a3fac e2e_node: Improve coreos update disable mechanism
The previous method would still allow updates to download which slowed
down tests due to the network / disk IO
2016-06-09 20:58:56 -07:00
Euan Kemp 34996f1b84 e2e_node: Correctly kill and log systemd kubelet 2016-06-09 20:58:56 -07:00
Euan Kemp b004122dfc Revert "Disable CoreOS image from node e2e testing."
This reverts commit 2494c77972.

The previous commit, which launches the kubelet under `systemd-run`,
fixes an error in detecting the kubelet's cgroup stats.

Fixes #26979
2016-06-09 19:35:57 -07:00
Euan Kemp 6303edb790 e2e_node: launch kubelet via systemd-run
This more closely mimics what the kubelet will usually have for
cgroups, and also fixes an issue with cgroup detection of it.

Fixes #26431
2016-06-09 19:35:37 -07:00
k8s-merge-robot 8c517e0aa7 Merge pull request #27135 from jlowdermilk/fix-upgrade-tests
Automatic merge from submit-queue

Fix GKE upgrade e2e util.

containers command group at HEAD no longer accepts --zone. Flag
has to be specified after subcommand group. Fix #27011
2016-06-09 18:32:53 -07:00
k8s-merge-robot adc55115a0 Merge pull request #27125 from wojtek-t/protobufs_in_nettest
Automatic merge from submit-queue

Change webserver binary to be usable in large clusters.

Ref #27039

@zmerlynn
2016-06-09 18:32:50 -07:00
Random-Liu f6f79a7d20 Add e2e test for node problem detector 2016-06-09 18:20:07 -07:00
Quinton Hoole 985c7e2608 Add secret to Federation API Server e2e test. 2016-06-09 18:14:43 -07:00
Prashanth Balasubramanian ff23a0e4fc Clarity and reliability fixes for petset e2es 2016-06-09 12:58:28 -07:00
Aditya Kali 4447c54682 support mounting local-ssds on GCI
This change adds support for mounting local ssds on GCI.
It updates the previous container-vm behavior as well to
match that for GCI nodes by mounting the local-ssds under
the same path (/mnt/disks/ssdN).
2016-06-09 11:30:36 -07:00
Jeff Lowdermilk 3567199432 Fix GKE upgrade e2e util.
containers command group at HEAD no longer accepts --zone. Flag
has to be specified after subcommand group.
2016-06-09 10:47:12 -07:00
Phillip Wittrock bd2e903b3b Revert "Wait for arc.getArchive() to complete before running tests"
This reverts commit c1d915df5b.

- Reverting this commit because it tried to fix a red herring.
2016-06-09 09:17:41 -07:00
Wojciech Tyczynski 12d1cc454c Change webserver binary to be usable in large clusters. 2016-06-09 16:01:01 +02:00
Wojciech Tyczynski 92cd2c6020 Make intra-pod networking test work in large clusters 2016-06-09 15:58:18 +02:00
Jerzy Szczepkowski f445d41497 Fixed GetGroupNodes method: wrong regexp function was used.
Fixed GetGroupNodes method: wrong regexp function was used. Should fix flakiness of "should add node to the particular mig" e2e test.
2016-06-09 14:34:50 +02:00
k8s-merge-robot dd345fbf89 Merge pull request #26494 from caesarxuchao/enable-watchCache-integration-tests
Automatic merge from submit-queue

Enable WatchCache in test/integration/ tests

We already run cmd/integration/ with watch cache on. We should also run tests in test/integration/ with watch cache on.

@wojtek-t @lavalamp
2016-06-09 04:55:47 -07:00
k8s-merge-robot c80f650b70 Merge pull request #26188 from brendandburns/test_main
Automatic merge from submit-queue

Add a custom main instead of the standard test main, to reduce stack …

Adds a custom test main handler (see: `TestMain` in https://golang.org/pkg/testing/ for details)

Partial fix for https://github.com/kubernetes/kubernetes/issues/25965

This does the standard timeout, but strips non-kubernetes stacks out of the stack trace (e.g. it filters things like:

```
goroutine 466 [IO wait, 7 minutes]:
net.runtime_pollWait(0x7fd74c4672c0, 0x72, 0xc821614000)
	/usr/local/go/src/runtime/netpoll.go:160 +0x60
net.(*pollDesc).Wait(0xc8215c21b0, 0x72, 0x0, 0x0)
	/usr/local/go/src/net/fd_poll_runtime.go:73 +0x3a
net.(*pollDesc).WaitRead(0xc8215c21b0, 0x0, 0x0)
	/usr/local/go/src/net/fd_poll_runtime.go:78 +0x36
net.(*netFD).Read(0xc8215c2150, 0xc821614000, 0x1000, 0x1000, 0x0, 0x7fd74c491050, 0xc820014058)
	/usr/local/go/src/net/fd_unix.go:250 +0x23a
net.(*conn).Read(0xc820a5a090, 0xc821614000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
	/usr/local/go/src/net/net.go:172 +0xe4
net/http.noteEOFReader.Read(0x7fd74c465258, 0xc820a5a090, 0xc8215f0068, 0xc821614000, 0x1000, 0x1000, 0x405773, 0x0, 0x0)
	/usr/local/go/src/net/http/transport.go:1687 +0x67
net/http.(*noteEOFReader).Read(0xc8215ae1a0, 0xc821614000, 0x1000, 0x1000, 0xc82159ad1d, 0x0, 0x0)
	<autogenerated>:284 +0xd0
bufio.(*Reader).fill(0xc8202a2b40)
	/usr/local/go/src/bufio/bufio.go:97 +0x1e9
bufio.(*Reader).Peek(0xc8202a2b40, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
	/usr/local/go/src/bufio/bufio.go:132 +0xcc
net/http.(*persistConn).readLoop(0xc8215f0000)
	/usr/local/go/src/net/http/transport.go:1073 +0x177
created by net/http.(*Transport).dialConn
	/usr/local/go/src/net/http/transport.go:857 +0x10a6
```

We may want to get even more aggressive in the future.

@kubernetes/sig-testing
2016-06-09 04:11:01 -07:00
Mike Danese 9812994b08 e2e: run empty_dir test we've been missing 2016-06-08 21:09:29 -07:00
Mike Danese 03fd3b6189 e2e: actually check error when we fail to GET the scheduled pod
and GET the pod before we try to gracefully delete it.
2016-06-08 20:58:14 -07:00
Dawn Chen a51fdbb152 Revert "Only build essential targets for node e2e" 2016-06-08 20:02:09 -07:00
Erick Fejta c1d915df5b Wait for arc.getArchive() to complete before running tests 2016-06-08 19:07:07 -07:00
Dawn Chen 8d510898f0 Merge pull request #26830 from timstclair/node-e2e-build
Only build essential targets for node e2e
2016-06-08 17:23:21 -07:00
Abhishek Gupta f12f7c51ce Modifying scheduler integration test for unschedulable nodes 2016-06-08 14:44:09 -07:00
k8s-merge-robot e79f046990 Merge pull request #27041 from wojtek-t/unschedulable_nodes
Automatic merge from submit-queue

Extend logging for UnschedulableNodes

Ref #25845
2016-06-08 14:25:32 -07:00
k8s-merge-robot 525a56eff8 Merge pull request #26832 from pwittrock/node-e2e-makefile
Automatic merge from submit-queue

Node e2e Makefile support for running remote tests against kubernetes…

Fixes #26665

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()

…-node-e2e-images.
2016-06-08 14:25:28 -07:00
k8s-merge-robot 99c8d10a28 Merge pull request #26803 from derekwaynecarr/fix_26319
Automatic merge from submit-queue

Move quota usage testing for loadbalancers into unit tests

Fixes https://github.com/kubernetes/kubernetes/issues/26319

* moved testing for node port and load balancer usage in quota to unit tests
* remove node port and node port -> loadbalancer service testing out of e2e
 * covered already in replenishment_controller_test scenario

Given the time it takes to even allocate a load balancer, it seems better to test that outside of this test case to avoid unnecessary flakes.

/cc @bprashanth
2016-06-08 12:51:53 -07:00
k8s-merge-robot 66149c50fd Merge pull request #26792 from janetkuo/deployment-version-skewed-test-fail
Automatic merge from submit-queue

Avoid comparing pod-template-hash when getting a deployment's new/old RSes

Will need to cherry pick to 1.2 also. 

Ref #26724 #26797 @kubernetes/deployment @ihmccreery 

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-06-08 12:03:31 -07:00
k8s-merge-robot 3d332a047b Merge pull request #26961 from sttts/sttts-flake-26210-decouple-port-80
Automatic merge from submit-queue

Flake 26210: decouple explicit access from port 80

Flake #26210 only happens for port 80. To decouple the possible causes, all
tests with explicit port 80 are moved to port 1080 (these were 80% of the flakes).
The urls without a specified port (which map to port 80 though) are left untouched.

If port 1080 does not show up as flake now, there is really a connection to the
actual port number.
2016-06-08 11:16:13 -07:00
k8s-merge-robot 7695ae6334 Merge pull request #27038 from wojtek-t/reduce_number_of_logs
Automatic merge from submit-queue

Reduce huge amount of logs in large cluster tests

When running tests in 2000-node clusters, I got more than 100.000 lines like this:
```
Jun  8 01:03:11.850: INFO: Condition NetworkUnavailable of node gke-gke-large-cluster-default-pool-1-03ee5a12-knrw is true instead of false. Reason: NoRouteCreated, message: Node created w       ithout a route
```
that doesn't give much value.

This is PR is reducing the number of logs.
2016-06-08 10:29:24 -07:00
k8s-merge-robot 46f167188a Merge pull request #27006 from caesarxuchao/shorten-gc-stress-test
Automatic merge from submit-queue

shorten gc stress test

But the stress test is still run twice, because the `KUBE_TEST_API_VERSIONS` env var in test-integration.sh doesn't have any effect on the testapi because of the [defaulting](https://github.com/kubernetes/kubernetes/blob/master/pkg/api/testapi/testapi.go#L164).

cc @lavalamp
2016-06-08 08:50:17 -07:00
Phillip Wittrock e94e1c6e3d Node e2e Makefile support for running remote tests against kubernetes-node-e2e-images.
Also includes other improvements:
- Makefile rule to run tests against remote instance using existing host or image
- Makefile will reuse an instance created from an image if it was not torn down
- Runner starts gce instances in parallel with building source
- Runner uses instance ip instead of hostname so that it doesn't need to resolve
- Runner supports cleaning up files and processes on an instance without stopping / deleting it
- Runner runs tests using `ginkgo` binary to support running tests in parallel
2016-06-08 07:31:54 -07:00
Wojciech Tyczynski 2777c8ddc6 Extend logging for UnschedulableNodes 2016-06-08 15:00:08 +02:00
Wojciech Tyczynski 51f433d9a6 Reduce huge amount of logs in large cluster tests 2016-06-08 13:36:46 +02:00
Wojciech Tyczynski 770bd6b7a4 Mount hollow-node logs to parent node hostpath 2016-06-08 13:24:49 +02:00
Dr. Stefan Schimanski ff142b2823 portforwarding e2e: print logs when pod doesn't terminate 2016-06-08 10:23:09 +02:00
Jerzy Szczepkowski 95a59734de Added extra logging to cluster autoscaler e2e tests.
Added extra logging to cluster autoscaler e2e tests to track flakiness.
2016-06-08 09:55:49 +02:00
Wojciech Tyczynski 878c8d41f1 Merge pull request #27008 from zmerlynn/e2e-routes
Networking e2es: Wait for all nodes to be schedulable in kubeproxy and networking tests
2016-06-08 09:02:30 +02:00
Chao Xu 91de14cf13 rename the gc for terminated pods to "podgc" 2016-06-07 22:10:34 -07:00
Kevin 6c335b9e1f clean up labels that are added to node by scheduler e2e tests 2016-06-08 01:15:03 +00:00
Zach Loafman 936297c64c Networking e2es: Wait for all nodes to be schedulable in kubeproxy and networking tests
Now that GCE routes take an extremely long time to come up and there's
a variance in "Ready" and "Schedulable", start cherry-picking tests
where we really want to have all nodes routable/schedulable for
testing. Adding logging. This will increase test times on large
clusters but should have 0 impact on normal testing.
2016-06-07 16:38:03 -07:00
k8s-merge-robot 457d42e70e Merge pull request #26959 from wojtek-t/fix_performance_flakes
Automatic merge from submit-queue

Fix scalability flakes in small clusters

Fix #26185

@xiang90 @hongchaodeng @gmarek
2016-06-07 16:13:10 -07:00
Chao Xu 965aadac39 shorten gc stress test 2016-06-07 15:58:30 -07:00
Dawn Chen 0d3be6a316 Merge pull request #26735 from timstclair/local-e2e
Fixes for running node e2es
2016-06-07 14:51:18 -07:00
Vishnu kannan 2494c77972 Disable CoreOS image from node e2e testing.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-06-07 10:45:37 -07:00
derekwaynecarr 7a5412a259 Move quota usage testing for loadbalancers into unit tests 2016-06-07 12:54:11 -04:00
Dr. Stefan Schimanski 17e6797d72 Decouple explicit access from port 80
Flake #26210 only happens for port 80. To decouple the possible causes, all
tests with explicit port 80 are moved to port 1080 (these were 80% of the flakes).
The urls without a specified port (which map to port 80 though) are left untouched.

If port 1080 does not show up as flake now, there is really a connection to the
actual port number.
2016-06-07 15:50:12 +02:00
Wojciech Tyczynski 940882cb44 Fix scalability flakes in small clusters 2016-06-07 14:44:31 +02:00
Dr. Stefan Schimanski ca7be7dc6d Add e2e tests for seccomp 2016-06-07 08:11:09 +02:00
Random-Liu a6ad652104 shorten e2e_node test, fix pod ready test issue 2016-06-06 17:25:59 -07:00
Janet Kuo c3d905776e Avoid comparing pod-template-hash when getting a deployment's new/old RSes 2016-06-06 17:09:35 -07:00
Janet Kuo 9f4e30ba88 Fix nil pointer dereference in deployment e2e test 2016-06-06 17:08:38 -07:00
Fabio Yeon 6bc51fa1f8 Add GKE node pool e2e test. Fix GKE local SSD test to only run under
GKE.
2016-06-06 15:59:37 -07:00
Tim St. Clair 66d74f969d More reliable teardown of node e2e services 2016-06-06 15:30:23 -07:00
Brendan Burns 94b24351da Add a custom main instead of the standard test main, to reduce stack spew. 2016-06-06 13:40:09 -07:00
Tim St. Clair bdff676425 Only build essential targets for node e2e
Also clean up a log message
2016-06-06 11:28:39 -07:00
k8s-merge-robot 015bc3d60d Merge pull request #26811 from vishh/26809
Automatic merge from submit-queue

Mark runtime conformance tests as flaky and not run them in jenkins CI.

For #26809

@pwittrock As discussed offline, marking runtime tests as flaky for now. I'm not sure if those tests are required. Testing docker in every Kubernetes PR is un-necessary. 
These tests can be run periodically in a separate CI. AFAIK, these tests don't seem to exercise any kube features.
2016-06-06 11:14:44 -07:00
Marcin Wielgus 2b30eda8e2 Cluster autoscaling e2e tests cleanup 2016-06-06 16:53:09 +02:00
Jan Safranek 51c218ea7d Fix volume integration test flake
When we create a PV, we should created it withoud Spec.ClaimRef.UID.

In rare cases, when 'PV added' event with UID is processed before 'PVC
added' (created by for loop few lines above), the controller does not know
a PVC with this UID and considers the PV as released. Reclaim policy is
then executed and the PV is deleted and it's never bound.


With UID="", the controller waits for the PVC to get created and binds
it.
2016-06-06 16:14:40 +02:00
Jan Safranek acc2d22765 Split TestPersistentVolumeRecycler into three tests
Different tests should use different objects and watchers - I noticed
sometimes an event from old tests leaked into subsequent test in the
same function.

And add some logs.
2016-06-06 16:12:11 +02:00
k8s-merge-robot 6ecfb4c8fa Merge pull request #26881 from jszczepkowski/kac-tests-cleanup
Automatic merge from submit-queue

Fixed cleaun-up after cluster autoscaling e2e tests.

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()

Fixed cleaun-up after cluster autoscaling e2e tests.
2016-06-06 05:59:24 -07:00
Jerzy Szczepkowski 3506280df6 Fixed cleaun-up after cluster autoscaling e2e tests.
Fixed cleaun-up after cluster autoscaling e2e tests.
2016-06-06 11:34:04 +02:00
Marcin Wielgus 95eaaeb883 Increase cluster size by 2 in scale down test to bypass Heapster nanny issue 2016-06-06 10:37:11 +02:00
k8s-merge-robot 6c5f5c5e36 Merge pull request #26571 from pwittrock/node-e2e-godeps
Automatic merge from submit-queue

Node e2e use vendored testing packages.


[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-06-04 14:54:25 -07:00
k8s-merge-robot a2d79d0ef6 Merge pull request #26825 from timstclair/node-e2e-pull
Automatic merge from submit-queue

Fix node e2e image pulling retry logic
2016-06-04 11:36:41 -07:00
k8s-merge-robot 8ba9bd3dcb Merge pull request #26714 from jszczepkowski/kac-event-test
Automatic merge from submit-queue

Improved check in shouldn't increase cluster size e2e test.

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()

Improved check in shouldn't increase cluster size e2e test.
2016-06-04 05:58:32 -07:00
k8s-merge-robot 5c8dd576e2 Merge pull request #26592 from vishh/26289
Automatic merge from submit-queue

Update Node e2e Core OS image to run systemd with CPU & Memory accounting enabled by default

cc @derekwaynecarr 

For #26289
2016-06-04 03:32:10 -07:00
k8s-merge-robot 22d405477b Merge pull request #26568 from derekwaynecarr/kubectl_qos
Automatic merge from submit-queue

Update kubectl describe pod to use pod level qos

Fixes https://github.com/kubernetes/kubernetes/issues/26374

/cc @vishh
2016-06-04 02:40:47 -07:00
k8s-merge-robot 707cc2bbb8 Merge pull request #26493 from caesarxuchao/fix-gc-flake
Automatic merge from submit-queue

Fixes 25890 flake. Let GC convert ListOptions to v1 before passing it to the dynamic client

GC's ListWatcher directly passed the api.ListOptions to the dynamic client, but the parameter codec of dynamic client converts the options to queries based on the tags in the struct, which are not present in api.ListOptions, so the queries are not sent to the server. As a result, the Watch request was sent without a resourceVersion, causing missed events. Flake #25890 is caused by the missed deletion events.

This PR converts the api.ListOptions to v1.ListOptions before the GC passes it to the dynamic codec. The flaky test has successfully passed 79 times ([log](https://00e9e64bacd064560a027fbee9c5a373a1614f3a56e652ae40-apidata.googleusercontent.com/download/storage/v1_internal/b/kubernetes-jenkins/o/pr-logs%2Fpull%2F25923%2Fkubernetes-pull-test-unit-integration%2F28364%2Fbuild-log.txt?qk=AD5uMEv72OjSUqDyk5i-ZLurcmM4i7gket1c7WaqR7yuIYz7WhPYT7ewVBafijV0ymnPTYqxRYt1kp6S9YQv7chPwC-3UtrKetKfhYnvAFrPGXAIBxHytTmpFohRAYgsARN1B6j1f9vyK5lM-8jyzRGhCK3sCRsAPnbDBWIWFlbH4b1n3vUET3P71QamHrF5itYyaqRU5pMZV3Cwwr81X8q7h5hCzm3Ip78RpMzfjEqTG0RcM2TLGccUrlkWVBLh4hn0NFpUIkzVFugFA5ooJffo-0AdJnO3mGWEOnXNVFWftJbK8cKnTns0DISrYFOyH_PlOe_YHCxgIXIT-dW8G-nbqoUjn5SBqunr36rcpaYCIwe2va4W_AcLCT43xiEAezRER_U9AuIqi_22KMd6SuHTyljhmWFPvPk8-gpjthLWXhcE7LPO5dV41hnZHnbI4n_9eI1nSVm7q9XdSvX1sWKV1GCwn8oj017AnxVvl9bScultko_0dTC747UqJ6UTFakLuFcHFe-F5Tz7ItDWlBVPoXeC7gTpyuicFKLsdqGlW9F5X6kIwNrBRj9uRsS-QuzSER-fVkQCn4dUTcokttRH_0bYvyfr9oqiDXmywMgOp-L0sKayk8JOVynh2q0Tju9sdkvFr0PxoAjhofomfIC1SZ_JkOzwAT1TUW8dLjPHluMct34xW_-qna1AmkoxM4bZQLhllap96NTC-0IdtzeKDrTul8p7u3WXSJjjEMSijibTNMlnkB0AluT1_RNO94OnzuFv4YlcV24FPhJzchhbyKREkOb_wzgcnSbRwGHjIcfRgkX-IzoXHVBcMYFUrPmsXrnRcfad4XwjkUOgvivkURW2_EwnzgrLDh-IKek51_0FpT1MnFCSG0gQbVSs_iMVPr6UXNAw62LGbKVtl3ZMXyapEpcO8azNbn6Wvd550R704JXxYlU)).

@lavalamp @krousey @smarterclayton
2016-06-04 01:52:31 -07:00
k8s-merge-robot 0418a2c0ad Merge pull request #26153 from jsafrane/intergation-binder-stress
Automatic merge from submit-queue

volume controller: add configurable integration test to stress the binder

The test tries to bind configured nr. of PVs to the same nr. of PVCs. '100' is used by default, which should take ~1-3 seconds (depends on log level). Periodic sync is needed in rare cases, which may add another 10 seconds. - cache from #25881 will help here and sync should not be needed at all.

The test is configurable and may be reused to measure binder performance. Set KUBE_INTEGRATION_PERSISTENTVOLUME_* env. variables as described in persistent_volume_test.go and run the tests:

```
# compile
$ cd test/integration
$ godep go test -tags 'integration no-docker' -c

# run the tests
$ KUBE_INTEGRATION_PERSISTENTVOLUME_SYNC_PERIOD=10s KUBE_INTEGRATION_PERSISTENTVOLUME_OBJECTS=1000 time ./integration.test -test.run TestPersistentVolumeMultiPVsPVCs -v 2
```

Log level '2' is useful to get timestamps of various events like 'TestPersistentVolumeMultiPVsPVCs: start' and 'TestPersistentVolumeMultiPVsPVCs: claims are bound'.
2016-06-04 00:13:29 -07:00
k8s-merge-robot 7d852febc9 Merge pull request #26794 from yujuhong/wait_before_test
Automatic merge from submit-queue

kubelet e2e: enforce that image prepulling must finish before the test

The image prepulling pod calls docker directly to pull images. If the pod
hasn't finished before running the resource usage tracking test, there'd be a
cpu spike in docker. We'd rather wait and fail if this is the case, before
running the test.
2016-06-03 19:42:42 -07:00
k8s-merge-robot 3f1960b73e Merge pull request #26314 from vishh/all-logs
Automatic merge from submit-queue

Link kernel log files to have them be copied over as part of node e2e.

Fixes #25993

cc @pwittrock
2016-06-03 18:49:25 -07:00
Yu-Ju Hong a6a3ed210c Port the downward api test to the node e2e suite
Also extend the framework to allow a custom client config loading function, so
that the node e2e suite can reuse the same framework across tests.
2016-06-03 18:16:24 -07:00
pwittrock c74997508e Node e2e use vendored testing packages. 2016-06-03 17:01:50 -07:00
Tim St. Clair 7153981bfe Fix node e2e image pulling retry logic 2016-06-03 16:37:58 -07:00
Vishnu kannan 82718c186c update coreos node e2e images to include updated systemd config
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-06-03 16:14:26 -07:00
Vishnu kannan 7665120818 update attributes on node e2e copy image script
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-06-03 16:14:26 -07:00
Vish Kannan 4e1596e61e Remove debug log line 2016-06-03 14:41:05 -07:00
Vishnu kannan 4e3bce8cb7 Mark runtime conformance tests as flaky and not run them in jenkins CI.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-06-03 13:57:44 -07:00
k8s-merge-robot 69e45dc30d Merge pull request #26671 from vishh/node-e2e-images
Automatic merge from submit-queue

Support images and instances to exist in different GCP projects for node

Forked off from #26314
2016-06-03 13:38:02 -07:00
derekwaynecarr 89ff3b2530 Update kubectl describe pod to use pod level qos 2016-06-03 15:32:32 -04:00
Yu-Ju Hong 02d7af28e0 kubelet e2e: enforce that image prepulling must finish before the test
The image prepulling pod calls docker directly to pull images. If the pod
hasn't finished before running the resource usage tracking test, there'd be a
cpu spike in docker. We'd rather wait and fail if this is the case, before
running the test.
2016-06-03 12:25:25 -07:00
Chao Xu 06f49f7ca7 Let the dynamic client take a customized parameter codec for List, Watch, and DeleteCollection.
Let the gc's ListWatcher use api.ParameterCodec. Fixes 25890.
2016-06-03 11:22:51 -07:00
Vishnu kannan 34a828d07e Link kernel log files to have them be copied over as part of node e2e.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-06-03 11:22:25 -07:00
Jerzy Szczepkowski a9dc78c6f6 Implemented e2e test: cluster autoscaler with node selector.
Implemented e2e test: cluster autoscaler with node selector.
2016-06-03 16:38:45 +02:00
Jerzy Szczepkowski 07d9e2dcb0 Implemented support for multiple MIGs in e2e cluster autoscaling tests.
Improved check in shouldn't increase cluster size e2e test.
2016-06-03 16:31:56 +02:00
k8s-merge-robot 81c5cfc139 Merge pull request #26773 from mwielgus/gke-autoscaling
Automatic merge from submit-queue

Setup for cluster autoscaling tests in GKE

cc: @piosz @jszczepkowski @fgrzadkowski
2016-06-03 07:31:14 -07:00
Marcin Wielgus ab56306bec Setup for cluster autoscaling tests in GKE 2016-06-03 14:45:08 +02:00
Jan Safranek 1cfc984b70 volume controller: add configurable integration test to stress the binder
The test tries to bind configured nr. of PVs to the same nr. of PVCs.
'100' is used by default, which should take ~1-3 seconds (depends on log level).
Periodic sync is needed in rare cases, which may add another 10 seconds. - cache
from #25881 will help here and sync should not be needed at all.

The test is configurable and may be reused to measure binder performance.
Set KUBE_INTEGRATION_PV_* env. variables as described in
persistent_volume_test.go and run the tests:

# compile
$ cd test/integration
$ godep go test -tags 'integration no-docker' -c

# run the tests
$ KUBE_INTEGRATION_PV_SYNC_PERIOD=10s KUBE_INTEGRATION_PV_OBJECTS=1000 time ./integration.test -test.run TestPersistentVolumeMultiPVsPVCs -v 2

Log level '2' is useful to get timestamps of various events like
'TestPersistentVolumeMultiPVsPVCs: start' and 'TestPersistentVolumeMultiPVsPVCs:
claims are bound'.
2016-06-03 12:52:32 +02:00
k8s-merge-robot 45aa24b6b7 Merge pull request #26629 from jsafrane/stabilize
Automatic merge from submit-queue

Stabilize persistent volume integration tests

- add more logs
- wait both for volume and claim to get bound

When binding volumes to claims the controller saves PV first and PVC right
after that. In theory, this saved PV could cause waitForPersistentVolumePhase
to finish and PVC could be checked in the test before the controller saves it.
So, wait for both PVC and PV to get bound and check the results only after
that. This is only a theory, there are no usable logs in integration tests.

Fixes #26499 (at least I hope so...)
2016-06-03 03:10:00 -07:00
k8s-merge-robot 4adc00eceb Merge pull request #26454 from thockin/licenses_again
Automatic merge from submit-queue

Don't allow deps with no discernible license

This updates the few deps we had with no LICENSE file to current versions that do have that file.  It also disallows new deps without obvious licenses.
2016-06-03 01:18:14 -07:00
k8s-merge-robot 693dae70a8 Merge pull request #26226 from ArtfulCoder/reversedns
Automatic merge from submit-queue

Added DNS Reverse Record logic for service IPs
2016-06-02 18:43:39 -07:00
Tim Hockin 3c6ce53b7f Fix call-sites after dep updates 2016-06-02 16:57:28 -07:00
k8s-merge-robot c114f32998 Merge pull request #26289 from derekwaynecarr/enable_accounting
Automatic merge from submit-queue

Enable node e2e accounting on systemd

Updated the e2e setup.sh script to enable cpu and memory accounting.

Related to https://github.com/kubernetes/kubernetes/issues/26198

/cc @pwittrock
2016-06-02 13:42:58 -07:00
k8s-merge-robot b6a7be6f66 Merge pull request #26533 from gmarek/retries
Automatic merge from submit-queue

Add retries for make in start-kubemark

Fix. #25872
2016-06-02 10:49:28 -07:00
k8s-merge-robot 914163247d Merge pull request #26711 from yujuhong/fix_restart
Automatic merge from submit-queue

e2e: fix node restart tests

The test does not run in the per-PR suite, so e2e is not required.
2016-06-02 08:54:40 -07:00
k8s-merge-robot cae939b81c Merge pull request #26654 from janetkuo/e2e-deployment-list-rs
Automatic merge from submit-queue

List RSes once when getting old/new RSes in deployment e2e tests

Ref #26509 

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-06-02 08:54:36 -07:00
Yu-Ju Hong 8b082ce57d e2e: fix node restart tests
Allow pods to be succeeded or running.
2016-06-02 07:38:51 -07:00
k8s-merge-robot 0aaf5316be Merge pull request #26674 from vishh/node-e2e-owners
Automatic merge from submit-queue

adding a few owners for node e2e framework

cc @pwittrock 

This should help spread node e2e PRs.
2016-06-02 06:52:10 -07:00
Wojciech Tyczynski a44d027e2e Merge pull request #26695 from gmarek/maxpods
Fix MaxPods test to work with image puller
2016-06-02 14:24:05 +02:00
k8s-merge-robot 0ba4d88e4c Merge pull request #26697 from gmarek/affinity
Automatic merge from submit-queue

Disable PodAffinity SchedulerPredicates test

This feature is disabled, so it's not surprising that tests don't work.

cc @davidopp @kevin-wangzefeng 

@david-mcmahon - this disables the second test that causes failures in SchedulerPredicates suite. When this and #26695 are merged it should be passing in serial.
2016-06-02 05:15:58 -07:00
k8s-merge-robot 61fb527801 Merge pull request #26631 from gmarek/constraints
Automatic merge from submit-queue

Revert revert of adding resource constraints for master components in density tests

The problem was the time when resource constraints were generated. It turns out that the provider is not set there. This version should work.

cc @roberthbailey @alex-mohr
2016-06-02 05:15:55 -07:00
k8s-merge-robot 36e4f3dbe3 Merge pull request #26692 from wojtek-t/fix_scalability_test
Automatic merge from submit-queue

Wait for all nodes to be schedulable in scalability tests
2016-06-02 04:25:04 -07:00
gmarek 262239d7ec Fix MaxPods test to work with image puller 2016-06-02 13:17:45 +02:00
gmarek 72dcf9c236 Disable PodAffinity SchedulerPredicates test 2016-06-02 13:12:39 +02:00
Wojciech Tyczynski 2a5883fc3a Wait for all nodes to be schedulable in scalability tests 2016-06-02 10:20:59 +02:00
Jerzy Szczepkowski 862e2fe2fb Fixed problem with too long name in e2e autoscaling tests.
Fixed problem with too long name in e2e autoscaling tests.
2016-06-02 09:40:11 +02:00
k8s-merge-robot cf234ab67d Merge pull request #26251 from caesarxuchao/add-serializer
Automatic merge from submit-queue

Add direct serializer

Fix #25589. Implemented a direct codec that doesn't do conversion, but sets the group, version and kind before serialization as Clayton suggested [here](https://github.com/kubernetes/kubernetes/issues/25589#issuecomment-219168009).

First commit is cherry-picked from #24826.

@kubernetes/sig-api-machinery
2016-06-01 23:31:47 -07:00
k8s-merge-robot 8dcedbab5d Merge pull request #26232 from vishh/25713
Automatic merge from submit-queue

Suppress non error logs from ssh commands in node e2e framework.

Fixes #25713
2016-06-01 21:27:29 -07:00
k8s-merge-robot cdbda4a00f Merge pull request #26645 from yujuhong/cpu_limit
Automatic merge from submit-queue

kubelet e2e: bumping cpu limit

The previous limit was too aggressive and caused kubernetes-e2e-gce-serial build 1404 to fail.
2016-06-01 18:51:03 -07:00
Vishnu kannan 76dc29ef58 adding a few owners for node e2e framework
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-06-01 18:11:18 -07:00
Vishnu kannan 60ed27783e Support images and instances to exist in different GCP projects for node
e2e.
Add current user to docker group on instances for node e2e.

Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-06-01 18:01:02 -07:00
Janet Kuo 2ced966cd5 List RSes once when getting old/new RSes in deployment e2e tests 2016-06-01 14:19:35 -07:00
Alex Robinson 903821354e Merge pull request #26642 from wojtek-t/fix_kubelet_test_panics
Fix panic in kubelet test
2016-06-01 15:41:35 -04:00
k8s-merge-robot 46323336cb Merge pull request #26559 from wojtek-t/max_idle_conns_per_host
Automatic merge from submit-queue

Max idle conns per host

Ref #26519

Hopefully, this will at least somehow help with #26519 

@gmarek @krousey @lavalamp
2016-06-01 11:41:42 -07:00
Yu-Ju Hong ede3e885d6 kubelet e2e: bumping cpu limit 2016-06-01 11:40:48 -07:00
Wojciech Tyczynski 13b57f8ffb Fix panic in kubelet test 2016-06-01 19:55:35 +02:00
Abhishek Shah 4224dbd6c6 Added DNS reverse lookup 2016-06-01 09:54:57 -07:00
k8s-merge-robot bc6c66d4d4 Merge pull request #25726 from jszczepkowski/hpa-testfix
Automatic merge from submit-queue

Rework of resource consumer.
2016-06-01 08:50:23 -07:00
k8s-merge-robot 41a01fcfed Merge pull request #26618 from wojtek-t/fix_large_kubelet_test
Automatic merge from submit-queue

Change Kubelet test to run also in large clusters

This should fix the recent failure of kubelet test in 2000-node cluster.

@zmerlynn - FYI
2016-06-01 08:00:31 -07:00
Jerzy Szczepkowski 967a7c95d2 Rework of resource consumer.
Major rework of resource consumer: added controller running as a pod that spreads requests around consumers. This should fix #21664 and #23536.
2016-06-01 15:50:03 +02:00
gmarek 8a05258070 Revert "Merge pull request #26356 from kubernetes/revert-25752-resource-limits"
This reverts commit 60c2ab4995, reversing
changes made to 965e8dce12.
2016-06-01 15:09:32 +02:00
k8s-merge-robot b69c7064fd Merge pull request #26068 from jszczepkowski/kac-multimig-test
Automatic merge from submit-queue

Multiple MIGs in e2e cluster autoscaling tests.

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()

Implemented support for multiple MIGs in e2e cluster autoscaling tests.
2016-06-01 05:02:45 -07:00
Jan Safranek 23d8451d61 Stabilize persistent volume itegration tests
- add more logs
- wait both for volume and claim to get bound

When binding volumes to claims the controller saves PV first and PVC right
after that. In theory, this saved PV could cause waitForPersistentVolumePhase
to finish and PVC could be checked in the test before the controller saves it.
So, wait for both PVC and PV to get bound and check the results only after
that. This is only a theory, there are no usable logs in integration tests.
2016-06-01 13:46:09 +02:00
Wojciech Tyczynski 1afe14deaf Change Kubelet test to run also in large clusters 2016-06-01 13:39:54 +02:00
Jerzy Szczepkowski 93e5b12a06 Multiple MIGs in e2e cluster autoscaling tests.
Implemented support for multiple MIGs in e2e cluster autoscaling tests.
2016-06-01 11:20:41 +02:00
k8s-merge-robot ea07d310d1 Merge pull request #26604 from zmerlynn/ssh-slow
Automatic merge from submit-queue

SSH e2e: Limit to 100 nodes, limit combinatorics

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()This limits the "for all hosts" to 100 nodes, and also limits the
combinatorial section so that we only do the other SSH command variant
testing on the first host rather than *all* of the hosts. I also
killed one of the variants because it didn't seem to be testing much
important.

Fixes #26600
2016-06-01 01:37:44 -07:00
k8s-merge-robot a1074e4381 Merge pull request #26461 from pwittrock/fix-25966-nodee2e-junit
Automatic merge from submit-queue

Node e2e test runner should still exit 0 if tests fail


[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()

- Exit non-0 if infrastructure failures happen
- Exit 0 if no infrastructure failures happen regardless of test results

(Jenkins will use junit.xml to determine test results)
2016-05-31 22:19:38 -07:00
Zach Loafman 3d66c3be82 SSH e2e: Limit to 100 nodes, limit combinatorics
This limits the "for all hosts" to 100 nodes, and also limits the
combinatorial section so that we only do the other SSH command variant
testing on the first host rather than *all* of the hosts. I also
killed one of the variants because it didn't seem to be testing much
important.

Fixes #26600
2016-05-31 17:31:14 -07:00
k8s-merge-robot c1c0567e37 Merge pull request #26583 from yujuhong/set_limits
Automatic merge from submit-queue

kubelet e2e: set cpu/memory limits for docker 1.11

Docker 1.11 consumes more memory. Bump the limit to fix the tests. Also add
new limits for the 100-pod resource usage tracking test.

This fixes #26495
2016-05-31 15:18:58 -07:00
k8s-merge-robot 430bb9442a Merge pull request #26048 from bprashanth/ing_master
Automatic merge from submit-queue

Run l7 controller on master 

Fixes https://github.com/kubernetes/kubernetes/issues/23663, needs https://github.com/kubernetes/contrib/pull/680
@roberthbailey @kubernetes/goog-cluster
2016-05-31 13:25:47 -07:00
Yu-Ju Hong da11786968 kubelet e2e: set cpu/memory limits for docker 1.11
Docker 1.11 consumes more memory. Bump the limit to fix the tests. Also add
new limits for the 100-pod resource usage tracking test.
2016-05-31 12:31:29 -07:00
k8s-merge-robot d957e78a41 Merge pull request #25253 from soltysh/issue24533
Automatic merge from submit-queue

kubectl run --restart=Never creates pods

Fixes #24533.

@bgrant0607 @janetkuo ptal
/fyi @thockin

```release-note
* kubectl run --restart=Never creates pods
```
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-05-31 11:44:05 -07:00
Chao Xu f32f3966d6 add DirectCodec; use it in release_1_3 clientset 2016-05-31 10:14:24 -07:00