Commit Graph

58 Commits

Author SHA1 Message Date
k8s-merge-robot
d37e6ad332 Merge pull request #24126 from Random-Liu/fix-pull-image
Automatic merge from submit-queue

Fix PullImage and add corresponding node e2e test

Fixes #24101. This is a bug introduced by #23506, since ref #23563.

The root cause of #24101 is described [here](https://github.com/kubernetes/kubernetes/issues/24101#issuecomment-208547623).

This PR
1) Fixes #24101 by decoding the messages returned during pulling image, and return error if any of the messages contains error.
2) Add the node e2e test to detect this kind of failure.
3) Get present check out of `ConformanceImage.Remove()` and `ConformanceImage.Pull()`. Because sometimes we may expect error to occur in `PullImage()` and `RemoveImage()`, but even that doesn't happen, the `Present()` check will still return error and let the test pass.

@yujuhong @freehan @liangchenye 

Also /cc @resouer, because he is doing the image related functions refactoring.
2016-04-18 07:05:44 -07:00
k8s-merge-robot
934d7ebb33 Merge pull request #23968 from yujuhong/privileged_containers
Automatic merge from submit-queue

e2e_node: port privileged pod tests from test/e2e/priviliged.go

The ported test is functionally the same as the original test.
The main difference between the two tests is that the original test relies on
`kubectl` to exec into the container, while the latter directly uses the REST
client of the apiserver. This avoids the need to copy kubectl to the node under
test.
2016-04-17 12:37:12 -07:00
Phillip Wittrock
d37222d1d9 kubelet e2e test - format command output as string, not byte string. 2016-04-15 15:17:59 -07:00
Phillip Wittrock
5155df0287 Don't clean up files on image-based tests since the instance will be deleted anyway and this is flaky on CoreOS. Fixed #24297 2016-04-15 10:32:26 -07:00
k8s-merge-robot
2382fec956 Merge pull request #23894 from vishh/oom-score-adj-error
Automatic merge from submit-queue

Do not throw creation errors for containers that fail immediately after being started

Fixes (hopefully) #23607 

cc @dchen1107
2016-04-14 22:29:14 -07:00
k8s-merge-robot
14d9764b77 Merge pull request #24271 from pwittrock/flaky
Automatic merge from submit-queue

Only output log files if tests fail
2016-04-14 21:42:58 -07:00
Phillip Wittrock
e88fdb85c0 Only output log files if tests fail 2016-04-14 12:04:36 -07:00
goltermann
a3104ba96c Final vet fixes; enabling vet checks in verify scripts. 2016-04-13 13:51:51 -07:00
Random-Liu
2b9f6bea18 Fix PullImage and corresponding node e2e test. 2016-04-12 10:42:25 -07:00
Vishnu kannan
d100e3147f Convert the node conformance tests to use dedicated images.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-04-11 14:38:43 -07:00
Vishnu kannan
d4db40e87f Adding an e2e test for oom score adjust handling.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-04-11 12:51:42 -07:00
Yu-Ju Hong
6567c54e45 e2e_node: port privileged pod tests from test/e2e/priviliged.go
The ported test is functionally the same as the original test.
The main difference between the two tests is that the original test relies on
`kubectl` to exec into the container, while the latter directly uses the REST
client of the apiserver. This avoids the need to copy kubectl to the node under
test.
2016-04-06 19:09:07 -07:00
Phillip Wittrock
015b9a6489 Retry failed image pulls. Closes #23669. 2016-04-01 09:48:19 -07:00
Phillip Wittrock
8002e10fbb node e2e Output failed health checks as string not bytes 2016-04-01 09:20:30 -07:00
k8s-merge-robot
eb665e038c Merge pull request #23285 from pwittrock/flaky
Automatic merge from submit-queue

