Skip to content

Commit

Permalink
Pull the route reflector version indicated in versions.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bcreane authored and Neil Jerram committed Dec 1, 2017
1 parent 2e9b81c commit 73583ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions calico_node/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ st: dist/calicoctl dist/calicoctl-v1.0.2 busybox.tar routereflector.tar calico-n
-e DEBUG_FAILURES=$(DEBUG_FAILURES) \
-e MY_IP=$(LOCAL_IP_ENV) \
-e NODE_CONTAINER_NAME=$(NODE_CONTAINER_NAME) \
-e RR_VER=$(RR_VER) \
--rm -ti \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(SOURCE_DIR):/code \
Expand Down
7 changes: 4 additions & 3 deletions calico_node/tests/st/utils/route_reflector.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def __enter__(self):
#
# See https://github.com/projectcalico/calico-bird/tree/feature-ipinip/build_routereflector
# for details.
rr_ver = os.getenv("RR_VER", "latest")
if os.getenv("ETCD_SCHEME", None) == "https":
# Etcd is running with SSL/TLS, pass the key values
rr.execute("docker run --privileged --net=host -d "
Expand All @@ -59,9 +60,9 @@ def __enter__(self):
"-e ETCD_CERT_FILE=%s "
"-e ETCD_KEY_FILE=%s "
"-v %s/certs:%s/certs "
"calico/routereflector" %
"calico/routereflector:%s" %
(ip_env, ETCD_HOSTNAME_SSL, ETCD_CA, ETCD_CERT,
ETCD_KEY, CHECKOUT_DIR,CHECKOUT_DIR))
ETCD_KEY, CHECKOUT_DIR, CHECKOUT_DIR, rr_ver))
rr.execute(r'curl --cacert %s --cert %s --key %s '
r'-L https://%s:2379/v2/keys/calico/bgp/v1/rr_v4/%s '
r'-XPUT -d value="{'
Expand All @@ -75,7 +76,7 @@ def __enter__(self):
rr.execute("docker run --privileged --net=host -d "
"--name rr %s "
"-e ETCD_ENDPOINTS=http://%s:2379 "
"calico/routereflector" % (ip_env, get_ip()))
"calico/routereflector:%s" % (ip_env, get_ip(), rr_ver))
rr.execute(r'curl -L http://%s:2379/v2/keys/calico/bgp/v1/rr_v4/%s '
r'-XPUT -d value="{'
r'\"ip\":\"%s\",'
Expand Down

0 comments on commit 73583ac

Please sign in to comment.