Commit Graph

3855 Commits (988359d0fe03d8a65fb21a57740a11206768ba0b)

Author SHA1 Message Date
k8s-merge-robot 6cccb872a7 Merge pull request #27741 from zmerlynn/fix-gce-filters
Automatic merge from submit-queue

GCE provider: Limit Filter calls to regexps rather than insane blobs

Filters can't exceed 4k, and GET requests against the GCE API are also limited, so these break down in different ways at different cluster counts. Fix it by introducing an advisory `node-instance-prefix` configuration in the GCE provider that can hint the `EnsureLoadBalancer`/`UpdateLoadBalancer code` (and the firewall creation/update code). If it's not there, or wrong (a hostname that's registered violates it), just ignore it and grab the whole project.

Fixes #27731 
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-06-21 09:54:01 -07:00
Zach Loafman dd4dae4a57 GCE provider: Limit Filter calls to regexps rather than insane blobs
Filters can't exceed 4k, and GET requests against the GCE API are also
limited, so these break down in different ways at different cluster
counts. Fix it by introducing an advisory node-instance-prefix
configuration in the GCE provider that can hint the
EnsureLoadBalancer/UpdateLoadBalancer code (and the firewall
creation/update code). If it's not there, or wrong (a hostname that's
registered violates it), just ignore it and grab the whole project.
2016-06-21 08:34:48 -07:00
Maciej Szulik feb43c5e6d Reapply ScheduledJob tests (2ab885a53a) 2016-06-21 14:55:00 +02:00
Dr. Stefan Schimanski 1beb2b318c portforward e2e: extend log for flake hunting 2016-06-21 12:31:36 +02:00
k8s-merge-robot ee35555cb6 Merge pull request #27570 from Random-Liu/add-runtime-request-timeout-flag
Automatic merge from submit-queue

Add runtime-request-timeout kubelet flag.

XRef #23563.

Addresses https://github.com/kubernetes/kubernetes/issues/27388#issuecomment-226570083.

Add a new kubelet flag `runtime-request-timeout`, and set to 2 minutes by default.
Now the flag only affects dockertools, rkt may also want to set request timeout according to the flag. @yifan-gu 

This PR also removed the timeout for all long running operations to avoid issues like #27588 and #26122.

@yujuhong @rrati 
/cc @kubernetes/sig-node 

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-06-21 01:26:54 -07:00
k8s-merge-robot 27c0d8cf7c Merge pull request #27535 from wojtek-t/move_integration_tests_2
Automatic merge from submit-queue

Migrate most of remaining tests from cmd/integration to test/integration to use framework

Ref #25940

Built on top of https://github.com/kubernetes/kubernetes/pull/27182 - only the last commit is unique
2016-06-21 00:45:06 -07:00
nikhiljindal 9026195614 Updating the code to fix the context name before using it as secret and cluster names 2016-06-20 14:50:28 -07:00
Wojciech Tyczynski fe14beb980 Move Patch, AtomicPut and MasterService tests to test/integration. 2016-06-20 20:50:25 +02:00
k8s-merge-robot b0816b19d3 Merge pull request #27717 from dims/fix-issue-27683
Automatic merge from submit-queue

Fix Celery-RabbitMQ flake

In the following PR: https://github.com/kubernetes/kubernetes/pull/27162

We used ("name": "rabbitmq" / "name": "celery" / "name": "flower") as
the label selector. This does not match the definitions in
https://github.com/kubernetes/kubernetes/blob/master/examples/celery-rabbitmq/

I've verified this by deploying the service per the README and
checking that "kubectl describe po -l component=rabbitmq" works
(and that "kubectl describe po -l name=rabbitmq" fails)

Fixes #27683
2016-06-20 11:48:33 -07:00
k8s-merge-robot a19728c3a1 Merge pull request #27182 from wojtek-t/move_integration_tests
Automatic merge from submit-queue

Migrate some integration tests from cmd/integration to test/integration to use framework

Ref #25940
2016-06-20 11:48:28 -07:00
Robert Deusser cd1450b3ec Fix spelling errors
More spelling fixes
2016-06-20 11:36:11 -04:00
gmarek 9bbcb5e3b8 Remove dependency on test/integration from kubemark 2016-06-20 16:20:51 +02:00
wongma7 d61594b842 Add integration test for binding PVs using label selectors 2016-06-20 10:15:29 -04:00
Davanum Srinivas df6f01892c
Fix Celery-RabbitMQ flake
In the following PR:
https://github.com/kubernetes/kubernetes/pull/27162

We used ("name": "rabbitmq" / "name": "celery" / "name": "flower") as
the label selector. This does not match the definitions in
https://github.com/kubernetes/kubernetes/blob/master/examples/celery-rabbitmq/

