X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Ffuel%2Ffuel-deploy.sh;h=a4b40f44f3839ea1cd0352015952f42113d1555d;hb=b4a65c5e6777a53be5ea817c967caeee51285a7f;hp=35bf3dc0142cc9fc8459938035fe7d5f83d60f32;hpb=c592bdf51b90bf2ce827b08a3586d97c833ec9f5;p=releng.git diff --git a/jjb/fuel/fuel-deploy.sh b/jjb/fuel/fuel-deploy.sh index 35bf3dc01..a4b40f44f 100755 --- a/jjb/fuel/fuel-deploy.sh +++ b/jjb/fuel/fuel-deploy.sh @@ -55,8 +55,8 @@ if [ "${PROJECT}" = 'fuel' ]; then fi else SUDO= - # Armband currently supports arm, enea labs - if [[ ! "${LAB_NAME}" =~ (arm|enea) ]]; then + # Armband currently supports arm, enea, unh labs + if [[ ! "${LAB_NAME}" =~ (arm|enea|unh) ]]; then echo "Unsupported/unidentified lab ${LAB_NAME}. Cannot continue!" exit 1 fi @@ -111,6 +111,15 @@ echo ${DEPLOY_COMMAND} exit_code=$? +# Temporary workaround for ericsson-virtual* PODs functest integration +# See https://jira.opnfv.org/browse/FUNCTEST-985 +# Set iptables rule to allow forwarding return traffic for container +redirect=/dev/stdout +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 + echo echo "--------------------------------------------------------" echo "Deployment is done!"