From b8e46a813a4c1810e9845d2013611d02da129d1b Mon Sep 17 00:00:00 2001 From: Patrick Brady Date: Thu, 5 Sep 2019 13:53:26 -0700 Subject: [PATCH] Move location of config copy The copying of config files for opendaylight must be moved so that is occurs before opendaylight is started since opendaylight is currently not able to be restarted due to the dblib class not found error. Change-Id: I8bce29e88a008fb12ef104d3963ce0425d6bbb30 Signed-off-by: Patrick Brady Issue-ID: CCSDK-1683 --- installation/appc/src/main/scripts/dockerInstall.sh | 8 -------- installation/appc/src/main/scripts/startODL.sh | 9 +++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/installation/appc/src/main/scripts/dockerInstall.sh b/installation/appc/src/main/scripts/dockerInstall.sh index 7708dcb..4ac996d 100644 --- a/installation/appc/src/main/scripts/dockerInstall.sh +++ b/installation/appc/src/main/scripts/dockerInstall.sh @@ -64,14 +64,6 @@ echo "" >> $APPC_HOME/data/properties/appc.properties echo "appc.asdc.env=$DMAAP_TOPIC_ENV" >> $APPC_HOME/data/properties/appc.properties echo "" >> $APPC_HOME/data/properties/appc.properties -echo "Copying the aaa shiro configuration into opendaylight" -cp ${APPC_HOME}/data/aaa-app-config.xml ${ODL_HOME}/etc/opendaylight/datastore/initial/config/aaa-app-config.xml - -echo "Copying jetty, keystore for https into opendalight" -cp ${APPC_HOME}/data/jetty.xml ${ODL_HOME}/etc/jetty.xml -cp ${APPC_HOME}/data/keystore ${ODL_HOME}/etc/keystore -cp ${APPC_HOME}/data/custom.properties ${ODL_HOME}/etc/custom.properties - #echo "Stopping OpenDaylight and waiting for it to stop" #${ODL_HOME}/bin/stop #The karaf command will exit when odl shuts down. This is the most reliable way to wait for opendaylight to stop diff --git a/installation/appc/src/main/scripts/startODL.sh b/installation/appc/src/main/scripts/startODL.sh index fdb2c58..c288939 100644 --- a/installation/appc/src/main/scripts/startODL.sh +++ b/installation/appc/src/main/scripts/startODL.sh @@ -87,6 +87,15 @@ echo "Starting cdt-proxy-service jar, logging to ${APPC_HOME}/cdt-proxy-service/ java -jar ${APPC_HOME}/cdt-proxy-service/cdt-proxy-service.jar > ${APPC_HOME}/cdt-proxy-service/jar.log & echo "Starting ODL/APPC" + +echo "Copying the aaa shiro configuration into opendaylight" +cp ${APPC_HOME}/data/aaa-app-config.xml ${ODL_HOME}/etc/opendaylight/datastore/initial/config/aaa-app-config.xml + +echo "Copying jetty, keystore for https into opendalight" +cp ${APPC_HOME}/data/jetty.xml ${ODL_HOME}/etc/jetty.xml +cp ${APPC_HOME}/data/keystore ${ODL_HOME}/etc/keystore +cp ${APPC_HOME}/data/custom.properties ${ODL_HOME}/etc/custom.properties + ODL_BOOT_FEATURES_EXTRA="odl-netconf-connector,odl-restconf-noauth,odl-netconf-clustered-topology,odl-mdsal-clustering" sed -i -e "\|featuresBoot[^a-zA-Z]|s|$|,${ODL_BOOT_FEATURES_EXTRA}|" $ODL_HOME/etc/org.apache.karaf.features.cfg -- 2.16.6