Commit Graph

5541 Commits (c2a16713b1ce601fe9af2a216c837f93b54e86aa)

Author SHA1 Message Date
Kubernetes Submit Queue 7a09ba96d8 Merge pull request #37243 from janetkuo/petset-e2e-rename
Automatic merge from submit-queue

Update [Feature:PetSet] e2e tests to [Feature:StatefulSet]

<!--  Thanks for sending a pull request!  Here are some tips for you:
1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md
2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md
3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes
-->

**What this PR does / why we need it**: Update StatefulSet e2e test feature tags from [Feature:PetSet] to [Feature:StatefulSet]

**Special notes for your reviewer**: Ref test-infra changes https://github.com/kubernetes/test-infra/pull/1151

cc @erictune @foxish @kow3ns @enisoc @kubernetes/sig-apps

**Release note**:
<!--  Steps to write your release note:
1. Use the release-note-* labels to set the release note state (if you have access) 
2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. 
-->
```release-note
NONE
```
2016-11-22 22:52:52 -08:00
Kubernetes Submit Queue e69b497e07 Merge pull request #37303 from krousey/e2eutil
Automatic merge from submit-queue

Guard the ready replica checking by server version

I fixed replica readiness checking for 1.4->1.5 upgrades by using a field that only exists in versions >=1.4.0 in #36924 

This fixed a lot of issues in 1.4->1.5 upgrade testing, but did not fix 1.3->1.5 upgrade tests. I've disabled replica checking for 1.3 masters as the old logic was broken anyway.

This will not affect the 1.3 CI tests. Just 1.3 -> {1.4, 1.5} upgrade tests.

https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke-container_vm-1.3-container_vm-1.5-upgrade-cluster-new/330?log
is an example of this breakage. This is the tell-tale logs:

```console
Nov 22 09:40:50.469: INFO: 11 / 11 pods in namespace 'kube-system' are running and ready (506 seconds elapsed)
Nov 22 09:40:50.469: INFO: expected 5 pod replicas in namespace 'kube-system', 0 are Running and Ready.
Nov 22 09:40:50.469: INFO: POD  NODE  PHASE  GRACE  CONDITIONS
```
2016-11-22 19:52:22 -08:00
Janet Kuo 0744033d8c Remove [Slow] from statefulset basic tests 2016-11-22 15:36:19 -08:00
Janet Kuo 420d32c503 Update [Feature:PetSet] e2e tests to [Feature:StatefulSet] 2016-11-22 15:36:19 -08:00
Kubernetes Submit Queue e4724e8ab0 Merge pull request #37109 from Random-Liu/fix-lifecycle-hook-test
Automatic merge from submit-queue

Use netexec container in http lifecycle hook test.

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

The original test is using `"echo -e \"HTTP/1.1 200 OK\n\" | nc -l -p 1234` as a simple http server.

However, it seems that this is not very reliable, which may response before golang thinks it should.
So we get the error:
```
I1106 06:14:13.325397    2096 logs.go:41] Unsolicited response received on idle HTTP channel starting with "HTTP/1.1 200 OK\n\n"; err=<nil>
```

This PR changes the test to use the `netexec` container which is a simple http server written by golang and used in many of our networking e2e test. It should be more reliable.
Mark 1.5 since this is fixing a 1.5 release blocking issue. Mark P0 to match the original issue.

@dchen1107
2016-11-22 12:41:37 -08:00
Kubernetes Submit Queue d0ae65a4a5 Merge pull request #37277 from Random-Liu/update-ubuntu-image
Automatic merge from submit-queue

Node E2E: Update ubuntu image to e2e-node-ubuntu-trusty-docker10-v2-image.

@sjenning Hopefully this will unblock  https://github.com/kubernetes/kubernetes/pull/32577.

I built a new ubuntu trusty image with docker 10 - `e2e-node-ubuntu-trusty-docker10-v2-image`. The kernel version of the new ubuntu image is `4.4.0-47-generic`.

@dchen1107 
/cc @kubernetes/sig-node 

Mark v1.5 because this unblocks a v1.5 feature https://github.com/kubernetes/kubernetes/pull/32577.
2016-11-22 11:59:54 -08:00
Kris 1614b97725 Guard the ready replica checking by server version
This disables ready replica checking for 1.3 masters, but only from 1.4
or 1.5 clients. The old logic was broken anyway due to overlapping
labels with replica sets.
2016-11-22 11:16:15 -08:00
Random-Liu e0cdeb4c2a Use netexec container in http lifecycle hook test. 2016-11-22 10:09:19 -08:00
Kubernetes Submit Queue a9b58213b1 Merge pull request #37286 from jszczepkowski/ha-e2e-onerepl
Automatic merge from submit-queue

