Commit Graph

196 Commits (18458392ca24c85c688e655aace1afd04f864cbd)

Author SHA1 Message Date
Maciej Pytel f67d143d6a Added scale-down-to-0 e2e for cluster autoscaler 2017-06-30 11:42:54 +02:00
Kubernetes Submit Queue 40f33a4b10 Merge pull request #48199 from MaciekPytel/fix_autoscaler_e2e_on_gke
Automatic merge from submit-queue (batch tested with PRs 48168, 48199)

Fix some flakes in autoscaler e2e on gke

This PR should fix some of the flakes we found in e2e runs, while testing for 1.7 release:
 - if one of the nodes is unschedulable in set up (causing set up to fail) we used to wait for wrong number of nodes in clean-up, adding unnecessary 20 minute wait to failing test
 - we did not check for errors when creating RC in test, leading to tests failing later in hard to debug way (added retry loop and explicit test failure)
2017-06-28 11:54:03 -07:00
Kubernetes Submit Queue 39fa1cb29e Merge pull request #48130 from aleksandra-malinowska/autoscaling-volumes-scale-up-test
Automatic merge from submit-queue (batch tested with PRs 48004, 48205, 48130, 48207)

Add e2e tests for CA scale up when pending pod requests volume

Test verifying pending pods with PVC don't interfere with scale up, issue: kubernetes/autoscaler#22
2017-06-28 10:35:15 -07:00
Maciej Pytel 37c2cfe92c Add retry to RC creation in autoscaler e2e 2017-06-28 17:42:38 +02:00
Maciej Pytel e2633865b1 Fix minor bug in autoscaler e2e cleanup 2017-06-28 12:21:12 +02:00
Aleksandra Malinowska ea1bf3860b add volumes test 2017-06-28 10:50:42 +02:00
Kubernetes Submit Queue 0e509854c7 Merge pull request #48072 from MaciekPytel/ca_scale_to_0_e2e
Automatic merge from submit-queue

Add e2e for cluster-autoscaler scale-up from 0

Ref: https://github.com/kubernetes/autoscaler/issues/43
2017-06-27 03:35:34 -07:00
Maciej Pytel 5dbfcd7133 Add e2e for cluster-autoscaler scale-up from 0 2017-06-26 16:53:30 +02:00
Kubernetes Submit Queue afc4506c33 Merge pull request #47957 from aleksandra-malinowska/autoscaling-anti-affinity-test-fix
Automatic merge from submit-queue

Fix test name

This test wasn't run by any job due to incorrect name.
2017-06-23 10:39:14 -07:00
Maciej Pytel 5e0520a4a0 Add more pdbs in autoscaling e2e 2017-06-23 13:37:59 +02:00
Aleksandra Malinowska a12669accb Fix test name 2017-06-23 12:29:40 +02:00
Chao Xu 60604f8818 run hack/update-all 2017-06-22 11:31:03 -07:00
Chao Xu f2d3220a11 run root-rewrite-import-client-go-api-types 2017-06-22 11:30:59 -07:00
Chao Xu f4989a45a5 run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00
Aleksandra Malinowska 53ab8fd86d Create respecting pod anti affinity test 2017-06-22 14:09:54 +02:00
Kubernetes Submit Queue a3501fb994 Merge pull request #47790 from MaciekPytel/fix_autoscaler_flaky_e2e_3
Automatic merge from submit-queue

Further reduce cluster-autoscaler e2e flakiness

Ref: https://github.com/kubernetes/autoscaler/issues/89

Add pdbs for additional kube-system pod, move adding
pdbs to separate function, as it will need to be reused
in new tests we're working on (ex. scale to 0).
2017-06-21 03:21:12 -07:00
Kubernetes Submit Queue 4fff2fbad3 Merge pull request #47332 from wasylkowski/e2e-autoscaling-timer
Automatic merge from submit-queue

Added an e2e test timing HPA + CA scaling up from 1 to 8 pods and from 3 to >=4 clusters

**What this PR does / why we need it**:

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #46847 

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2017-06-20 10:06:34 -07:00
Maciej Pytel 7072a50aea Further reduce cluster-autoscaler e2e flakiness
Add pdbs for additional kube-system pod, move adding
pdbs to separate function, as it will need to be reused
in new tests we're working on.
2017-06-20 17:26:00 +02:00
Kubernetes Submit Queue 5e8f44f195 Merge pull request #47256 from aleksandra-malinowska/autoscaling-system-pods-test
Automatic merge from submit-queue

Add new e2e test for cluster size autoscaler (evicting system pods)