I've verified this by deploying the service per the README and
checking that "kubectl describe po -l component=rabbitmq" works
(and that "kubectl describe po -l name=rabbitmq" fails)

Fixes #27683
2016-06-20 08:29:57 -04:00
k8s-merge-robot 3b57f868d3 Merge pull request #27542 from piosz/heapster-version
Automatic merge from submit-queue

Bumped Heapster to v1.1.0

```release-note
Bumped Heapster to v1.1.0.
More details about the release https://github.com/kubernetes/heapster/releases/tag/v1.1.0
```

Version 1.1.0 doesn't differ from the previous one v1.1.0-beta2 significantly - just fixed few small issues during stabilization period.

cc @a-robinson @jszczepkowski @mwielgus 

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-06-20 04:40:27 -07:00
k8s-merge-robot 6de1ba5dc4 Merge pull request #27034 from jsafrane/integration-parallel
Automatic merge from submit-queue

Add possibility to run integration tests in parallel

- add env. variable with etcd URL to intergration tests
- update documentation with example how to use it to find flakes
2016-06-20 03:25:30 -07:00
Michail Kargakis f3d2e3ff22 controller: proportionally scale paused and rolling deployments
Enable paused and rolling deployments to be proportionally scaled.
Also have cleanup policy work for paused deployments.
2016-06-20 12:13:35 +02:00
k8s-merge-robot d244a34747 Merge pull request #27458 from wongma7/pvc-selector
Automatic merge from submit-queue

Add integration test for binding PVs using label selectors

Adds an integration test for persistent volume claim label selector.
2016-06-20 02:46:17 -07:00
Jan Safranek a114df7d59 integration tests: add env. variable for etcd URL.
Many integration tests delete all keys in etcd as part of their cleanup.
To run these tests in parallel we must run several etcd daemons, each on
different port and pass etcd url to the test suite.
2016-06-20 10:40:49 +02:00
markturansky 16ec36c591 added toggle to disable dynamic provisioning 2016-06-20 01:15:23 -04:00
k8s-merge-robot bd9ac8d663 Merge pull request #23969 from Random-Liu/add-termination-message-test
Automatic merge from submit-queue

Node E2E: add termination message test

Based on #23658.

This PR:
1) Cleans up the `ConformanceContainer` a bit
2) Add termination message test

This test proves #23639, without #23658, the test could not pass.

@liangchenye @kubernetes/sig-node
2016-06-19 20:29:31 -07:00
k8s-merge-robot 6fbf99b11a Merge pull request #26753 from ericchiang/rbac-authorizer-tests
Automatic merge from submit-queue

add unit and integration tests for rbac authorizer

This PR adds lots of tests for the RBAC authorizer. 

The plan over the next couple days is to add a lot more test cases.

Updates #23396

cc @erictune
2016-06-19 19:19:08 -07:00
k8s-merge-robot 4630a3c665 Merge pull request #27428 from gmarek/staticPods
Automatic merge from submit-queue

WaitForRunningReady also waits for PodsSuccess

Ref. #27095 - fixes the test, doesn't fix the problem.

cc @yujuhong @fejta
2016-06-19 14:55:11 -07:00
k8s-merge-robot 5c2594233e Merge pull request #27162 from goltermann/example
Automatic merge from submit-queue

Fixing timing issues with examples

Partial fixes for examples tests.
2016-06-18 19:43:36 -07:00
k8s-merge-robot 253e664344 Merge pull request #27133 from copejon/pv_e2e_testing_modifications
Automatic merge from submit-queue

Overhauled pv e2e test to reflect common lifecycle

cc @jeffvance
2016-06-18 19:10:25 -07:00
k8s-merge-robot 185ca0035c Merge pull request #27119 from jsafrane/integration-provisioning
Automatic merge from submit-queue

Add integration test for provisioning/deleting many PVs.

The test is configurable by KUBE_INTEGRATION_PV_OBJECTS for load tests, 100 objects are created by default.

@kubernetes/sig-storage
2016-06-18 18:34:10 -07:00
k8s-merge-robot 7ee4189cf6 Merge pull request #27036 from sttts/sttts-secure-seccomp-path
Automatic merge from submit-queue

Filter seccomp profile path from malicious .. and /

Without this patch with `localhost/<some-releative-path>` as seccomp profile one can load any file on the host, e.g. `localhost/../../../../dev/mem` which is not healthy for the kubelet.

/cc @jfrazelle 

Unit tests depend on https://github.com/kubernetes/kubernetes/pull/26710.
2016-06-18 15:58:07 -07:00
k8s-merge-robot 7ea1a25490 Merge pull request #26862 from fabioy/node_pool_test
Automatic merge from submit-queue