E2E tests cleanup: regexp for master replica in a separate function
2016-11-22 09:59:38 -08:00
Kubernetes Submit Queue 580c52be38 Merge pull request #36073 from gmarek/supervisord
Automatic merge from submit-queue

Kubemark master components run by supervisord. Try 2.
2016-11-22 09:23:10 -08:00
Jerzy Szczepkowski 69dc4b0fc5 E2E tests cleanup: moved generation of regexp for master replica to a separate function.
E2E tests cleanup: moved generation of regexp for master replica to a separate function.
2016-11-22 14:52:33 +01:00
Kubernetes Submit Queue acb8a3f7d5 Merge pull request #36999 from jszczepkowski/ha-e2e-onerepl
Automatic merge from submit-queue

Fixed e2e tests for HA master.

Set of fixes that allows HA master e2e tests to pass for removal/addition master replicas.

The summary of changes:
- fixed host name in etcd certs,
- added cluster validation after kube-down,
- fixed the number of master replicas in cluster validation,
- made MULTIZONE=true required for HA master deployments, ensured we correctly handle MULTIZONE=true when user wants to create HA master but not kubelets in multiple zones,
- extended verification of master replicas in HA master e2e tests.
2016-11-22 05:24:59 -08:00
Kubernetes Submit Queue 1c3f8fa090 Merge pull request #36644 from kargakis/update-progress-test
Automatic merge from submit-queue

test: extend time for a condition to appear in status

Fixes https://github.com/kubernetes/kubernetes/issues/36574
2016-11-22 04:03:38 -08:00
Jerzy Szczepkowski d01998f5fa Fixed e2e tests for HA master.
Set of fixes that allows HA master e2e tests to pass for removal/addition of master replicas.
2016-11-22 12:03:28 +01:00
Kubernetes Submit Queue 46c671676f Merge pull request #36743 from Crassirostris/return-outofdisk-test
Automatic merge from submit-queue

Remove Feature label from OutOfDisk e2e test

Fix https://github.com/kubernetes/kubernetes/issues/35722

Related to https://github.com/kubernetes/kubernetes/pull/35551 and https://github.com/kubernetes/kubernetes/pull/36225
2016-11-22 02:18:11 -08:00
Random-Liu ab99cc0eba Update ubuntu image to e2e-node-ubuntu-trusty-docker10-v2-image. 2016-11-22 01:22:20 -08:00
gmarek 4356cb633d Revert "Merge pull request #36065 from kubernetes/revert-35918-supervisor"
This reverts commit a4ee3ed026, reversing
changes made to 8c90bc35e2.
2016-11-22 09:46:48 +01:00
Kubernetes Submit Queue 9a600f627c Merge pull request #37235 from bowei/flake-37114
Automatic merge from submit-queue

Test flake: ignore dig failure; wait until timeout

The intent of this test was to continue trying until the timeout has
been reached. The extra assertion makes the test fail early when it
should not.

https://github.com/kubernetes/kubernetes/issues/37144

fix 37114
2016-11-21 23:34:21 -08:00
Kubernetes Submit Queue 4dd0320db7 Merge pull request #37236 from bowei/flake-kube-proxy
Automatic merge from submit-queue

Update the timeout in CLOSE_WAIT e2e test

I see some test flakes due to the timeout being too strict,
updating to a larger value.

Adding tail -n 1, it looks like there may be leftover state for other
runs. We really only care about one of the CLOSE_WAIT entries.
2016-11-21 21:15:38 -08:00
Kubernetes Submit Queue 88a809470d Merge pull request #34454 from dshulyak/current_enter_running
Automatic merge from submit-queue

Test case for scalling down before scale up finished

Verifies that current pet (one which was created last by scale up action)
will enter running before scale down will take place

related: #30082
2016-11-21 17:01:33 -08:00
Bowei Du 9aef074e59 Update the timeout in CLOSE_WAIT e2e test
I see some test flakes due to the timeout being too strict,
updating to a larger value.

