Merge pull request #2331 from weaveworks/issues/2320-plugin-warning

Augment warning on active plugin endpoints
This commit is contained in:
Adam Harrison committed 2016-06-03 16:17:31 +01:00
commit 9b6154cf63
2 files changed
+14 -6

No files matched your search

+2 -6
View File
@@ -1708,12 +1708,8 @@ plugin_disabled() {
[ -n "$WEAVE_NO_PLUGIN" ] || ! check_docker_server_api_version 1.21
}
warn_plugin_active() {
echo "WARNING: docker may hang in this state; re-launch weave and remove attached containers before shutting down" >&2
}
stop_plugin() {
util_op remove-plugin-network weave || warn_plugin_active
util_op remove-plugin-network weave || true
stop $PLUGIN_CONTAINER_NAME "Plugin"
}
@@ -2158,7 +2154,7 @@ EOF
;;
reset)
[ $# -eq 0 ] || usage
plugin_disabled || util_op remove-plugin-network weave || warn_plugin_active
plugin_disabled || util_op remove-plugin-network weave || true
warn_if_stopping_proxy_in_env
call_weave DELETE /peer >/dev/null 2>&1 || true
fractional_sleep 0.5 # Allow some time for broadcast updates to go out