diff --git a/prog/net-plugin/config.json b/prog/net-plugin/config.json index d0615bbe..740a285d 100644 --- a/prog/net-plugin/config.json +++ b/prog/net-plugin/config.json @@ -50,6 +50,14 @@ } ], "env": [ + { + "description": "Log level", + "name": "LOG_LEVEL", + "settable": [ + "value" + ], + "value": "" + }, { "description": "Extra args to `weaver` and `plugin`", "name": "EXTRA_ARGS", diff --git a/prog/net-plugin/launch.sh b/prog/net-plugin/launch.sh index 7da70f89..dda7f9bd 100755 --- a/prog/net-plugin/launch.sh +++ b/prog/net-plugin/launch.sh @@ -7,6 +7,7 @@ IPALLOC_RANGE=${IPALLOC_RANGE:-10.32.0.0/12} HTTP_ADDR=${WEAVE_HTTP_ADDR:-127.0.0.1:6784} STATUS_ADDR=${WEAVE_STATUS_ADDR:-0.0.0.0:6782} HOST_ROOT=${HOST_ROOT:-/host} +LOG_LEVEL=${LOG_LEVEL:-info} WEAVE_DIR="/host/var/lib/weave" mkdir $WEAVE_DIR || true @@ -44,7 +45,7 @@ exec /home/weave/weaver $EXTRA_ARGS --port=6783 $(router_bridge_opts) \ --no-dns \ --ipalloc-range=$IPALLOC_RANGE \ --nickname "$(hostname)" \ - --log-level=debug \ + --log-level=$LOG_LEVEL \ --db-prefix="$WEAVE_DIR/weave" \ --plugin-v2 \ $(multicast_opt) \ diff --git a/site/tasks/ipam/troubleshooting-ipam.md b/site/tasks/ipam/troubleshooting-ipam.md index 34f46277..bddffb53 100644 --- a/site/tasks/ipam/troubleshooting-ipam.md +++ b/site/tasks/ipam/troubleshooting-ipam.md @@ -50,7 +50,7 @@ peers and their reachability can be obtained with ``` $ weave status ipam -00:00:00:00:00:01(one) 349526 IPs (33.3% of total) +00:00:00:00:00:01(one) 349526 IPs (33.3% of total) (2 active) 00:00:00:00:00:02(two) 349525 IPs (33.3% of total) 00:00:00:00:00:03(three) 349525 IPs (33.3% of total) - unreachable! ``` @@ -59,6 +59,8 @@ Columns are as follows: * Peer Name and Nickname * Absolute quantity/percentage of allocation range managed by peer +* Active - number of IP addresses in use on that peer - this is only + available for the peer where you run the status command. * Indication of unreachability. This means that the peer is not visible (directly or indirectly) to the peer on which `weave status ipam` was run; whilst this could be a transient condition due to a