From 018946bcbd64ef61d5c79502ffc55630a18b3cfd Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Tue, 4 Oct 2016 19:56:28 +0200 Subject: [PATCH] install_from_source updated to allow time for RO and SO to be active Change-Id: I175816ede437d9150759ba918704db122627a300 Signed-off-by: garciadeblas --- installers/install_from_source | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/installers/install_from_source b/installers/install_from_source index 409137b3..ea1631d1 100755 --- a/installers/install_from_source +++ b/installers/install_from_source @@ -107,7 +107,7 @@ echo -e "\nConfiguring components" echo -e " Configuring RO" lxc exec RO -- sed -i -e "s/^\#\?log_socket_host:.*/log_socket_host: $SO_CONTAINER_IP/g" /opt/openmano/openmanod.cfg lxc exec RO -- service openmano restart -sleep 5 +time=0; step=1; timelength=10; while [ $time -le $timelength ]; do sleep $step; echo -n "."; time=$((time+step)); done; echo RO_TENANT_ID=`lxc exec RO -- openmano tenant-create osm |awk '{print $1}'` echo -e " Configuring VCA" @@ -118,7 +118,8 @@ JUJU_CONTROLLER_IP=`lxc exec VCA -- lxc list -c 4 |grep eth0 |awk '{print $2}'` echo -e " Configuring SO" sudo route add -host $JUJU_CONTROLLER_IP gw $VCA_CONTAINER_IP lxc exec SO-ub -- nohup sudo -b -H /usr/rift/rift-shell -r -i /usr/rift -a /usr/rift/.artifacts -- ./demos/launchpad.py --use-xml-mode -sleep 60 +time=0; step=18; timelength=180; while [ $time -le $timelength ]; do sleep $step; echo -n "."; time=$((time+step)); done; echo + curl -k --request POST \ --url https://$SO_CONTAINER_IP:8008/api/config/config-agent \ --header 'accept: application/vnd.yang.data+json' \ -- 2.25.1