diff options
author | Fatih Degirmenci <fdegir@gmail.com> | 2018-03-19 13:02:05 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-03-19 13:02:05 +0000 |
commit | a1d9dcf5027d42a3ce519f5fb6163c9ad5777801 (patch) | |
tree | 63f212f4dd824720bf12c0d59e976f475b446d3b /jjb | |
parent | 09d0a1f22abe00a9708237b710718830e1e84f4e (diff) | |
parent | 92e6380e7428b18ac2515a13a2f10fbfd7971c4c (diff) |
Merge "Remove iptables and unset privileged flag"
Diffstat (limited to 'jjb')
-rwxr-xr-x | jjb/functest/functest-k8.sh | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/jjb/functest/functest-k8.sh b/jjb/functest/functest-k8.sh index e331f4448..49d7163a9 100755 --- a/jjb/functest/functest-k8.sh +++ b/jjb/functest/functest-k8.sh @@ -35,11 +35,6 @@ results_vol="-v ${dir_result}:${FUNCTEST_DIR}/results" volumes="${rc_file_vol} ${results_vol} ${admin_conf_file_vol}" -# 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 - envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} \ -e NODE_NAME=${NODE_NAME} -e DEPLOY_SCENARIO=${DEPLOY_SCENARIO} \ -e BUILD_TAG=${BUILD_TAG} -e DEPLOY_TYPE=${DEPLOY_TYPE}" @@ -52,7 +47,7 @@ FUNCTEST_IMAGE=opnfv/functest-kubernetes:${DOCKER_TAG} echo "Pulling Docker image ${FUNCTEST_IMAGE} ..." docker pull ${FUNCTEST_IMAGE}>/dev/null cmd_opt="run_tests -r -t all" -cmd="docker run --rm --privileged=true ${envs} ${volumes} ${FUNCTEST_IMAGE} /bin/bash -c '${cmd_opt}'" +cmd="docker run --rm ${envs} ${volumes} ${FUNCTEST_IMAGE} /bin/bash -c '${cmd_opt}'" echo "Running Functest k8s test cases, CMD: ${cmd}" eval ${cmd} ret_value=$? |