summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2016-08-12 06:55:41 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-08-12 06:55:41 +0000
commit245ae419189c55b46918053b9284b47d13dff5ab (patch)
tree526a2ad62da5c3c1c8f7728b38a6979083f472b1
parent41c309ff3d87b4916b6b9f2328309630780a6452 (diff)
parentb0e8c3d9fd64510d5201cfd43b854438e3ad5d62 (diff)
Merge "Fix Yardstick connection issue on virtual env"
-rwxr-xr-xjjb/yardstick/yardstick-daily.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/jjb/yardstick/yardstick-daily.sh b/jjb/yardstick/yardstick-daily.sh
index e8df9be58..7e9a65b82 100755
--- a/jjb/yardstick/yardstick-daily.sh
+++ b/jjb/yardstick/yardstick-daily.sh
@@ -23,6 +23,11 @@ elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
# replace the default one by the customized one provided by jenkins config
fi
+# Set iptables rule to allow forwarding return traffic for container
+if ! sudo iptables -C FORWARD -j RETURN 2> ${redirect} || ! sudo iptables -L FORWARD | awk 'NR==3' | grep RETURN 2> ${redirect}; then
+ sudo iptables -I FORWARD -j RETURN
+fi
+
opts="--privileged=true --rm"
envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
-e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} \