Launch WeaveDNS with --debug when DEBUG is set
This commit is contained in:
1 parent
9a99a51e14
commit
8621aa7cbf
11 files changed
+17
-11
No files matched your search
@@ -8,7 +8,7 @@ NAME=seetwo.weave.local
|
||||
|
||||
start_suite "Resolve names on a single host"
|
||||
|
||||
weave_on $HOST1 launch-dns 10.2.254.1/24
|
||||
weave_on $HOST1 launch-dns 10.2.254.1/24 $WEAVEDNS_ARGS
|
||||
|
||||
start_container $HOST1 $C2/24 --name=c2 -h $NAME
|
||||
start_container_with_dns $HOST1 $C1/24 --name=c1
|
||||
|
||||
@@ -11,8 +11,8 @@ NAME2=seetwo.weave.local
|
||||
NAME4=seefour.weave.local
|
||||
|
||||
start() {
|
||||
weave_on $HOST1 launch-dns $1 >/dev/null
|
||||
weave_on $HOST2 launch-dns $2 >/dev/null
|
||||
weave_on $HOST1 launch-dns $1 $WEAVEDNS_ARGS >/dev/null
|
||||
weave_on $HOST2 launch-dns $2 $WEAVEDNS_ARGS >/dev/null
|
||||
}
|
||||
|
||||
stop() {
|
||||
|
||||
@@ -9,7 +9,7 @@ NAME=seetwo.$DOMAIN
|
||||
|
||||
start_suite "Resolve names in custom domain"
|
||||
|
||||
weave_on $HOST1 launch-dns 10.2.254.1/24 --domain $DOMAIN.
|
||||
weave_on $HOST1 launch-dns 10.2.254.1/24 --domain $DOMAIN. $WEAVEDNS_ARGS
|
||||
|
||||
start_container $HOST1 $C2/24 --name=c2 -h $NAME
|
||||
start_container_with_dns $HOST1 $C1/24 --name=c1
|
||||
|
||||
@@ -10,7 +10,7 @@ NAME=seeone.$DOMAIN
|
||||
|
||||
start_suite "Resolve unqualified names"
|
||||
|
||||
weave_on $HOST1 launch-dns 10.2.254.1/24
|
||||
weave_on $HOST1 launch-dns 10.2.254.1/24 $WEAVEDNS_ARGS
|
||||
|
||||
start_container $HOST1 $C1/24 --name=c1 -h $NAME
|
||||
start_container_with_dns $HOST1 $C2/24 --name=c2 -h seetwo.$DOMAIN
|
||||
|
||||
@@ -10,7 +10,7 @@ NAME3=seethree.weave.local
|
||||
|
||||
start_suite "Add and remove names on a single host"
|
||||
|
||||
weave_on $HOST1 launch-dns 10.2.254.1/24 --no-cache
|
||||
weave_on $HOST1 launch-dns 10.2.254.1/24 $WEAVEDNS_ARGS
|
||||
|
||||
start_container $HOST1 $C2/24 --name=c2
|
||||
start_container_with_dns $HOST1 $C1/24 --name=c1
|
||||
|
||||
@@ -16,7 +16,7 @@ check() {
|
||||
|
||||
start_suite "Automatic DNS record removal on container death"
|
||||
|
||||
weave_on $HOST1 launch-dns 10.2.254.1/24 --no-cache
|
||||
weave_on $HOST1 launch-dns 10.2.254.1/24 $WEAVEDNS_ARGS
|
||||
start_container_with_dns $HOST1 $C1/24 --name=c1
|
||||
|
||||
start_container $HOST1 $C2/24 $DOPTS
|
||||
|
||||
@@ -2,9 +2,12 @@
|
||||
|
||||
. ./config.sh
|
||||
|
||||
DNS_ARGS="--no-cache"
|
||||
[ -n "$DEBUG" ] && DNS_ARGS="--debug"
|
||||
|
||||
start_suite "Resolve a non-weave address"
|
||||
|
||||
weave_on $HOST1 launch-dns 10.2.254.1/24 --no-cache
|
||||
weave_on $HOST1 launch-dns 10.2.254.1/24 $WEAVEDNS_ARGS
|
||||
|
||||
start_container_with_dns $HOST1 10.2.1.5/24 --name=c1
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ start_suite "Weave run/start/attach/detach with multiple cidr arguments"
|
||||
# lowest available address in the subnet
|
||||
|
||||
weave_on $HOST1 launch -debug -iprange 10.2.3.0/24
|
||||
weave_on $HOST1 launch-dns 10.254.254.254/24
|
||||
weave_on $HOST1 launch-dns 10.254.254.254/24 $WEAVEDNS_ARGS
|
||||
|
||||
# Run container with three cidrs
|
||||
CID=$(start_container $HOST1 ip:10.2.1.1/24 10.2.2.1/24 net:10.2.3.0/24 --name=multicidr -h $NAME | cut -b 1-12)
|
||||
|
||||
@@ -9,7 +9,7 @@ C2_NAME=seetwo.weave.local
|
||||
|
||||
start_suite "Proxy registers containers with dns"
|
||||
|
||||
weave_on $HOST1 launch-dns 10.2.254.1/24
|
||||
weave_on $HOST1 launch-dns 10.2.254.1/24 $WEAVEDNS_ARGS
|
||||
weave_on $HOST1 launch-proxy --with-dns
|
||||
proxy docker_on $HOST1 run -e WEAVE_CIDR=$C2/24 -dt --name=c2 -h $C2_NAME $DNS_IMAGE /bin/sh
|
||||
proxy docker_on $HOST1 run -e WEAVE_CIDR=$C1/24 -dt --name=c1 $DNS_IMAGE /bin/sh
|
||||
|
||||
@@ -8,7 +8,7 @@ NAME=seetwo.weave.local
|
||||
|
||||
start_suite "Proxy restart reattaches networking to containers"
|
||||
|
||||
weave_on $HOST1 launch-dns 10.2.254.1/24
|
||||
weave_on $HOST1 launch-dns 10.2.254.1/24 $WEAVEDNS_ARGS
|
||||
weave_on $HOST1 launch-proxy --with-dns
|
||||
proxy docker_on $HOST1 run -e WEAVE_CIDR=$C2/24 -dt --name=c2 -h $NAME $SMALL_IMAGE /bin/sh
|
||||
proxy docker_on $HOST1 run -e WEAVE_CIDR=$C1/24 -dt --name=c1 $DNS_IMAGE /bin/sh
|
||||
|
||||
@@ -36,6 +36,9 @@ CHECK_ETHWE_UP="grep ^1$ /sys/class/net/ethwe/carrier"
|
||||
|
||||
DOCKER_PORT=2375
|
||||
|
||||
WEAVEDNS_ARGS="--no-cache"
|
||||
[ -n "$DEBUG" ] && WEAVEDNS_ARGS="--debug"
|
||||
|
||||
remote() {
|
||||
rem=$1
|
||||
shift 1
|
||||
|
||||
Reference in new issue
Block a user