Commit Graph

3577 Commits (2ea4e1f0663e0f6e561f939b2afa1dd26b417ea7)

Author SHA1 Message Date
Kubernetes Submit Queue 5b0edbd56d Merge pull request #34991 from yujuhong/disable_misc
Automatic merge from submit-queue

e2e: stop tracking resource usage for the "misc" container

There is e2e test checking the resource usage of "misc", and it is not
supported on GCI.
2016-10-18 02:48:44 -07:00
Kubernetes Submit Queue 6a1e8c98e0 Merge pull request #34989 from caesarxuchao/new-client-go-structure
Automatic merge from submit-queue

New client-go structure

This PR is part of restructuring client-go (https://github.com/kubernetes/client-go/issues/9#issue-181545998). In short, the top-level folder for client-go versions are removed.

This PR also runs copy.sh to pick up changes in the main repository. The number of files in client-go has increase from 1361 files to 1405.

@mbohlool @mml @timoreimann
2016-10-18 01:13:50 -07:00
Kubernetes Submit Queue 2a21384862 Merge pull request #33781 from rmmh/test-list
Automatic merge from submit-queue

Add test_list command, to enumerate unit and e2e tests.

This uses go/parser and go/ast to analyze all test files in ~1 second.
It only recognizes a few simple structures that the tests all have, and
modifies a few tests to fit expected structure better.

This is part of an effort to ensure all tests have owners, by having a
verify check to catch new tests being added without an owner.
2016-10-17 17:12:28 -07:00
Kubernetes Submit Queue 1da120ca8a Merge pull request #34961 from kubernetes/revert-32485-e2e-provisioning-class
Automatic merge from submit-queue

Revert "Add e2e tests for storageclass"

Reverts kubernetes/kubernetes#32485

This PR broke the multizone tests on GCE/GKE, and broke the AWS tests, e.g.:
* https://k8s-testgrid.appspot.com/google-aws
* https://k8s-testgrid.appspot.com/google-gke#gke-multizone
* https://k8s-testgrid.appspot.com/google-gke#gci-gke-multizone
Suggest revert. 

Fixes #34794

cc @k8s-oncall
2016-10-17 17:12:20 -07:00
Ryan Hitchman 7a573d4d3c Add test_list command, to enumerate unit and e2e tests.
This uses go/parser and go/ast to analyze all test files in ~1 second.
It only recognizes a few simple structures that the tests all have, and
modifies a few tests to fit expected structure better.

This is part of an effort to ensure all tests have owners, by having a
verify check to catch new tests being added without an owner.
2016-10-17 15:56:33 -07:00
Yu-Ju Hong 1c57df2dc2 e2e: stop tracking resource usage for the "misc" container
There is e2e test checking the resource usage of "misc", and it is not
supported on GCI.
2016-10-17 15:55:22 -07:00
Chao Xu 923757f3e0 rewrite client-go import path in the main repository
convert e2e tests of client-go to use version options
2016-10-17 15:35:19 -07:00
Kubernetes Submit Queue cefd680d72 Merge pull request #33811 from pmorie/e2e-ns-cleanup
Automatic merge from submit-queue

Make E2E tests easier to debug

This PR removes deferred deletion calls in E2E tests in order to make test easier to debug.  Some of these tests predate namespace finalization; we should just rely on that mechanism to ensure that framework test artifacts are deleted.
2016-10-17 13:29:41 -07:00
Zach Loafman 22352d2844 Revert "Add e2e tests for storageclass" 2016-10-17 10:32:27 -07:00
Kubernetes Submit Queue 772b27da01 Merge pull request #34942 from kargakis/e2e-fix
Automatic merge from submit-queue

test: wait for complete rollouts in WaitForDeploymentStatusValid

@kubernetes/deployment should fix https://github.com/kubernetes/kubernetes/issues/34816 once and forever
2016-10-17 10:21:00 -07:00
Paul Morie fd76e6a05e Make Framework.MatchContainerOutput able to use GenerateName 2016-10-17 12:38:15 -04:00
Kubernetes Submit Queue b008c683ec Merge pull request #34548 from kargakis/estimate-available-from-rs
Automatic merge from submit-queue

controller: set minReadySeconds in deployment's replica sets

* Estimate available pods for a deployment by using minReadySeconds on
the replica set.
* Stop requeueing deployments on pod events, superseded by following the
replica set status.
* Cleanup redundant deployment utilities

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

@kubernetes/deployment ptal
2016-10-17 08:44:51 -07:00
Paul Morie 53ec6e60fe Remove deferred deletion calls from E2E tests 2016-10-17 10:36:22 -04:00
Michail Kargakis 71df8f6544 test: wait for complete rollouts in WaitForDeploymentStatusValid 2016-10-17 13:19:28 +02:00
Kubernetes Submit Queue 9d137ba499 Merge pull request #34756 from jayunit100/vipercleanup
Automatic merge from submit-queue

Cleanup the commented code for overriding flags with viper.  For now,…

Minor cleanup for the viper configuration logic, removes commented  code into a function of its own.  We can decide wether or not to overwrite flag values at a later time...
2016-10-15 00:51:41 -07:00
Kubernetes Submit Queue b1b8e9e403 Merge pull request #34544 from gmarek/split
Automatic merge from submit-queue

Move RunRC-like functions to test/utils

Ref. #34336

cc @timothysc - the "move" part of the small refactoring. @jayunit100
2016-10-14 07:22:38 -07:00
Kubernetes Submit Queue 3e209aee7b Merge pull request #34814 from Crassirostris/gcl-test-flakiness
Automatic merge from submit-queue

Introduce additional debug logging to cluster logging tests

@piosz
2016-10-14 06:41:44 -07:00
Kubernetes Submit Queue bab34824a6 Merge pull request #34642 from yujuhong/dns_policy
Automatic merge from submit-queue

Set the dns policy for pods in node e2e tests
2016-10-14 05:45:34 -07:00
Mik Vyatskov 8eaec85855 Introduce additional debug logging to cluster logging tests 2016-10-14 14:07:41 +02:00
Kubernetes Submit Queue 92cb90fc5d Merge pull request #34724 from kargakis/another-test-fix
Automatic merge from submit-queue

e2e: don't require minimum availability once scaling takes place

This test shouldn't care about availability at all in the first place.

@mfojtik @kubernetes/deployment  ptal

Fixes https://github.com/kubernetes/kubernetes/issues/34717
2016-10-14 05:03:32 -07:00
Kubernetes Submit Queue 64f52a2725 Merge pull request #32485 from jsafrane/e2e-provisioning-class
Automatic merge from submit-queue

Add e2e tests for storageclass

- test pd-ssd and pd-standard on GCE,
- test all four volume types and encryption on AWS
- test just the default volume type on OpenStack (right now, there is no API
  to get list of them)

These tests are quite slow, e.g. there are two tests on AWS that has to run mkfs.ext4 on 500 GB magnetic drive with low IOPS, which takes ~3-4 minutes each.
2016-10-13 21:51:27 -07:00
Kubernetes Submit Queue 01189549f3 Merge pull request #34565 from timstclair/flake
Automatic merge from submit-queue

Fix race condition in test with git server startup

Fixes https://github.com/kubernetes/kubernetes/issues/32467 (hopefully)

Previously, the test didn't ensure the git server was running before attempting to connect to it.
2016-10-13 17:53:11 -07:00
Mik Vyatskov 1c03b5ed13 Marked GCL logging test as Flaky 2016-10-13 23:03:16 +02:00
jayunit100 430921eec4 Cleanup the commented code for overriding flags with viper. For now, leave that functinoality unused with a TODO if we want to override flag values w/ viper visitor pattern 2016-10-13 16:14:05 -04:00
Michail Kargakis cc2550c4e1 e2e: don't require minimum availability once scaling takes place 2016-10-13 18:14:45 +02:00
Jan Safranek c9c1147270 Add e2e tests for storageclass
- test pd-ssd and pd-standard on GCE,
- test all four volume types on AWS
- test just the default volume type on OpenStack (right now, there is no API
  to get list of them)
2016-10-13 15:37:08 +02:00
Wojciech Tyczynski 00a437bb5c Fix ginkgo panic in density test 2016-10-13 14:12:41 +02:00
Michail Kargakis 212a26dc95 controller: set minReadySeconds in deployment's replica sets
* Estimate available pods for a deployment by using minReadySeconds on
the replica set.
* Stop requeueing deployments on pod events, superseded by following the
replica set status.
* Cleanup redundant deployment utilities
2016-10-13 12:27:47 +02:00
Mik Vyatskov 2d3f294e2d Fix ES cluster logging test 2016-10-13 11:53:46 +02:00
Kubernetes Submit Queue 523fce990a Merge pull request #32781 from lukaszo/ready_ds
Automatic merge from submit-queue

Add ReadyScheduled to DaemonSet status

Fixes #25605

cc @bgrant0607 @mikedanese
2016-10-13 00:25:56 -07:00
Kubernetes Submit Queue 726c2e7c2a Merge pull request #34652 from quinton-hoole/2016-10-12-fix-fed-e2e-resource-leak
Automatic merge from submit-queue

Fix leaking ingress resources in federated ingress e2e test.

Originally the federated ingresses were being deleted, but due to the lack of cascading deletion, the cluster ingresses were never being deleted, leading to leaked GCE loadbalancer resources.  This fixes that.
2016-10-12 22:30:12 -07:00
Yu-Ju Hong dae055dcd6 Set the dns policy for pods in node e2e tests
This change stops kubelet from sending MissingClusterDNS events for every pod.
2016-10-12 17:20:31 -07:00
Kubernetes Submit Queue 83b2651eaa Merge pull request #34632 from Random-Liu/fix-wait-for-success
Automatic merge from submit-queue

Fix the wait for pod success in test framework.

Fixes https://github.com/kubernetes/kubernetes/issues/34623.
Addresses https://github.com/kubernetes/kubernetes/issues/33189#issuecomment-253282725.
Related to #34630.

This PR:
1) Changes `WaitForPodSuccessInNamespace` to use pod phase instead of container status because of https://github.com/kubernetes/kubernetes/issues/33189#issuecomment-253287397. The code was introduced because of https://github.com/kubernetes/kubernetes/issues/2632, which is never true now.
2) Fixes the cluster logging test to set the pod as `RestartOnFailure`.

