Commit Graph

218 Commits (a46a849b9e67014b5f3c0c10dd423c36eb06863a)

Author SHA1 Message Date
gmarek f08f751831 Use clientset in GetReadySchedulableNodesOrDie 2016-10-19 15:55:39 +02:00
gmarek 7681a1bdff Move RunRC-like functions to test/utils 2016-10-12 15:06:56 +02:00
bprashanth 3d0fb31f26 Remove onlyLocal NodePort e2e till pr #33957 2016-10-07 14:47:55 -07:00
MrHohn c61911eedd Fix #31085, include output checking in retry loop 2016-10-05 09:13:19 -07:00
Kubernetes Submit Queue 6b82792880 Merge pull request #34030 from MrHohn/e2e_service_fix
Automatic merge from submit-queue

Improve source ip preservation test, fail the test instead of panic.

From #31085.

The source IP preserve test starts to be flake again. Sending out this PR to get rid of panicing and log the unexpected output for future investigation.

@freehan
2016-10-05 00:07:11 -07:00
bprashanth 1d7cdffebc Cleanup netexec image and usage. 2016-10-04 14:22:41 -07:00
MrHohn 0d500921ea examine output format before return, fail the test instead of panic 2016-10-04 10:23:53 -07:00
deads2k 48ac4d549d change e2e scale to avoid adapter 2016-09-26 07:58:01 -04:00
Kubernetes Submit Queue 02dd178039 Merge pull request #30739 from MrHohn/e2e-sourceip
Automatic merge from submit-queue

Add e2e test for Source IP preservation (pod to service cluster IP)

Working on #27134.

This PR added the e2e test for source ip preservation (pod to service cluster IP) in service.go. Test scenario described as below:
- Pick two different nodes in cluster.
- Create a clusterIP type service.
- Create an echo server, which echoes back client IP, to be part of the service.
- Create a client on another node. Hit the server through service cluster IP.
- Verify the source IP.

@girishkalele @freehan
2016-09-05 12:23:25 -07:00
bprashanth 5dac1122b4 Logging for service restart e2e clarity 2016-09-01 14:49:52 -07:00
MrHohn f20effb5e1 Add e2e test for Source IP preservation (pod to service cluster IP) 2016-08-31 16:28:24 -07:00
Girish Kalele e5971e27f1 Fix feature name for ExternalTrafficLocalOnly alpha feature e2e 2016-08-29 19:39:18 -07:00
Kubernetes Submit Queue 1e125c2302 Merge pull request #31138 from girishkalele/esipp-e2e
Automatic merge from submit-queue

E2E tests for the Source IP Preservation for LoadBalancers

Breaking out E2E changes from the main PR - these tests require the Alpha feature gate turned on for this feature otherwise they will consistently fail.
2016-08-29 16:24:59 -07:00
AdoHe 10440ed47d fix same node port different protocols conflict issue 2016-08-26 07:36:45 +08:00
Girish Kalele 419e2241da E2E tests for the Source IP Preservation for LoadBalancers 2016-08-25 11:02:41 -07:00
Chao Xu 3688a78769 let load and density e2e tests use GC if it's on 2016-08-11 11:48:20 -07:00
Kubernetes Submit Queue e7d01097dc Merge pull request #29971 from caesarxuchao/fix-kubectl-rolling-update-with-gc
Automatic merge from submit-queue

[GarbageCollector] Fix kubectl rolling-update to work with GC

