Fix feature config for clustering 81/58081/2
authorjmac <james.macnider@amdocs.com>
Mon, 30 Jul 2018 20:18:44 +0000 (20:18 +0000)
committerjmac <james.macnider@amdocs.com>
Wed, 1 Aug 2018 18:41:58 +0000 (18:41 +0000)
Also added missing "server" keyword to karaf start

Change-Id: I765efd1411a26f8e00302c882ae3d61402c1c0c3
Signed-off-by: jmac <james.macnider@amdocs.com>
Issue-ID: SDNC-347

kubernetes/sdnc/resources/config/bin/startODL.sh

index 6383853..9d1ab76 100755 (executable)
@@ -27,7 +27,8 @@ function enable_odl_cluster(){
   fi
 
   echo "Installing Opendaylight cluster features"
-  cat $ODL_HOME/etc/org.apache.karaf.features.cfg | sed -e "\|featuresBoot=config|s|$|,odl-mdsal-clustering,odl-jolokia|" > $ODL_HOME/etc/org.apache.karaf.features.cfg
+  mv $ODL_HOME/etc/org.apache.karaf.features.cfg $ODL_HOME/etc/org.apache.karaf.features.cfg.orig
+  cat $ODL_HOME/etc/org.apache.karaf.features.cfg.orig | sed -e "\|featuresBoot=config|s|$|,odl-mdsal-clustering,odl-jolokia|" > $ODL_HOME/etc/org.apache.karaf.features.cfg
   #${ODL_HOME}/bin/client feature:install odl-mdsal-clustering
   #${ODL_HOME}/bin/client feature:install odl-jolokia
 
@@ -118,5 +119,5 @@ then
         echo "Installed at `date`" > ${SDNC_HOME}/.installed
 fi
 
-exec ${ODL_HOME}/bin/karaf
+exec ${ODL_HOME}/bin/karaf server