Add GKE node pool e2e test. Fix GKE local SSD test to only run under GKE.

Just adding a node pool e2e test for GKE runs. And minor fix to local SSD test to only run under GKE.

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-06-18 14:50:45 -07:00
k8s-merge-robot 77cf11f4d7 Merge pull request #27441 from derekwaynecarr/downward_api_node_defaults
Automatic merge from submit-queue

Revert revert of downward api node defaults

Reverts the revert of https://github.com/kubernetes/kubernetes/pull/27439

Fixes #27062

@dchen1107 - who at Google can help debug why this caused issues with GKE infrastructure but not GCE merge queue?

/cc @wojtek-t @piosz @fgrzadkowski @eparis @pmorie
2016-06-18 12:12:24 -07:00
k8s-merge-robot 14e05064c8 Merge pull request #26886 from kevin-wangzefeng/fix_scheduling_e2e_test_leak
Automatic merge from submit-queue

fix node.labels leak in scheduler predicates e2e

closes #26698 

cc @davidopp @wojtek-t @fejta @gmarek
2016-06-18 10:26:13 -07:00
k8s-merge-robot ec86c428c1 Merge pull request #27596 from saad-ali/removetestfromflaky
Automatic merge from submit-queue

Remove PD tests out of flaky

Closes https://github.com/kubernetes/kubernetes/issues/26127
2016-06-17 22:46:52 -07:00
k8s-merge-robot d1115dc184 Merge pull request #27636 from mml/fed-dns-followup
Automatic merge from submit-queue

Cleanups following #27587

- Add back the negative assertions, but mark them [Slow].
- Use the current DNS TTL of 180 sec as our timeout for all DNS tests.
- Assorted cleanups and refactoring.
2016-06-17 22:05:39 -07:00
Random-Liu 52ebd4ecf1 Add runtime-request-timeout kubelet flag. 2016-06-17 18:18:41 -07:00
nikhiljindal 60f0dce033 Fixing the AfterEach order 2016-06-17 17:14:17 -07:00
Random-Liu 19f5a90528 Add node e2e test for termination message path. 2016-06-17 13:42:41 -07:00
Quinton Hoole 4445dc2b59 Improve e2e tests for Cluster Federation. 2016-06-17 12:39:10 -07:00
Daniel Smith 25d8aec037 Merge pull request #27632 from bprashanth/ing_e2e_static_ip_leak
Don't leak static-ips in ingress e2es
2016-06-17 12:15:57 -07:00
Matt Liggett b0a4fdea4d tidy 2016-06-17 12:08:36 -07:00
Matt Liggett 7cf7717d4c Move the slow part of the test into a Slow block. 2016-06-17 12:08:36 -07:00
Matt Liggett dd7626bbf1 refactor and re-add exists 2016-06-17 12:08:36 -07:00
Matt Liggett 2b3e9d5a98 Add a "this should not work" comment. 2016-06-17 12:07:20 -07:00
Matt Liggett 011b2cde33 Use DNS TTL 2016-06-17 12:07:20 -07:00
k8s-merge-robot 82ab80cb57 Merge pull request #27265 from gmarek/grabber-test
Automatic merge from submit-queue

Remove known metrics list

Fixes #26800
2016-06-17 11:24:17 -07:00
derekwaynecarr 18a206ad56 Downward API defaults resource limits to node capacity/allocatable 2016-06-17 14:18:18 -04:00
Prashanth Balasubramanian dafe27617e Don't leak stati-ips in ingress e2es 2016-06-17 10:35:16 -07:00
Paul Morie f0ead64881 Fix typo in GC integration tests 2016-06-17 10:20:49 -04:00
k8s-merge-robot 7edb84c2eb Merge pull request #27613 from jszczepkowski/kac-tests-cleanup
Automatic merge from submit-queue

Fixed updating node labels in cluster autoscaler e2e test.

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

Fixed updating node labels in cluster autoscaler e2e test.
2016-06-17 06:23:33 -07:00
Jerzy Szczepkowski 5308f4a9ae Fixed updating node labels in cluster autoscaler e2e test.
Fixed updating node labels in cluster autoscaler e2e test.
2016-06-17 13:46:15 +02:00
Wojciech Tyczynski b519c72a84 Log namespace creation error 2016-06-17 13:18:02 +02:00
k8s-merge-robot ce3d7090a2 Merge pull request #26821 from bprashanth/lb_e2e
Automatic merge from submit-queue

Extend ingress e2e

Splits the test into a cross platform conformance list, and platform specific bits that exercise features through annotations. Also exercises the features in https://github.com/kubernetes/contrib/pull/1133. Assigning to Girish, simply because I assigned the other pr to Minhan.
2016-06-17 04:01:44 -07:00
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