node e2e conformance keep polling if encounters errors
2016-03-29 22:56:03 -07:00
Phillip Wittrock
183562d79a node e2e conformance keep polling if encounters errors 2016-03-28 12:02:33 -07:00
goltermann
32d569d6c7 Fixing all the "composite literal uses unkeyed fields" Vet errors. 2016-03-25 15:25:09 -07:00
goltermann
34d4eaea08 Fixing several (but not all) go vet errors. Most are around string formatting, or unreachable code. 2016-03-22 17:26:50 -07:00
k8s-merge-robot
d37baf748f Merge pull request #22933 from liangchenye/imageConform
Auto commit by PR queue bot
2016-03-22 04:27:50 -07:00
liangchenye
41d40824cf image operation conformance test
Signed-off-by: liang chenye <liangchenye@huawei.com>
2016-03-17 15:27:07 +08:00
Phillip Wittrock
85f09cbcfe node e2e - make more resilient to flakes 2016-03-14 17:03:06 -07:00
k8s-merge-robot
61c4958dcc Merge pull request #22859 from pwittrock/flaky-node
Auto commit by PR queue bot
2016-03-11 14:30:51 -08:00
Phillip Wittrock
ce2d2c84c1 use different pod names and namespaces 2016-03-11 09:13:37 -08:00
derekwaynecarr
f0bfbcedcd Bump timeout time for e2e node test services 2016-03-04 17:07:35 -05:00
Vishnu kannan
e33ec7a6ba Re-enable system metrics kubelet tests.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-03-02 14:55:26 -08:00
k8s-merge-robot
51b005500d Merge pull request #22215 from pwittrock/enable-readonly-e2e
Auto commit by PR queue bot
2016-03-01 14:52:00 -08:00
Phillip Wittrock
b897981a11 Node e2e test - fix and re-enable readonly volume test. Fixes #21320 2016-02-29 14:46:34 -08:00
Saad Ali
4183ac174b Merge pull request #21408 from krousey/unversioned_breakup
Move restclient to it's own package
2016-02-29 14:03:09 -08:00
Phillip Wittrock
9287e6c388 Node e2e sync pr builder host images to ci host images.
- Also fix seeding issue in run_e2e.go
- Disable failing kubelet_test for system container metrics
2016-02-29 12:15:55 -08:00
Kris
e664ef922f Move restclient to its own package 2016-02-29 12:05:13 -08:00
k8s-merge-robot
89038f3b1f Merge pull request #20415 from liangchenye/e2etest
Auto commit by PR queue bot
2016-02-29 07:34:05 -08:00
k8s-merge-robot
c4ffcbdbaa Merge pull request #21398 from liggitt/time-param
Auto commit by PR queue bot
2016-02-27 03:37:07 -08:00
Phillip Wittrock
0db316970c Node e2e fix etcd compability issues across versions 2016-02-26 15:44:40 -08:00
Phillip Wittrock
a11489e0ff Node e2e documentations and minor features
- Add README.md for node e2e tests
- Add support for --cleanup=false to leave test files on remote hosts and temporary instances for debugging
- Add ubuntu trusty instances for docker 1.8 and docker 1.9 to jenkins pr builder
- Disable coreos-beta for jenkins ci since it is failing - need to investigate
2016-02-26 10:58:48 -08:00
liangchenye
e3861cd6fc use phase to test container status
Signed-off-by: liangchenye <liangchenye@huawei.com>
2016-02-26 14:32:03 +08:00
liangchenye
7d41164931 blackbox test: list, create, remove
Signed-off-by: liangchenye <liangchenye@huawei.com>
2016-02-26 12:31:29 +08:00
Jordan Liggitt
ea59b4c741 Fix sinceTime pod log options 2016-02-25 00:46:13 -05:00
Phillip Wittrock
c51c606f22 Node e2e test runner - run against images
- support allocating gce instances from images and running tests against them
- set --hostname-override to match node name
- add jenkins script to source to reproduce jenkins build locally
2016-02-24 16:29:59 -08:00
Phillip Wittrock
a3623c0c14 Refactor node e2e tests
- Add Makefile targets
- Start services in the test harness and connect locally
- Build test into binary and copy to remote host to start services
- Use tar to copy binaries to remote hosts to simplify design
2016-02-22 20:06:15 -08:00
Tim St. Clair
225f903ccf Move stats summary types to a new kubelet/api package to avoid unnecessary dependencies 2016-02-17 10:53:25 -08:00
Phillip Wittrock
d8a689c195 diable readonly fs tests until 21320 is resolved 2016-02-16 10:08:01 -08:00
Nick Schuch
5d511aeb54 Adds ReadOnlyRootFilesystem support for containers 2016-02-14 15:39:51 +10:00
Tim St. Clair
f258737e84 Fix broken node test from 7a54f94 2016-02-12 15:49:35 -08:00
Phillip Wittrock
3c708db4b8 Include kubelet logs in output when running node e2e tests 2016-02-09 10:41:13 -08:00
Phillip Wittrock
6cb09700e0 Don't expect secret volume for node e2e tests 2016-02-08 10:08:41 -08:00
Phillip Wittrock
3de94cd23c Supply volume fs metrics to server/stats/handler.go
* Metrics will not be expose until they are hooked up to a handler
* Metrics are not cached and expose a dos vector, this must be fixed before release or the stats should not be exposed through an api endpoint
2016-02-05 16:00:24 -08:00
Phillip Wittrock
ba5be34574 Kubelet Metrics Summary Api Implementation 2016-02-04 14:05:28 -08:00
Phillip Wittrock
4397bdedf3 Errof -> Warningf 2016-01-07 13:29:17 -08:00
Phillip Wittrock
aebc1bcc92 node e2e tests - retry fkaky failures caused by gcloud authentication 2016-01-07 12:17:24 -08:00
Phillip Wittrock
41f5b0b765 Node e2e test - propagate errors from tests to runner exit code. 2015-12-17 15:37:11 -08:00