Commit Graph

29150 Commits

Author SHA1 Message Date
Jan Safranek
41adcc5496 Speed up binding of provisioned volumes
This fixes e2e test for provisioning - it expects that provisioned volumes
are bound quickly.

Majority of this patch is update of test framework needs to initialize the
controller appropriately.
2016-05-18 10:06:51 +02:00
Jan Safranek
c6f05c8056 provisioning: Add unit testso for provisioning errors. 2016-05-18 10:06:51 +02:00
Jan Safranek
c24b33793c unit test: Add possibility to inject kubeclient errors. 2016-05-18 10:06:51 +02:00
Jan Safranek
92dc159ab6 Delete provisioned volumes that are not needed.
We should delete volumes that are provisioned for a claim and the claim
gets bound to different volume during the provisioning.
2016-05-18 10:06:51 +02:00
Jan Safranek
9fb0f7a3fd provisioning: Unit tests 2016-05-18 10:06:51 +02:00
Jan Safranek
514d595881 provisioning: Implement provisioner 2016-05-18 10:06:51 +02:00
Jan Safranek
75b0e2ad63 provisioning: Refactor volume plugins.
NewPersistentVolumeTemplate() and Provision() are merged into one call.
2016-05-18 10:06:51 +02:00
Jan Safranek
dd7890c362 delete: Implement Deleter 2016-05-18 10:06:51 +02:00
Jan Safranek
22e68d4622 recycler: unit tests
- Add reclaim policy to newVolume() call.
- Implement reactor Volumes().Get().
- Implement mock volume plugin.
- Add recycler tests.
- Add a synchronization condition to controller.scheduleOperation
  - we need to pause the controller here, let the test to do some bad things
    to the controller and test error cases in recycleVolumeOperation.

Test framework gets more and more complicated... But this is the last piece,
I promise.
2016-05-18 10:06:24 +02:00
Jan Safranek
a08d826ca5 Make a separate functions to emit events and change status.
These two seem to be always used together.
2016-05-18 10:06:24 +02:00
Jan Safranek
1feb346830 recycler: implement recycler
Also update the old unit test to pass. New unit tests will be added in
subsequent commit.
2016-05-18 10:06:24 +02:00
Jan Safranek
56cae2dc20 unit test framework: Wait for all running operations to finish during all tests. 2016-05-18 10:06:24 +02:00
Jan Safranek
cf68370371 recycler: Maintain a list of long-running operations.
We need to keep list of running recyclers, deleters and provisioners in
memory in order not to start a new recycling/deleting/provisioning twice
for the same volume/claim.

This will be eventually replaced by GoRoutineMap from PR #24838.
2016-05-18 10:06:24 +02:00
Jan Safranek
4e47f69cba recycler: Implement volume host interfaces.
We need the controller to implement volume.VolumeHost interface to be able
to call recycle plugins.
2016-05-18 10:06:24 +02:00
Jan Safranek
a17f0d5949 Move release logic to standalone function. 2016-05-18 10:06:23 +02:00
Jan Safranek
7b73384fda Add controller method tests. 2016-05-18 10:05:14 +02:00
k8s-merge-robot
bf4f84167f Merge pull request #23567 from smarterclayton/init_containers
Automatic merge from submit-queue

Add init containers to pods

This implements #1589 as per proposal #23666

Incorporates feedback on #1589, creates parallel structure for InitContainers and Containers, adds validation for InitContainers that requires name uniqueness, and comments on a number of implications of init containers.

This is a complete alpha implementation.

<!-- 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/23567)
<!-- Reviewable:end -->
2016-05-18 00:53:30 -07:00
Tim Hockin
152c86ab06 Make name validators return string slices 2016-05-18 00:48:01 -07:00
k8s-merge-robot
a10a62f5e7 Merge pull request #25755 from pmorie/flakes-be-gone
Automatic merge from submit-queue

Add notes about endgame for test flakes

