Move up iptables command to avoid lock failure
Change-Id: I412871a9eb2c15c9fa2e8e0a5e2b6cbb1e275d1f
diff --git a/seba-in-a-box/Makefile b/seba-in-a-box/Makefile
index 84e3858..0d25e75 100644
--- a/seba-in-a-box/Makefile
+++ b/seba-in-a-box/Makefile
@@ -17,6 +17,7 @@
sudo apt update
sudo apt install -y httpie jq software-properties-common
sudo swapoff -a
+ sudo iptables -P FORWARD ACCEPT
touch $@
/usr/bin/docker: | $(M)/setup
@@ -109,7 +110,6 @@
touch $@
$(M)/ponsim: | $(M)/voltha
- sudo iptables -P FORWARD ACCEPT
cd $(WORKSPACE)/cord/helm-charts; helm upgrade --install ponnet ponnet
$(WORKSPACE)/cord/helm-charts/scripts/wait_for_pods.sh kube-system
cd $(WORKSPACE)/cord/helm-charts; helm upgrade --install ponsimv2 ponsimv2 -f $(SEBAVALUES)
@@ -154,7 +154,7 @@
sleep 5; \
done
http -a karaf:karaf --ignore-stdin POST http://127.0.0.1:30120/onos/v1/configuration/org.opencord.olt.impl.Olt defaultVlan=65535
- timeout 60s bash -c "until http -a admin@opencord.org:letmein GET http://127.0.0.1:30001/xosapi/v1/att-workflow-driver/attworkflowdriverserviceinstances |jq '.items[0].authentication_state'|grep AWAITING; do echo 'waiting for att-workflow-driver to be in AWAITING state'; sleep 5; done"
+ timeout 2m bash -c "until http -a admin@opencord.org:letmein GET http://127.0.0.1:30001/xosapi/v1/att-workflow-driver/attworkflowdriverserviceinstances |jq '.items[0].authentication_state'|grep AWAITING; do echo 'waiting for att-workflow-driver to be in AWAITING state'; sleep 5; done"
touch $@
echo "SEBA-in-a-Box installation finished!"