added congress charm as well.
[joid.git] / ci / deploy.sh
index b91e761..0382bb3 100755 (executable)
@@ -11,7 +11,7 @@ openstack=mitaka
 opnfvlab=default
 opnfvrel=c
 opnfvfeature=odl_l2
-opnfvdistro=trusty
+opnfvdistro=xenial
 opnfvarch=amd64
 
 read_config() {
@@ -133,7 +133,7 @@ check_status() {
     timeoutiter=0
     while [ $retval -eq 0 ]; do
        sleep 30
-       juju status > status.txt 
+       juju status > status.txt
        if [ "$(grep -c "executing" status.txt )" -ge 1 ]; then
            echo " still executing the reltionship within charms ..."
            if [ $timeoutiter -ge 60 ]; then
@@ -150,17 +150,19 @@ check_status() {
 }
 
 echo "...... deployment started ......"
-#deploy_dep
 deploy
+
+#temporary change the user instances as dhcp failed with limitation exceeded.
+# to be remove once charm fixes the issue
+
+if [ "$opnfvdistro" == "xenial" ]; then
+    juju ssh neutron-gateway/0 "echo 512 | sudo tee /proc/sys/fs/inotify/max_user_instances"
+fi
+# Temorary change end
+
 check_status
 echo "...... deployment finished  ......."
 
-if [ "$opnfvsdn" == "onos" ]; then
-    ./openstack.sh "$opnfvsdn"
-    check_status
-else
-    #create the basic data for verification of stack.
-    ./openstack.sh
-fi
+./openstack.sh "$opnfvsdn"
 
 echo "...... finished  ......."