Alex Robinson
3043ae9144
Merge pull request #4492 from jlowdermilk/e2e
...
Cleanup resources after services/guestbook e2e tests.
2015-02-17 12:04:46 -08:00
CJ Cullen
47622092fd
Merge pull request #4164 from tkulczynski/mig
...
Use Managed Instance Group for managing Nodes in GCE
2015-02-17 12:01:48 -08:00
Tomek Kulczynski
bcadad2e2e
Use Managed Instance Group instead of manually creating Nodes in GCE
2015-02-17 20:33:31 +01:00
Jeff Lowdermilk
8ad671b01e
Cleanup resources after shell tests exit
2015-02-17 11:27:54 -08:00
Brian Grant
866135e52c
Merge pull request #4436 from EricMountain-1A/noargs-kubectl-create-test-fix
...
Fix "kubectl create with no args" test to verify exit code
2015-02-17 10:31:00 -08:00
Brian Grant
f3ec56bba6
Merge pull request #4437 from filbranden/hack_e2e_simplify_cmd_exec
...
Simplify usage of os/exec
2015-02-17 09:59:05 -08:00
Brian Grant
e1b07efd36
Merge pull request #4450 from mikedanese/update-fix
...
fix error where we can't use kubectl update patch
2015-02-17 09:58:18 -08:00
Brian Grant
876d651737
Merge pull request #4395 from smarterclayton/split_naming
...
Fix cross-namespace LIST and WATCH
2015-02-17 09:40:09 -08:00
Clayton Coleman
0e07e61a53
Merge pull request #4381 from sdminonne/bug_fix
...
kubectl delete resource : remove all resources
2015-02-17 12:25:56 -05:00
Clayton Coleman
9175082a1c
Split naming behavior out into objects that are derived from the request
...
Fix bug with cross namespace queries not being possible. Ensure selflink
is set on lists correctly.
2015-02-16 00:23:38 -05:00
Mike Danese
9f9153256d
fix error where we can't use patch and add cmd-test for patch and file
...
update
2015-02-15 10:43:35 -08:00
Filipe Brandenburger
70d37800b7
Simplify usage of os/exec
...
For now, keep the finishRunning() wrapper but use a straight cmd.Run()
call instead of the convoluted goroutine trying to catch signals.
It turns out that Unix process group handling is enough to interrupt
pending processes when stopping the run with something like a Ctrl+C
which should be enough.
Tested:
- Full e2e run with hack/e2e-test.sh, two tests failed but looks like
they've been failing before this change.
- Started a hack/e2e.go -v -build and interrupted it with Ctrl+C,
confirmed that build-release.sh was killed in the process.
2015-02-13 14:53:42 -08:00
Eric Mountain
b639f6ece4
Fix "kubectl create with no args" test to verify exit code instead of evaluating (empty) stdout of the command.
2015-02-13 23:18:24 +01:00
Jeff Lowdermilk
aa32f1b2ce
Retry #4337 : Make gce kubeconfig context include project
2015-02-13 13:31:50 -08:00
Salvatore Dario Minonne
fda17c1b7a
kubectl delete resource : remove all resources
2015-02-13 18:25:41 +01:00
Jeff Lowdermilk
61cc821506
Make local clusters work painlessly with kubeconfig
2015-02-12 16:30:41 -08:00
Brendan Burns
8b66b3f1da
Merge pull request #4400 from erictune/no_port_conflict
...
Make cleanup of local cluster more robust.
2015-02-12 16:16:54 -08:00
Eric Tune
e82b97d237
Make cleanup of local cluster more robust.
...
Try to cleanup if there is a failure in script at any point.
Handle undefined vars in cleanup.
Wait longer for apiserver.
Exit if apiserver doesn't come up.
2015-02-12 14:29:55 -08:00
Jerzy Szczepkowski
f94da1e6aa
Initial implementation of kube-dump.sh - script which dumps state of Kubernetes cluster for debugging. Tested on GCE only. This is initial attempt to fix #3500 .
2015-02-12 21:48:34 +01:00
Filipe Brandenburger
f9a4471eca
Merge pull request #4356 from filbranden/hack_e2e_clustersize_output
...
Simplify ValidateClusterSize() to use cmd.Output() directly
2015-02-11 16:55:30 -08:00
roberthbailey
2ed888592b
Merge pull request #4351 from rajatchopra/master
...
democratize restart-apiserver method across clouds
2015-02-11 15:23:06 -08:00
Filipe Brandenburger
43543faaa7
Simplify ValidateClusterSize() to use cmd.Output() directly
...
This is a first step towards getting rid of finishRunningWithOutputs and
using the native os/exec methods directly where possible.
2015-02-11 15:02:24 -08:00
Rajat Chopra
56462c020a
democratize restart-apiserver method across clouds
2015-02-11 13:44:43 -08:00
Zach Loafman
a08e04dd68
Unpatch Jenkins now that #4177 is fixed
...
And actually, make it more better: Go ahead and tear down the cluster
even when tests fail, but (hopefully) relay the test exit status
correctly. This fails if there's a double error (if -down *also*
fails, we'll fail due to errexit), but either way is a build failure,
and this means that the teardown of a test failure build isn't getting
charged to the next run.
2015-02-11 13:42:14 -08:00
Filipe Brandenburger
55e8357c0f
Merge pull request #4339 from zmerlynn/issue_4177
...
Fix hack/e2e.go exit status for -test
2015-02-11 13:21:37 -08:00
Zach Loafman
f08f7e6972
Clean up output handling in hack/e2e.go
...
Dovetail stdout/stderr and remove escaping for TAP.
2015-02-11 13:12:48 -08:00
Zach Loafman
ab38a78d70
Test() was mis-tracked. Change the variable name / handling here, and
...
also just make it unset so that if it's ever uninitialized it's
obvious.
Fixes #4177
2015-02-11 13:11:03 -08:00
Filipe Brandenburger
50a399fa30
Merge pull request #4341 from zmerlynn/i4340
...
Fix e2e-internal scripts for cluster-size and watch-events
2015-02-11 13:00:27 -08:00
Zach Loafman
9257b58e68
Fix e2e-internal scripts for cluster-size and watch-events
...
Fixes #4340
2015-02-11 12:46:31 -08:00
Brian Grant
20f7cbb87b
Merge pull request #4291 from jlowdermilk/delete-kubecfg
...
Remove kubecfg, cleanup a few stray references.
2015-02-11 11:18:59 -08:00
roberthbailey
e14ebcbea8
Merge pull request #4317 from justinsb/retry_logic_on_update
...
Fix polling in e2e-suite/update.sh: exit if we time out
2015-02-11 11:09:04 -08:00
Justin Santa Barbara
934bf51fe9
Fix polling in e2e-suite/update.sh: exit if we time out
...
Also reduce the number of iterations to 20
2015-02-11 13:56:27 -05:00
roberthbailey
ed8237119f
Merge pull request #4316 from justinsb/optional_args
...
Default value for ${@}, otherwise nounset causes failure
2015-02-11 10:41:10 -08:00
roberthbailey
d68107be5e
Merge pull request #4314 from justinsb/e2e_fixes
...
Remove stray r
2015-02-11 10:29:20 -08:00
Justin Santa Barbara
8cbd97d8bd
Default value for ${@}, otherwise nounset causes failure
2015-02-11 12:39:06 -05:00
Justin Santa Barbara
4cf0e4c37f
Remove stray r
2015-02-11 12:34:19 -05:00
Jeff Lowdermilk
197059b65d
Remove kubecfg, cleanup a few stray references.
2015-02-10 16:43:12 -08:00
CJ Cullen
a840c20939
Merge pull request #4158 from HackToday/master
...
Check curl before use it
2015-02-10 16:24:53 -08:00
Zach Loafman
2f231e0a2a
Merge pull request #4268 from rajatchopra/master
...
Fix vagrant networking round 2
2015-02-10 07:39:48 -08:00
Rajat Chopra
1d12cad456
Fix vagrant networking. Include the master as part of overlay. And remove STP for efficiency.
...
fix e2e services for vagrant
Kubelet should wait on SDN to finish
Do not require docker on master for default clouds
2015-02-09 14:37:27 -08:00
Zach Loafman
6b8c332cd3
Revert "Fix vagrant networking"
2015-02-09 13:40:11 -08:00
Clayton Coleman
d6069aa13a
Merge pull request #4204 from rajatchopra/master
...
Fix vagrant networking
2015-02-09 14:52:13 -05:00
Clayton Coleman
4369e31b9d
Integration tests should use 127.0.0.1 consistently
2015-02-09 14:30:31 -05:00
Brendan Burns
e7a69504b4
Now that we automatically format GCE PD, remove formatting from the e2e test.
...
Also remove docs that note that it is necessary.
2015-02-06 20:30:58 -08:00
Rajat Chopra
a9d8713db4
fix e2e services for vagrant
2015-02-06 18:34:27 -08:00
Filipe Brandenburger
162d7a00b3
Fix hack/e2e.go --ctl output
...
Export the KUBE_CONFIG_FILE environment variable pointing to the test
output when calling cluster/kubectl.sh directly.
Tested by running:
$ go run ./hack/e2e.go -v -ctl='version --match-server-version=false'
2015-02-06 14:36:35 -08:00
Filipe Brandenburger
e63ccfff6c
Reintroduce "Turn the hack/e2e.go commands into standalone scripts."
...
This reverts commit 2765660101
,
which reverted a commit 0c7dce77dd
, so
we're reintroducing the same code from that commit here.
2015-02-06 14:35:43 -08:00
Zach Loafman
2765660101
Revert "Turn the hack/e2e.go commands into standalone scripts."
2015-02-06 14:13:00 -08:00
Zach Loafman
fc06acdd2b
Merge pull request #4198 from filbranden/e2e_standalone_scripts
...
Turn the hack/e2e.go commands into standalone scripts.
2015-02-06 12:24:48 -08:00
Filipe Brandenburger
0c7dce77dd
Turn the hack/e2e.go commands into standalone scripts.
...
This gets rid of bashWrap() and of running bash -s passing it a script
on stdin. Also get rid of most of the runBash*() helpers.
In particular, `go run hack/e2e.go -build` will now work when it needs
to ask whether it is OK to download a large docker image, it used to
fail since stdin was not available for the bash script using the `read`
command.
Tested by running a full `hack/e2e-test.sh` run including the build
stage without the docker image loaded, which used to fail before this
change.
2015-02-06 11:18:14 -08:00