Adding tail -n 1, it looks like there may be leftover state for other
runs. We really only care about one of the CLOSE_WAIT entries.
2016-11-21 11:58:15 -08:00
Bowei Du 5b2c0075ba Test flake: ignore dig failure; wait until timeout
The intent of this test was to continue trying until the timeout has
been reached. The extra assertion makes the test fail early when it
should not.
2016-11-21 11:54:47 -08:00
Kubernetes Submit Queue 435268ac19 Merge pull request #32868 from dshulyak/scale_up_down_test_case
Automatic merge from submit-queue

Validate pet set scale up/down order

This change implements test cases to validate that:
- scale up will be done in order
- scale down in reverse order
- if any of the pets will be unhealthy, scale up/down will halt

related: https://github.com/kubernetes/kubernetes/issues/30082
2016-11-21 11:36:01 -08:00
Kubernetes Submit Queue ab20072189 Merge pull request #37203 from Random-Liu/fix-restart-test
Automatic merge from submit-queue

Filter out non-RestartAlways mirror pod in restart test.

Fixes #37202.

> A quick fix is to filter out non-RestartAlways pods. Because either RestartNever and RestartOnFailure pods could succeed, and we can not deal with terminated mirror pods very well now.

@yujuhong @gmarek 
/cc @kubernetes/sig-node
2016-11-21 10:58:02 -08:00
Kubernetes Submit Queue 6b8c6e169d Merge pull request #37221 from gmarek/master
Automatic merge from submit-queue

Update start-kubemark-master to correctly work in case of master-comp…

@saad-ali - test only change.
2016-11-21 07:52:35 -08:00
Kubernetes Submit Queue c9ed5262c7 Merge pull request #35947 from brendandburns/tpr
Automatic merge from submit-queue

make groupVersionResource listing dynamic for namespace controller

@derekwaynecarr @kubernetes/sig-api-machinery 

```release-note
Third party resources are now deleted when a namespace is deleted.
```

Fixes https://github.com/kubernetes/kubernetes/issues/32306
2016-11-21 07:52:25 -08:00
gmarek 15471488ba Update start-kubemark-master to correctly work in case of master-components restart 2016-11-21 15:40:58 +01:00
Wojciech Tyczynski 9ccddb9b7d Revert "Add log rotation to kubemark" 2016-11-21 14:55:52 +01:00
Kubernetes Submit Queue 21c3b3028f Merge pull request #34414 from yarntime/add_defaults_test
Automatic merge from submit-queue

add test file for autoscaling defaults

add test file `pkg/apis/autoscaling/v1/defaults_test.go`
2016-11-21 05:23:13 -08:00
Dmitry Shulyak c09e969e08 Test case for scalling down before scale up finished
Verifies that current pet (one which was created last by scale up action)
will enter running before scale down will take place

Change-Id: Ib47644c22b3b097bc466f68c5cac46c78dd44552
2016-11-21 11:46:34 +02:00
Random-Liu d9d148f4d6 Filter out non-RestartAlways mirror pod in restart test. 2016-11-21 01:43:14 -08:00
Dmitry Shulyak 36d1af6145 Validate pet set scale up/down order
This change implements test cases to validate that:

    scale up will be done in order
    scale down in reverse order
    if any of the pets will be unhealthy, scale up/down will halt

Change-Id: I4487a7c9823d94a2995bbb06accdfd8f3001354c
2016-11-21 11:21:32 +02:00
gmarek 3d9f002ebd Add commented local testing command in kubemark/run-e2e-tests.sh 2016-11-21 10:00:54 +01:00
gmarek 87f87206bc Pass GCLOUD_COMMON_ARGS do disk attach in Kubemark 2016-11-21 09:04:04 +01:00
Brendan Burns ef6529bf2f make groupVersionResource listing dynamic when third party resources are
enabled.
2016-11-20 20:48:57 -08:00
Kubernetes Submit Queue 2b86ed3f90 Merge pull request #37077 from soltysh/issue34585
Automatic merge from submit-queue

Retry job update after failure to prevent modification conflict

This fixes #34585 flake.

@janetkuo || @kubernetes/sig-apps  ptal

I've been getting too many emails recently wrt to that issue, so I wanted to "clean" my inbox a bit 😉
2016-11-19 12:43:14 -08:00
Maciej Szulik b253c20d80 Retry job update after failure to prevent modification conflict 2016-11-19 19:40:08 +01:00
Kubernetes Submit Queue 076051b9f2 Merge pull request #37113 from kubernetes/revert-35697-upgrade-tests
Automatic merge from submit-queue

Revert "Add more test cases to k8s e2e upgrade tests"

