Merge pull request #2416 from weaveworks/issues/2293-warn-router-down

Check that weave router is running before launching plugin

Fixes #2293.
This commit is contained in:
Matthias Radestock authored and GitHub committed 2016-07-01 10:24:15 +01:00
commit df0af203f8
2 files changed
+6 -2

No files matched your search

+2 -2
View File
@@ -23,8 +23,8 @@ assert_raises "! check_restart $HOST1 weave"
assert_raises "! check_restart $HOST1 weaveproxy"
assert_raises "! check_restart $HOST1 weaveplugin"
# Relaunch the plugin to prevent the `weave stop` in `end_suite`
# Relaunch to prevent the `weave stop` in `end_suite`
# timing out trying to remove the plugin network
weave_on $HOST1 launch-plugin
weave_on $HOST1 launch --no-restart
end_suite
+4
View File
@@ -1978,6 +1978,10 @@ EOF
echo $PROXY_CONTAINER
;;
launch-plugin)
if ! check_running $CONTAINER_NAME 2>/dev/null ; then
echo "ERROR:" $CONTAINER_NAME "container must be running before plugin can be launched" >&2
exit 1
fi
launch_plugin_if_not_running "$@"
echo $PLUGIN_CONTAINER
;;