fuel-deploy: Add temporary iptables rule 31/59331/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 29 Jun 2018 13:06:09 +0000 (15:06 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 29 Jun 2018 13:06:09 +0000 (15:06 +0200)
Functest Docker has issues connecting to Openstack clusters on
Ericsson virtual PODs due to iptables rules interfering.
Apply old iptables workaround from functest, at least until we
rootcause and fix the issue on those virtual PODs.

JIRA: FUNCTEST-985

Change-Id: I01b6788e5dd7a9fd64e80e3e78d7cd8828570cb1
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
jjb/fuel/fuel-deploy.sh

index 433061a..a4b40f4 100755 (executable)
@@ -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!"