Merge "Fix to get main SDNC pod to come up"
authorBorislav Glozman <Borislav.Glozman@amdocs.com>
Thu, 12 Apr 2018 11:46:49 +0000 (11:46 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 12 Apr 2018 11:46:49 +0000 (11:46 +0000)
kubernetes/sdnc/resources/config/bin/startODL.sh

index ee8106c..aa50cda 100755 (executable)
@@ -27,8 +27,8 @@ function enable_odl_cluster(){
   fi
 
   echo "Installing Opendaylight cluster features"
-  ${ODL_HOME}/bin/client -u karaf feature:install odl-mdsal-clustering
-  ${ODL_HOME}/bin/client -u karaf feature:install odl-jolokia
+  ${ODL_HOME}/bin/client feature:install odl-mdsal-clustering
+  ${ODL_HOME}/bin/client feature:install odl-jolokia
 
   echo "Update cluster information statically"
   hm=$(hostname)
@@ -86,6 +86,10 @@ then
 
         echo "Restarting OpenDaylight"
         ${ODL_HOME}/bin/stop
+
+        echo "Waiting 60 seconds for OpenDaylight stop to complete"
+        sleep 60
+
         echo "Installed at `date`" > ${SDNC_HOME}/.installed
 fi