Do not run "docker kill" inside smoke tests, because Docker 1.13.1
Otherwise test suites hang if run with Docker 1.13.1. See: https://github.com/docker/docker/issues/31447
This commit is contained in:
1 parent
eb5435d275
commit
2ba8764615
2 files changed
+10
-3
No files matched your search
@@ -14,7 +14,10 @@ weave_on $HOST3 launch $HOST1
|
||||
weave_on $HOST3 prime
|
||||
|
||||
# nuke 1st peer
|
||||
docker_on $HOST1 kill weave
|
||||
# NOTE: docker-kill hangs (https://github.com/docker/docker/issues/31447), so we
|
||||
# kill directly the weaver process instead.
|
||||
WEAVER_PID=$(container_pid $HOST1 weave)
|
||||
run_on $HOST1 "sudo kill -9 $WEAVER_PID"
|
||||
|
||||
# transfer its space to the 2nd
|
||||
weave_on $HOST2 rmpeer $PEER1
|
||||
|
||||
@@ -15,7 +15,7 @@ run_container() {
|
||||
}
|
||||
|
||||
start_suite "Proxy uses correct entrypoint and command with weavewait"
|
||||
weave_on $HOST1 launch-proxy
|
||||
weave_on $HOST1 launch-proxy --no-restart
|
||||
|
||||
build_image check-ethwe-up '["grep"]' '["^1$", "/sys/class/net/ethwe/carrier"]'
|
||||
run_container "check-ethwe-up"
|
||||
@@ -27,7 +27,11 @@ build_image false '["/bin/false"]' ''
|
||||
run_container "--entrypoint='grep' false ^1$ /sys/class/net/ethwe/carrier"
|
||||
|
||||
weave_on $HOST1 launch-router --ipalloc-range 10.2.2.0/24
|
||||
docker_on $HOST1 kill weaveproxy
|
||||
# NOTE: docker-kill hangs (https://github.com/docker/docker/issues/31447), so we
|
||||
# kill directly the weaveproxy process instead.
|
||||
WEAVEPROXY_PID=$(container_pid $HOST1 weaveproxy)
|
||||
$SSH $HOST1 "ps aux | grep weaveproxy"
|
||||
run_on $HOST1 "sudo kill -9 $WEAVEPROXY_PID"
|
||||
weave_on $HOST1 launch-proxy
|
||||
|
||||
assert_raises "proxy docker_on $HOST1 run check-ethwe-up"
|
||||
|
||||
Reference in new issue
Block a user