This test verifies that cluster autoscaler drains nodes with system pods running if they have a PDB.
2017-06-20 04:09:23 -07:00
Andrzej Wasylkowski ce9f3bcfef Added an end-to-end test measuring autoscaling's efficiency. 2017-06-20 12:56:19 +02:00
Andrzej Wasylkowski 38f175f115 Made WaitForReplicas take a "how long to wait" parameter instead of it being hardcoded. 2017-06-20 12:56:18 +02:00
Aleksandra Malinowska 06424676e3 add e2e test for scale down to 1 2017-06-19 16:44:01 +02:00
Maciej Pytel bbf5692d18 Fix flaky cluster-autoscaler e2e 2017-06-19 10:22:00 +02:00
Maciej Pytel af345688dd Fix flaking cluster-autoscaler e2e 2017-06-14 17:08:02 +02:00
Kubernetes Submit Queue 4f73e7a068 Merge pull request #46856 from wasylkowski/deleting-hpa
Automatic merge from submit-queue (batch tested with PRs 46835, 46856)

Made tests that create Horizontal Pod Autoscaler delete it after they are done.

**What this PR does / why we need it**:

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #46847

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2017-06-09 08:25:43 -07:00
Andrzej Wasylkowski abb5e6e709 Made tests that create Horizontal Pod Autoscaler delete it after they are done. 2017-06-06 19:59:14 +02:00
Maciej Pytel ecc33fd8c2 Wait for instances boot in cluster-autoscaler e2e 2017-06-06 01:46:57 +02:00
Anirudh 63e51dc66e PDB MaxUnavailable: e2e tests 2017-05-23 07:18:44 -07:00
Maciej Pytel adc1d6a428 Log error before failing in autoscaling e2e 2017-04-27 16:52:53 +02:00
Kubernetes Submit Queue fc843b09d5 Merge pull request #44853 from mwielgus/debug-autoscaler-e2e
Automatic merge from submit-queue (batch tested with PRs 44741, 44853, 44572, 44797, 44439)

Print executed cmd in cluster autoscaler e2e tests

cc: @MaciekPytel @fgrzadkowski
2017-04-25 01:56:37 -07:00
Marcin Wielgus 5082626cfc Print executed cmd in cluster autoscaler e2e tests 2017-04-24 16:12:47 +02:00
Kubernetes Submit Queue bf8bb433bf Merge pull request #44502 from MaciekPytel/ca_fix_e2e_2
Automatic merge from submit-queue

Fix failing cluster-autoscaler e2e

Fix a panic in 2 CA e2e.
```release-note
```
2017-04-14 15:38:59 -07:00
Mike Danese a05c3c0efd autogenerated 2017-04-14 10:40:57 -07:00
Maciej Pytel 96cf6079d1 Fix failing cluster-autoscaler e2e 2017-04-14 16:39:47 +02:00
Marcin Wielgus 1ee6667498 Cluster autoscaler broken nodes test fix 2017-04-13 10:56:04 +02:00
Marcin Wielgus c2f903ba6c Merge branch 'master' into disruptive 2017-04-11 17:42:48 +02:00
Marcin Wielgus 5eaba81126 Node failure tests for cluster autoscaler 2017-04-11 16:59:50 +02:00
Kubernetes Submit Queue 4ae6bd93c2 Merge pull request #44284 from MaciekPytel/ca_e2e_unflake
Automatic merge from submit-queue (batch tested with PRs 43844, 44284)

Add a retry to cluster-autoscaler e2e

This should fix https://github.com/kubernetes/kubernetes/issues/44268.

The flake was caused by following sequence of events:
1. Cluster was at minimum size (3), some node was unneeded for a while.
2. Setup for some test (scale-down, failure) would increase node group size (to 5) and wait for new nodes to come up.
3. As soon as new node come up (cluster size 4) CA would scale-down the old unneeded node (setting node group size to 4).
4. Node group would not reach size 5 (as the target was now 4) and the test would timeout and fail.

This PR makes the setup monitor re-set the target node group size if the above scenario happens.
2017-04-11 06:42:15 -07:00
Maciej Pytel c0c77d7681 Add a retry to cluster-autoscaler e2e 2017-04-10 19:16:30 +02:00
Maciej Pytel 18ab7314bc Fix Cluster-Autoscaler e2e on testgrid 2017-04-06 11:20:23 +02:00
Maciej Pytel 67f5ba0004 Cluster-Autoscaler e2e to catch unnecessary scale-ups
This fails (with large probability, as issue is not 100% deterministic)
on 0.5.0, catching the bug in this version.
2017-04-05 15:23:29 +02:00
Maciej Pytel 1c9f64c760 e2e for cluster-autoscaler unhealthy cluster handling
Moved testUnderNetworkFailure function to framework,
so it can be reused.
2017-04-04 14:36:44 +02:00
Maciej Pytel 2630cefcce Add retries in cluster-autoscaler e2e 2017-04-04 10:28:24 +02:00
Maciej Pytel 0d666e1fcd Cluster-autoscaler multistep node drain e2e 2017-04-04 10:28:24 +02:00
Marcin Wielgus 3f7bf0206f Extract commonly used functions from e2e/resize_nodes.go to e2e/framework 2017-04-04 00:01:20 +02:00
Marcin Wielgus dac7b3e268 Move autoscaling e2e tests to a separate directory 2017-04-03 16:40:34 +02:00