@yujuhong @Crassirostris
2016-10-12 16:38:27 -07:00
Quinton Hoole 455e79bd52 Fix leaking ingress resources in federated ingress e2e test. 2016-10-12 15:12:54 -07:00
Random-Liu bab971d002 Fix the wait for pod success in test framework. 2016-10-12 11:33:40 -07:00
Kubernetes Submit Queue 71249bb82b Merge pull request #34462 from yujuhong/ignore_pods
Automatic merge from submit-queue

Ignore mirror pods with RestartPolicy == Never in restart tests

Kubelet does not sync the mirror pods once they have terminated. If, for some
reason, that such mirror pods get deleted once they have terminated (either by
the node controller or by users), kubelet will not attempt to recreate them.
However, when kubelet restarts, it will examine the static pods, sync once,
and create a mirror pod. This has led to unexpected pod counts in disruptive
tests where kubelet gets restarted on purpose (see #34003).

This change disregard such mirror pods when totaling the pods to fix the test
flake until we have time to implement a long-term solution.

This PR addresses #34003
2016-10-12 10:54:23 -07:00
Kubernetes Submit Queue 12b133577e Merge pull request #33278 from Crassirostris/gcl-e2e-test
Automatic merge from submit-queue

Add gcl cluster logging test

This PR changes default logging destination for tests to gcp and adds test for cluster logging using google cloud logging

Fix #20760
2016-10-12 06:54:25 -07:00
Łukasz Oleś 5d2e215652 Add NumberReady to DaemonSet status
Fixes #25605
2016-10-12 15:15:10 +02:00
gmarek 7681a1bdff Move RunRC-like functions to test/utils 2016-10-12 15:06:56 +02:00
gmarek 66c82a223c Inject logFunc into RunPods 2016-10-12 13:44:43 +02:00
Kubernetes Submit Queue 4747e1cc1d Merge pull request #34597 from gmarek/prompush
Automatic merge from submit-queue

Remove prompush from test/e2e

Ref. #34336

cc @timothysc
2016-10-12 03:14:16 -07:00
Kubernetes Submit Queue 24bb97907c Merge pull request #34316 from kargakis/set-failure-traps-in-deployment-test
Automatic merge from submit-queue

test: move deployment deletion in its own test

@kubernetes/deployment this PR moves the deletion of deployment in its own test (no need to delete deployments in every test since the namespace controller does that for us once the namespace gets deleted after the test finishes)

Fixes https://github.com/kubernetes/kubernetes/issues/33256
2016-10-12 03:14:03 -07:00
Kubernetes Submit Queue 7cf00d8cce Merge pull request #34545 from gmarek/inject
Automatic merge from submit-queue

Make logging function injectable in RCConfig

Ref. #34336

cc @timothysc - the "move" part of the small refactoring. @jayunit100
2016-10-12 02:11:44 -07:00
gmarek b607c5cbee Remove prompush from test/e2e 2016-10-12 10:31:45 +02:00
Kubernetes Submit Queue ff43515ff7 Merge pull request #34140 from timothysc/e2e-variant
Automatic merge from submit-queue

remove [Conformance] flag on some e2es 

Downstream distributions that absorb the upstream tests would like to give their customers a standard mechanism to validate their clusters, post setup. As of today [Conformance] works for most things, but there are a known set of tests that vary due to opinionated differences around networking, security, etc... and providing a complete skip list can be cumbersome.  To address this, we've simply modified the flag on some tests to [Conformance:Variant].  All existing behavior should be maintained. 

Fixes: #34105
2016-10-11 16:01:42 -07:00
Tim St. Clair 3dddd34d3a
Fix race condition in test with git server startup 2016-10-11 12:35:09 -07:00
Yu-Ju Hong 11cdcca35d Ignore mirror pods with RestartPolicy == Never in restart tests
Kubelet does not sync the mirror pods once they have terminated. If, for some
reason, that such mirror pods get deleted once they have terminated (either by
the node controller or by users), kubelet will not attempt to recreate them.
However, when kubelet restarts, it will examine the static pods, sync once,
and create a mirror pod. This has led to unexpected pod counts in disruptive
tests where kubelet gets restarted on purpose (see #34003).

This change disregard such mirror pods when totaling the pods to fix the test
flake until we have time to implement a long-term solution.
2016-10-11 12:15:33 -07:00
gmarek 1aff115f44 Make logging function injectable in RCConfig 2016-10-11 16:46:33 +02:00
Michail Kargakis 712ad06ed7 test: move deployment deletion in its own test
Defer deployment deletion to the namespace controller for all other tests
2016-10-11 15:22:32 +02:00
Mik Vyatskov b9c72ee1cb Add gcl cluster logging test 2016-10-11 09:36:11 +02:00