@lavalamp as we discussed last week, sorry for the latency.
2016-05-18 00:13:45 -07:00
k8s-merge-robot
6e5db87304 Merge pull request #25717 from asalkeld/pr-template
Automatic merge from submit-queue

Explain how to close an issue within a commit message

## Pull Request Guidelines

This adds some guidance on how to close issues automatically.
2016-05-17 22:55:44 -07:00
k8s-merge-robot
51203dad7a Merge pull request #25763 from andyzheng0831/gci-image
Automatic merge from submit-queue

GCI: Fix the condition for using the default image

This PR revises the condition for using the default GCI image. The old logic is not convenient for manually run e2e tests in some cases (mainly for GCI team to test custom images). The new logic by this PR is very similar to the logic in using ContainerVM. When setting distro to "gci", if master or node image is unset, we use gci-dev for it. If either is set, we respect it.

@roberthbailey @zmerlynn @dchen1107 please review it, and we should cherry pick it in release-1.2 branch. Thanks!

cc/ @kubernetes/goog-image @adityakali FYI
2016-05-17 22:55:41 -07:00
k8s-merge-robot
bf8a513a6f Merge pull request #25770 from zmerlynn/fix_root_disk_size
Automatic merge from submit-queue

Fix gce/util.sh:get-master-root-disk-size

Fixes problem from #25670

