Merge branch '2.0'

This commit is contained in:
Matthias Radestock committed 2017-06-25 21:17:41 +01:00
commit 179a560e1d
7 files changed
+12 -42

No files matched your search

-2
View File
@@ -37,7 +37,6 @@ coverage.html
prog/weaver/weaver prog/weaver/weaver
prog/weavedns/weavedns prog/weavedns/weavedns
prog/weavehosts/weavehosts prog/weavehosts/weavehosts
prog/weaveproxy/weaveproxy
prog/sigproxy/sigproxy prog/sigproxy/sigproxy
prog/weavewait/weavewait prog/weavewait/weavewait
prog/weavewait/weavewait_noop prog/weavewait/weavewait_noop
@@ -55,7 +54,6 @@ releases
weave*.tar.gz weave*.tar.gz
prog/weaver/weave prog/weaver/weave
prog/weaveexec/weavehosts prog/weaveexec/weavehosts
prog/weaveexec/weaveproxy
prog/weaveexec/weavewait prog/weaveexec/weavewait
prog/weaveexec/weavewait_noop prog/weaveexec/weavewait_noop
prog/weaveexec/weavewait_nomcast prog/weaveexec/weavewait_nomcast
+3 -2
View File
@@ -7,6 +7,7 @@ import (
) )
func TestMain(t *testing.T) { func TestMain(t *testing.T) {
weavetest.TrimTestArgs() if weavetest.TrimTestArgs() {
main() main()
}
} }
@@ -1,28 +0,0 @@
---
title: Troubleshooting
menu_order: 60
search_type: Documentation
---
The command
weave status
reports on the current status of various Weave Net components, including
the proxy, if it is running:
```
...
Service: proxy
Address: tcp://127.0.0.1:12375
...
```
Information on the operation of the proxy can be obtained from the
weaveproxy container logs using:
docker logs weaveproxy
**See Also**
* [Troubleshooting Weave](/site/troubleshooting.md)
+1 -1
View File
@@ -12,7 +12,7 @@ assert_raises "check_restart $HOST1 weave"
# in the old containers being removed and new ones created # in the old containers being removed and new ones created
weave_on $HOST1 stop weave_on $HOST1 stop
weave_on $HOST1 launch --no-restart weave_on $HOST1 launch --no-restart
assert "docker_on $HOST1 inspect -f '{{.HostConfig.RestartPolicy.Name}}' weave weaveproxy" "no" assert "docker_on $HOST1 inspect -f '{{.HostConfig.RestartPolicy.Name}}' weave" "no"
assert_raises "! check_restart $HOST1 weave" assert_raises "! check_restart $HOST1 weave"
# Relaunch to prevent the `weave stop` in `end_suite` # Relaunch to prevent the `weave stop` in `end_suite`
+2 -5
View File
@@ -136,9 +136,7 @@ stop_weave_on() {
host=$1 host=$1
weave_on $host stop 1>/dev/null 2>&1 || true weave_on $host stop 1>/dev/null 2>&1 || true
if [ -n "$COVERAGE" ]; then if [ -n "$COVERAGE" ]; then
for C in weaveplugin weave ; do collect_coverage $host weave
collect_coverage $host $C
done
fi fi
} }
@@ -322,8 +320,7 @@ check_restart() {
start_suite() { start_suite() {
for host in $HOSTS; do for host in $HOSTS; do
[ -z "$DEBUG" ] || echo "Cleaning up on $host: removing all containers and resetting weave" [ -z "$DEBUG" ] || echo "Cleaning up on $host: removing all containers and resetting weave"
PLUGIN_FILTER=$(docker_on $host inspect -f 'grep -v {{printf "%.12s" .Id}}' weaveplugin 2>/dev/null) || PLUGIN_FILTER=cat rm_containers $host $(docker_on $host ps -aq 2>/dev/null)
rm_containers $host $(docker_on $host ps -aq 2>/dev/null | $PLUGIN_FILTER)
weave_on $host reset 2>/dev/null weave_on $host reset 2>/dev/null
run_on $host sudo rm -f /opt/cni/bin/weave-plugin-latest /opt/cni/bin/weave-net /opt/cni/bin/weave-ipam /etc/cni/net.d/10-weave.conf run_on $host sudo rm -f /opt/cni/bin/weave-plugin-latest /opt/cni/bin/weave-net /opt/cni/bin/weave-ipam /etc/cni/net.d/10-weave.conf
done done
+5 -3
View File
@@ -35,8 +35,9 @@ func stackTrace(all bool) string {
return string(buf[:stacklen]) return string(buf[:stacklen])
} }
// TrimTestArgs finds the first -- in os.Args and trim all args before that // TrimTestArgs finds the first -- in os.Args and trim all args before
func TrimTestArgs() { // that, returning true when a -- was in fact found.
func TrimTestArgs() bool {
i, l := 0, len(os.Args) i, l := 0, len(os.Args)
for ; i < l; i++ { for ; i < l; i++ {
if os.Args[i] == "--" { if os.Args[i] == "--" {
@@ -44,7 +45,8 @@ func TrimTestArgs() {
} }
} }
if i == l { if i == l {
panic("Specify weave args after --") return false
} }
os.Args = append(os.Args[:1], os.Args[i+1:l]...) os.Args = append(os.Args[:1], os.Args[i+1:l]...)
return true
} }
+1 -1
Submodule tools updated: 80dd78e6e3...11400eaa2c.