Reverts kubernetes/kubernetes#35697
2016-11-19 01:39:44 -08:00
Kubernetes Submit Queue b9d2d74a94 Merge pull request #37038 from ymqytw/retry_old_patch_after_new_patch_fail
Automatic merge from submit-queue

Fix kubectl Stratigic Merge Patch compatibility

As @smarterclayton pointed out in [comment1](https://github.com/kubernetes/kubernetes/pull/35647#pullrequestreview-8290820) and [comment2](https://github.com/kubernetes/kubernetes/pull/35647#pullrequestreview-8290847) in PR #35647,
we cannot assume the API servers publish version and they shares the same version.

This PR removes all the calls of GetServerSupportedSMPatchVersion().
Change the behavior of `apply` and `edit` to:
Retrying with the old patch version, if the new version fails.
Default other usage of SMPatch to the new version, since they don't update list of primitives.

fixes #36916

cc: @pwittrock @smarterclayton
2016-11-19 01:02:47 -08:00
Kubernetes Submit Queue 290dff2d9d Merge pull request #36911 from dashpole/eviction_defaults
Automatic merge from submit-queue

Eviction Thresholds Update

Sets the defaults for the eviction-hard threshold for GCE based on what we were using during testing: "memory.available<250Mi,nodefs.available<10%,nodefs.inodesFree<5%".
Sets flags for e2e tests to use eviction-minimum-reclaim: "nodefs.available<5%,nodefs.inodesFree<5%"

this fixes #32537
2016-11-19 00:21:19 -08:00
Kubernetes Submit Queue d725b3e3cd Merge pull request #36775 from bowei/kube-dns-config-map
Automatic merge from submit-queue

Add limited config-map support to kube-dns

This is an integration bugfix for https://github.com/kubernetes/kubernetes/issues/36194

```release-note
kube-dns

Added --config-map and --config-map-namespace command line options. 
If --config-map is set, kube-dns will load dynamic configuration from the config map 
referenced by --config-map-namespace, --config-map. The config-map supports
the following properties: "federations".

--federations flag is now deprecated. Prefer to set federations via the config-map.
Federations can be configured by settings the "federations" field to the value currently 
set in the command line.

Example:

  kind: ConfigMap
  apiVersion: v1
  metadata:
    name: kube-dns
    namespace: kube-system
  data:
    federations: abc=def
```
2016-11-18 23:03:54 -08:00
Kubernetes Submit Queue fa0eb19bcc Merge pull request #37114 from mikedanese/fix-bzl
Automatic merge from submit-queue

	revert revert of test/e2e/generated/BUILD
2016-11-18 17:03:38 -08:00
Kubernetes Submit Queue c183664c55 Merge pull request #36630 from nikhiljindal/E2edsi
Automatic merge from submit-queue

Adding e2e tests for validating cascading deletion of federation resources

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

Adding e2e tests for code in https://github.com/kubernetes/kubernetes/pull/36330 and https://github.com/kubernetes/kubernetes/pull/36476.

Adding test cases to ensure that cascading deletion happens as expected.
Also adding code to ensure that all resources are cleaned up in AfterEach.

cc @kubernetes/sig-cluster-federation @caesarxuchao @madhusudancs
2016-11-18 17:03:27 -08:00
Bowei Du 19be1d2504 Allow kube-dns to load its configuration from a config map
- Adds command line flags --config-map, --config-map-ns.
- Fixes 36194 (https://github.com/kubernetes/kubernetes/issues/36194)
- Update kube-dns yamls
- Update bazel (hack/update-bazel.sh)
- Update known command line flags
- Temporarily reference new kube-dns image (this will be fixed with
  a separate commit when the DNS image is created)
2016-11-18 16:11:12 -08:00
Bowei Du 1456e8435f Add ExecWithOptions to framework
This allows for tweaking more options for executing commands
in pods.
2016-11-18 15:50:49 -08:00
ymqytw 11653b11c1 add a unit test 2016-11-18 15:35:50 -08:00
nikhiljindal 90645ce2b7 Automated bazel and owner changes 2016-11-18 14:44:06 -08:00
nikhiljindal 14246a9494 Updating federation e2e tests to verify cascading deletion 2016-11-18 14:44:06 -08:00
Mike Danese bfb8902e44 fix test/e2e/ compilation 2016-11-18 14:09:35 -08:00
Mike Danese ea192ddb28 revert revert of test/e2e/generated/BUILD
broken in fad1990eaa
2016-11-18 11:24:19 -08:00