This changes the order of the [Rename()](https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/rolling_updater.go#L532) function. After the change, Rename() first deletes the old RC and orphans its pods, then creates the new RC, which will then have a chance to adopt the orphaned pods.

This also fixes the "should support rolling-update to same image" [test](https://github.com/kubernetes/kubernetes/blob/master/test/e2e/kubectl.go#L915) when the garbage collector is on.

Here is the detailed explanation on why the test would have failed:
`kubectl rolling-update` will [rename](https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/rolling_updater.go#L532-L546) the RC. It first creates the an identical RC (including spec.selectors) with the new name, then it deletes the existing RC. When GC is turned on, the newly created RC cannot adopt the existing pod, because it has a controllerRef pointing to the exising RC, so the new RC will create new pods and expect to see the creation. However, the new RC and the old RC have the same selector, so sometimes the old RC, instead of the new RC, has its [expectation lowered](https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/replication/replication_controller.go#L346-L362), the new RC's expectation will stuck forever. The e2e test then times out when executing `kubectl delete newRC`, because there is the new RC will not scale down as its expectation is not fulfilled.

A side-note, we should fix [rm.getPodController()](https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/replication/replication_controller.go#L346) to respect pod's controllerref, that will prevent similar bugs.

Also note that an old version `kubectl rolling-update` will not work with the GC. We cannot fix that.
2016-08-04 20:48:10 -07:00
Chao Xu 96c84303bd fix kubectl rolling-update when GC is enabled 2016-08-03 15:57:03 -07:00
Wojciech Tyczynski b456c6dbfd Increase test timeouts for creating LB in large clusters 2016-08-02 12:32:04 +02:00
Harry Zhang c495397cae Refactor uuid into its own pkg 2016-07-30 00:07:02 -04:00
PingWang 1606ce57ea combine the const definition
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
2016-07-26 20:28:12 +08:00
David McMahon ef0c9f0c5b Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
Wojciech Tyczynski 9961b8021b Fix failures in up and down services in large clusters 2016-06-15 16:09:46 +02:00
k8s-merge-robot 46323336cb Merge pull request #26559 from wojtek-t/max_idle_conns_per_host
Automatic merge from submit-queue

Max idle conns per host

Ref #26519

Hopefully, this will at least somehow help with #26519 

@gmarek @krousey @lavalamp
2016-06-01 11:41:42 -07:00
Wojciech Tyczynski b67a6e6d41 Avoid creating multiple unnecessary clients in tests. 2016-05-31 14:57:09 +02:00
Jeff Lowdermilk 6ee2b7bc4e Fix some gce-only tests to run on gke as well
DaemonRestart kubelet test, and Services apiserver restart test.
2016-05-30 07:33:24 -07:00
Lucas Käldström 79ca1911e1 Removed all pause image constant strings, now the pause image is chosen by arch. Part of the effort of making e2e arch-agnostic 2016-05-26 19:16:43 +03:00
Daniel Smith 0bda969cd5 Merge pull request #25261 from jayunit100/readySched
Support GetReadySchedulable pods for all node selecting tests.
2016-05-18 17:24:09 -07:00
k8s-merge-robot 15919f336f Merge pull request #25284 from bprashanth/service_unready
Automatic merge from submit-queue

Add a service annotation that allows endpoints for unready pods

See https://github.com/kubernetes/kubernetes/issues/25283 for context 
@smarterclayton @thockin yes?

<!-- Reviewable:start -->
---
This change is [<img src="http://reviewable.k8s.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/25284)
<!-- Reviewable:end -->
2016-05-12 12:05:27 -07:00
k8s-merge-robot 5673f13edf Merge pull request #24014 from ihmccreery/chaosmonkey-no-ginkgo
Automatic merge from submit-queue

Upgrades tests use chaosmonkey package and ServiceTestJig

Introduce the `chaosmonkey` e2e package for doing disruptive testing (e.g. upgrade testing) more easily.

- [x] `chaosmonkey` package
- [x] migrate upgrade tests to `chaosmonkey` (using WIP `serviceJig`)
- [x] migrate upgrade tests to use `ServiceTestJig` and `chaosmonkey`

Deferred:

- [ ] make `ServiceTestJig` implement `chaosmonkey.Interface`
- [ ] migrate disruptive services tests to use `ServiceTestJig` and `chaosmonkey`

This provides the extensible framework for #15131.  We should now easily be able to add tests (e.g. #6084, #23189).

This is a rewrite of #22446.

cc @mikedanese @quinton-hoole @roberthbailey 

Assigning to @thockin, who wrote `ServiceTestJig`.

<!-- Reviewable:start -->
---
This change is [<img src="http://reviewable.k8s.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/24014)
<!-- Reviewable:end -->
2016-05-11 11:54:11 -07:00
Prashanth Balasubramanian 74ccd24574 Endpoints controller respects unready service annotation 2016-05-10 14:20:10 -07:00
Jay Vyas 326b213231 Consolidate node selecting tests to only use Schedulable + Running
nodes.
2016-05-06 10:32:12 -04:00
Muhammed Uluyol f3690e2d5e
build/pause: write in C
Builds statically against glibc. References to the old pause
image have been updated.
2016-05-04 21:45:52 -04:00
Isaac Hollander McCreery 4e5e1b8ac5 Create chaosmonkey package, use ServiceTestJig for upgrade tests 2016-05-03 09:22:58 -07:00
Clayton Coleman fdb110c859
Fix the rest of the code 2016-04-29 17:12:10 -04:00
Yu-Ju Hong bdadaefe3b e2e: add a dummy environment variable in the service tests
This works around the docker bug:
https://github.com/docker/docker/issues/14203
2016-04-26 16:25:26 -07:00
Tim St. Clair b0d3f32e88 Update test/e2e for test/e2e/framework refactoring 2016-04-13 10:50:17 -07:00
Jeff Lowdermilk cd85b06465 Merge pull request #24001 from freehan/kubenet
include error in the fail msg
2016-04-08 20:55:35 -07:00
Minhan Xia 0174455111 include error in the fail msg 2016-04-07 15:42:21 -07:00
Joe Finney 39de4be40d
Mark services test slow. 2016-04-06 17:26:16 -07:00
Phillip Wittrock f22ddf1ea8 Update serve_hostname version from 1.1 to v1.4 2016-03-21 12:53:22 -07:00
deads2k ab03317d96 support CIDRs in NO_PROXY 2016-03-16 16:22:54 -04:00
Jay Vyas 9a71dfe753 KubeDescribe implementation with verify into after-build/ scripts. 2016-03-15 22:29:21 -04:00
Jeff Lowdermilk f8d7793609 Merge pull request #22203 from bprashanth/network_flake
Ignore network flake in services e2e.
2016-03-03 15:20:12 -08:00
Prashanth Balasubramanian 41cbf952ca Ignore network flake in services e2e. 2016-02-29 17:40:24 -08:00
gmarek 110340c467 Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
k8s-merge-robot 420d98fd8b Merge pull request #22027 from bprashanth/services_compare
Auto commit by PR queue bot
2016-02-26 17:25:22 -08:00
k8s-merge-robot 192119c2ac Merge pull request #21610 from fejta/e2etag
Auto commit by PR queue bot
2016-02-26 12:52:43 -08:00
Prashanth Balasubramanian 9be53e6319 Strip whitespace when comparing endpoints in services test. 2016-02-26 12:02:14 -08:00
k8s-merge-robot f08a8f23c1 Merge pull request #20959 from justinsb/fix_20911
Auto commit by PR queue bot
2016-02-20 00:56:53 -08:00