```
cluster/../cluster/../cluster/gce/util.sh: line 632: [: missing `]'
```


[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-05-17 22:11:56 -07:00
Tim Hockin
66d0d87829 Make IsValidLabelValue return error strings 2016-05-17 21:36:10 -07:00
pwittrock
c7bfbe6460 Clean up kubectl test to use the blessed e2e test redis configs and to output debug info when failing. Debugs #25657. 2016-05-18 04:22:09 +00:00
Tim Hockin
e16375e052 Revert "Update cassandra.list" 2016-05-17 20:09:34 -07:00
k8s-merge-robot
48748a7477 Merge pull request #25777 from david-mcmahon/fixchangelog
Automatic merge from submit-queue

Fix content for v1.3.0-alpha.4 release notes.
2016-05-17 20:04:58 -07:00
k8s-merge-robot
8b59db7b64 Merge pull request #25756 from janetkuo/e2e-fail-guestbook
Automatic merge from submit-queue

Fix e2e test failure: pull redis image from gcr instead of docker

## Pull Request Guidelines

1. Please read our [contributor guidelines](https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md).
1. See our [developer guide](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md).
1. Follow the instructions for [labeling and writing a release note for this PR](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes) in the block below.

```release-note
* Use the release-note-* labels to set the release note state 
* Clear this block to use the PR title as the release note 
-OR-
* Enter your extended release note here
```

Fixes #25677

cc @jayunit100 @fejta  
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-05-17 19:23:14 -07:00
zhouhaibing089
2afa7eed44 fix the Store to be Indexer 2016-05-18 10:18:13 +08:00
Angus Salkeld
448b1d2fde Explain how to close an issue within a PR message
- updated the headline
- updated the checklist numbers (was all "1.")
- converted the instructions into a markdown comment to make it
  clearer what is an instruction.
2016-05-18 10:03:50 +10:00
k8s-merge-robot
07d1060192 Merge pull request #25765 from mtaufen/node_e2e_fix
Automatic merge from submit-queue

Remove call to setup_env from hack/e2e-node-test.sh

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()

This messes with the GOPATH in a way that confuses ginkgo,
and doesn't appear to be necessary to run the tests

Removes likely unnecessary use of sudo, though it should be noted that
e2e_node_suite_test.go uses sudo to do something with locksmithd, so you
currently end up using it anyway.

Updates the error for not having ginkgo built to recommend the new vendor/
path for ginkgo, and to recommend using make instead of hack/build-go.sh

Should resolve #25682
2016-05-17 16:37:18 -07:00
David McMahon
179f89507a Fix content for v1.3.0-alpha.4 release notes. 2016-05-17 16:11:56 -07:00
Janet Kuo
e428b77cbe Fix e2e test failure: pull redis image from gcr instead of docker 2016-05-17 15:12:09 -07:00
Janet Kuo
b51782206f Generate gobindata data 2016-05-17 15:12:07 -07:00
David McMahon
088a683a2c Update CHANGELOG.md for v1.3.0-alpha.4. 2016-05-17 15:11:04 -07:00
Zach Loafman
4d551d640d Bump GCE ContainerVM to container-v1-3-v20160517
Bump to Docker 1.11.1
2016-05-17 14:52:16 -07:00
Paul Morie
e157febfe2 Add notes about endgame for test flakes 2016-05-17 17:34:09 -04:00
gmarek
6d27009db1 NodeController doesn't evict Pods if no Nodes are Ready 2016-05-17 23:03:21 +02:00
Chao Xu
0cda99b8d7 fixing TestCascadingDeletion flake 2016-05-17 13:48:37 -07:00
Zach Loafman
87a8905b2c Fix gce/util.sh:get-master-root-disk-size 2016-05-17 13:43:17 -07:00
Johannes Scheuermann
cb11324cc3 Add support for OSX and Linux 2016-05-17 21:31:32 +02:00
Michael Taufen
ee079c958a Remove call to setup_env from hack/e2e-node-test.sh
This messes with the GOPATH in a way that confuses ginkgo,
and doesn't appear to be necessary to run the tests

Removes likely unnecessary use of sudo, though it should be noted that
e2e_node_suite_test.go uses sudo to do something with locksmithd, so you
currently end up using it anyway.

Updates the error for not having ginkgo built to recommend the new vendor/
path for ginkgo, and to recommend using make instead of hack/build-go.sh

Should resolve #25682
2016-05-17 11:46:00 -07:00
Dan Lorenc
fb2817a335 Add the check_node_count flag to the excluded flags whitelist. 2016-05-17 10:53:42 -07:00
Andy Zheng
e47f45d1a3 GCI: Fix the condition for using the default image 2016-05-17 10:53:14 -07:00
k8s-merge-robot
f3ab7b182f Merge pull request #25751 from gmarek/gatherer
Automatic merge from submit-queue

Fix resource-gatherer that never gathered resources from non-master m…
2016-05-17 10:15:36 -07:00
k8s-merge-robot
7b4851b9ae Merge pull request #21274 from derekwaynecarr/kubelet_eviction
Automatic merge from submit-queue

out of resource killing (memory)

Adds the core framework for low-resource killing in the kubelet.

Implements support for out of memory killing.

Related:
https://github.com/kubernetes/kubernetes/pull/18724

<!-- 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/21274)
<!-- Reviewable:end -->
2016-05-17 10:15:32 -07:00
Dan Lorenc
7e9cae85fe Add a flag that lets e2e tests be run against single-node clusters. 2016-05-17 09:18:20 -07:00
gmarek
eb48166d5b Fix resource-gatherer that never gathered resources from non-master machines 2016-05-17 17:53:18 +02:00
k8s-merge-robot
a24f03c3c9 Merge pull request #25669 from deads2k/fix-npe
Automatic merge from submit-queue

prevent nil pointer when starting controllers before running the shar…

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

https://github.com/kubernetes/kubernetes/pull/23795 changed initialization order, so the controller isn't guaranteed to be present at startup.

@mqliang @wojtek-t I'm pretty sure that we're not guaranteed to get back the correct `cache.Indexer` or `cache.Store` either.  I'll look at re-plumbing the `AddIndexer` path to use the same instance so that its safe to use again.
2016-05-17 07:54:12 -07:00
k8s-merge-robot
959e6ca6b1 Merge pull request #25742 from jszczepkowski/kac-nodeport-test
Automatic merge from submit-queue

Added e2e test for cluster autoscaler that verifies host ports.

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()

Added e2e test for cluster autoscaler that verifies host ports.
2016-05-17 07:13:24 -07:00
Jan Chaloupka
0e0be8421f gcr.io/google_containers/mounttest: use Stat instead of Lstat to retrieve fileinfo of symlinks as well 2016-05-17 15:57:33 +02:00