Marc CARRE
43249a8d39
Change all launch-*/stop-* commands to launch/stop.
...
Given `proxy` & `router` processes have been merged, `launch-proxy`,
`launch-router`, `stop-proxy`, `stop-router` do not make sense any more, and
should just be `launch` and `stop` with the appropriate flags.
2017-05-10 10:25:36 +00:00
Marc CARRE
0dff07dc8b
Scripts now source dependencies using relative paths (previously breaking make depending on current directory).
2016-12-13 16:00:37 +00:00
Martynas Pumputis
02d9c090ed
Add wait_for_attached
2016-05-12 12:25:59 +01:00
Martynas Pumputis
671ed724d5
Move wait_for_proxy to config.sh
2016-05-12 12:15:20 +01:00
Bryan Boreham
469d456c8b
Smoke-test for container restart with proxy attach failure
2016-05-09 11:19:19 +01:00
Matthias Radestock
48534b1e30
unbreak tests
...
Broken in an attempt to help with #2090 .
2016-03-23 17:22:40 +00:00
Matthias Radestock
c75cadf007
more correct sudo scoping
...
we want to know whether systemctl can be run when sudoing.
This shouldn't fix #2090 , only give is a different error.
2016-03-23 13:00:04 +00:00
Matthias Radestock
4c0fe7b006
take advantage of restart=always in tests
...
This should have been done as part of #2029 .
2016-03-19 17:43:49 +00:00
Bryan Boreham
e468399616
Extend the timeout for dead containers to 30 seconds,
...
but remove them if they are destroyed, to reduce starvation
when users are creating and destroying containers quickly.
2016-01-12 14:38:44 +00:00
Bryan Boreham
f84b933d7c
Leave container allocations for a time after death
...
so they will be reclaimed if the container is restarted.
Still cancel pending operations immediately a container dies
2016-01-12 14:38:44 +00:00
Adam Harrison
0661ccdea9
Revert "Revert "Disable restart of docker""
...
This reverts commit 76db732f1b .
2015-11-11 10:10:17 +00:00
Adam Harrison
76db732f1b
Revert "Disable restart of docker"
...
This reverts commit a400a3dd09 .
2015-11-10 10:24:58 +00:00
Bryan Boreham
a400a3dd09
Disable restart of docker
2015-11-05 14:20:38 +00:00
Adam Harrison
06eaac8690
Don't assert ethwe carrier via the proxy
...
The test script runs commands inside containers via docker exec to
ensure the ethwe carrier is up. We must not run these commands via the
proxy because it will interpose weavewait, which will block forever if
attachment has failed (e.g. due to #1556 ).
2015-11-03 15:42:37 +00:00
Adam Harrison
6b9e8816d1
Wait for proxy to become available after docker is restarted
2015-11-03 15:33:37 +00:00
Bryan Boreham
383c3769aa
Try en even bigger sleep
2015-10-22 12:19:57 +01:00
Bryan Boreham
26d43f193e
Move docker restart test above the place where we stop part of weave
2015-10-20 07:07:04 +00:00
Bryan Boreham
20ac0edda8
Try a bigger sleep to get Docker restarted
2015-10-19 15:46:48 +00:00
Bryan Boreham
a87cc5c3b1
Get the proxy to re-attach the weave router if it sees it restart
2015-10-19 15:46:47 +00:00
Paul Bellamy
a0f0367e60
[proxy] don't kill containers when starting the proxy
2015-10-16 15:33:43 +01:00
Bryan Boreham
b712ba1e04
Extend test to cover containers restarting automatically
2015-09-01 17:48:22 +01:00
Matthias Radestock
fa2aa1f791
Merge branch '1.0'
...
Conflicts:
test/640_proxy_restart_reattaches_test.sh
2015-08-13 19:46:23 +01:00
Matthias Radestock
65578211ef
extract test functions for "start container via proxy"
...
This also eliminates the redefinition of 'start_container' by some of
the tests, which causes failures when multiple tests are run with
`run_all.sh`.
Fixes #1294 .
2015-08-13 15:01:15 +01:00
Tom Wilkie
8b061fd555
Gossip-based DNS embedded in the router.
...
- Nameserver holds a sorted list of (hostname, peer, container id, ip) tuples.
- Entries are gossiped using topology gossip / broadcast - only new/updated entries
are propogated as expected.
- Entries for a given peer are removed when the connection to the peer is lost.
- Entries are tombstoned when containers die. Tombstones are kept for 10mins,
as they do not need to survive partition, only gossip propagation delay.
2015-07-14 16:00:38 +00:00
Alvaro Saurin
8a935e3cb2
Launch WeaveDNS with "launch_dns_on"
2015-06-16 15:29:36 +02:00
Alvaro Saurin
8621aa7cbf
Launch WeaveDNS with --debug when DEBUG is set
2015-06-16 14:58:53 +02:00
Matthias Radestock
b42b045c08
cosmetic: vertical alignment
2015-05-23 10:30:45 +01:00
Paul Bellamy
11931f3ea2
[tests] extract gliderlabs/alpine and aanand/docker-dnsutils into var in
...
config.sh
@bboreham made me do it.
2015-05-22 15:52:36 +01:00
Paul Bellamy
73071f2c62
cleanup proxy test helpers
2015-05-22 10:04:09 +01:00
Paul Bellamy
eeaa6c9e2c
use grep in /sys to verify ethwe is up in tests
...
Closes #707 . `ip link show` seems to "lag" the real state. In tests
checking the physical link state is good enough.
2015-05-20 13:36:36 +01:00
Paul Bellamy
e6b587ea8d
proxy needs to add weavewait to execs as well
...
Bug came up in a test where we are restarting and doing an exec checking
a network interface right away. weavewait is only added if the container
has a WEAVE_CIDR var set, the same as at container creation.
2015-05-19 17:36:53 +01:00
Paul Bellamy
ca4b8e6f8e
add proxy support for 'docker restart'
2015-05-19 10:34:46 +01:00