Commit Graph

80 Commits (6993612cec627a93de316a17d27d71ecc2d65573)

Author SHA1 Message Date
Kubernetes Submit Queue 9dc2e508e3 Merge pull request #52844 from aleksandra-malinowska/autoscaling-test-fix-5
Automatic merge from submit-queue (batch tested with PRs 52843, 52710, 52821, 52844). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>..

improve retrying logic when checking CA status

This should reduce the flake rate in cluster size autoscaling test suite.
2017-09-21 09:56:55 -07:00
Aleksandra Malinowska 14dfeecd47 improve retrying logic when checking CA status 2017-09-21 13:58:42 +02:00
Aleksandra Malinowska 5a0f1c8747 improve PDBs cleanup 2017-09-21 13:57:47 +02:00
Kubernetes Submit Queue f7dd62f149 Merge pull request #51277 from irfanurrehman/hpa-e2e-mod-for-fed
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>..

[Federation] Update hpa e2e utils to enable reuse in fed hpa tests

This PR is to enable reuse of some hpa e2e utils in federation, facilitating https://github.com/kubernetes/kubernetes/pull/50168
cc @mwielgus @quinton-hoole 
cc @kubernetes/sig-federation-pr-reviews 

**Release note**:

```NONE
```
2017-09-20 18:01:40 -07:00
Aleksandra Malinowska fbeb4de996 add pdbs for more kube-system pods in scale down test 2017-09-20 16:45:01 +02:00
Aleksandra Malinowska daf77aca1d adjust parameter in cluster autoscaling test 2017-09-20 11:41:15 +02:00
Kubernetes Submit Queue b80af5d4e4 Merge pull request #52707 from aleksandra-malinowska/autoscaling-test-hpa-allocatable
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>..

In autoscaling integration test, use allocatable instead of capacity for node memory

This makes the remaining cluster autoscaling test (integration test of HPA and CA working together to scale up the cluster) use node allocatable resources when computing how much memory we need to consume in order to trigger scale up/prevent scale down. Follow up to #52650 as that one is already merging.

cc @wasylkowski
2017-09-19 19:13:48 -07:00
Aleksandra Malinowska 69f1f2f296 use allocatable instead of capacity 2017-09-19 10:26:14 +02:00
Aleksandra Malinowska f6d7b96b3a use allocatable instead of capacity for node memory 2017-09-18 14:18:46 +02:00
Kubernetes Submit Queue 471b0beb2e Merge pull request #52480 from aleksandra-malinowska/test-fix-gke-small
Automatic merge from submit-queue

Fix failing autoscaling test in GKE

This should fix `[sig-autoscaling] Cluster size autoscaling [Slow] should increase cluster size if pending pods are small and there is another node pool that is not autoscaled [Feature:ClusterSizeAutoscalingScaleUp]` by getting a list of nodes from GKE nodepool in a different way (filtering nodes by labels.) Currently, gcloud command used for it is failing, as we only have GKE node pool name in the test and not the actual MIG name.
2017-09-14 18:48:26 -07:00
Aleksandra Malinowska 158ffdb1ec Get nodes from GKE node pool by checking labels 2017-09-14 12:06:34 +02:00
Chao Xu 6c5a8d5db9 Remove the conversion of client config, because client-go is authoratative now 2017-09-12 16:02:17 -07:00
Andrzej Wasylkowski 0c1ab5597e Renamed ClusterSize and WaitForClusterSize to NumberOfReadyNodes and WaitForReadyNodes, respectively. 2017-08-29 11:53:17 +02:00
Andrzej Wasylkowski 9b0f4c9f7c Added an end-to-end test ensuring that Cluster Autoscaler does not scale up when all pending pods are unschedulable. 2017-08-29 11:52:26 +02:00
Kubernetes Submit Queue a235ba4e49 Merge pull request #51327 from wasylkowski/ensure-ca-is-on
Automatic merge from submit-queue (batch tested with PRs 51134, 51122, 50562, 50971, 51327)

Made the tests ensure that Cluster Autoscaler is on before running.

**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 #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2017-08-25 14:01:36 -07:00
Andrzej Wasylkowski 6e1fbf32b0 Made the tests ensure that Cluster Autoscaler is on before running. 2017-08-25 11:11:38 +02:00
Irfan Ur Rehman eb33d1b1d0 [Federation] Update hpa e2e utils to enable reuse in fed hpa tests 2017-08-24 21:21:16 +05:30
Beata Skiba 6e08007ce1 Distribute pods efficiently in CA scalability tests
Instead of using runReplicatedPodOnEachNode method
which is suited to a small number of nodes,
distribute pods on the nodes with desired load
using RCs that eat up all the space we want to be
empty after distribution.
2017-08-24 15:21:32 +02:00
Andrzej Wasylkowski 6a41614342 Made the difference between scale-up timeout and cluster set-up timeout explicit. 2017-08-21 13:21:50 +02:00
Jeff Grafton a7f49c906d Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
Jeff Grafton 33276f06be Use buildozer to remove deprecated automanaged tags 2017-08-11 09:31:50 -07:00
Aleksandra Malinowska 0beaa3a25b add Cluster Autoscaler scalability test suite 2017-08-10 15:08:55 +02:00
Beata Skiba e4f6b144cf Allow for some pods not to get scheduled in CA tests.
This will allow us to ignore long tail node creation or failure
to create some nodes when running scalability tests on kubemark.
2017-08-03 12:41:05 +02:00
xiangpengzhao 13726a8229 Add [sig-autoscaling] prefix to autoscaling e2e tests 2017-08-01 20:06:11 +08:00
Harry Zhang 0e8517875e Update factory.go informers to update equivalence cache
Fix tombstone

Add e2e to verify equivalence cache

Addressing nits in factory,go and e2e

Update build files
2017-07-18 23:55:01 +08:00
Kubernetes Submit Queue 8dcedb0ecb Merge pull request #48879 from aleksandra-malinowska/test-cleanup
Automatic merge from submit-queue

Update autoscaling tests OWNERS

Add current members of autoscaling team to autoscaling tests OWNERS
2017-07-18 03:36:35 -07:00
Jacob Simpson 29c1b81d4c Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
Maciej Pytel f53be7bd22 Fix condition in autoscaler e2e
Fix off-by-one in cluster-autoscaler that made the test trivially
pass (without actually requiring scale-up to happen).
2017-07-17 10:57:11 +02:00
Kubernetes Submit Queue 396d8b1189 Merge pull request #48280 from MaciekPytel/ca_scale_to_0_e2e_2
Automatic merge from submit-queue (batch tested with PRs 46091, 48280)

Added scale-down-to-0 e2e for cluster autoscaler
2017-07-16 18:04:45 -07:00
Aleksandra Malinowska 7eb429644e Add current members of autoscaling teams to autoscaling tests OWNERS 2017-07-13 17:23:38 +02:00
Aleksandra Malinowska e12e630376 add more logs for debugging to autoscaling tests 2017-07-13 11:40:49 +02:00
Kubernetes Submit Queue 3f6124f185 Merge pull request #48468 from aleksandra-malinowska/autoscaling-volumes-test-fix
Automatic merge from submit-queue (batch tested with PRs 46926, 48468)

Fix typo in cluster size autoscaling tests selector

This caused tests not to be run automatically
2017-07-04 06:56:24 -07:00
Aleksandra Malinowska 933b2efdcf fix test selector 2017-07-04 14:01:07 +02:00
Aleksandra Malinowska d10cf91cf4 Fix issue with not waiting for nodes to be fully schedulable during test cleanup 2017-06-30 16:16:02 +02:00
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