Comprehensive How-to-create list for a ODL/Karaf bundle that can be used to be installed as "Choice 1" refering to the README.MD. In the CENTENNIAL/bin directory the script createTarBundle.sh bases on this description.
Setup a server
Setup OpenDaylight
During step #2.3 enable logging within karaf command line:
log:set DEBUG com.highstreet.technologies log:set TRACE org.opendaylight.netconf
mvn clean install -DskipTests
echo $JAVA_HOME echo $JAVA_MAX_MEM echo $ODL_KARAF_HOME
rm -rf ~/.m2/repository/com/highstreet/technologies/odl/app/closedLoopAutomation-karaf/ rm -rf ~/.m2/repository/com/highstreet/technologies/odl/app/spectrum/scheduler-karaf/ find ~/.m2/repository/org/opendaylight/mwtn/* -type d -name "*-module" -exec rm -rf {} \; find ~/.m2/repository/com/hcl/* -type d -name "*-module" -exec rm -rf {} \; find ~/.m2/repository/com/highstreet/* -type d -name "*-module" -exec rm -rf {} \; rm -rf $ODL_KARAF_HOME/cache/schema/tailf*.yang rm -rf $ODL_KARAF_HOME/cache/schema/yuma*.yang
rm $ODL_KARAF_HOME/etc/org.ops4j.pax.web.cfg rm -rf $ODL_KARAF_HOME/data/* rm -rf $ODL_KARAF_HOME/system/org/opendaylight/mwtn rm -rf $ODL_KARAF_HOME/system/com/hcl rm -rf $ODL_KARAF_HOME/system/com/highstreet
mkdir -p $ODL_KARAF_HOME/system/cn mkdir -p $ODL_KARAF_HOME/system/cn/com cp -R ~/.m2/repository/org/opendaylight/mwtn $ODL_KARAF_HOME/system/org/opendaylight cp -R ~/.m2/repository/cn/com/zte $ODL_KARAF_HOME/system/cn/com cp -R ~/.m2/repository/com/hcl $ODL_KARAF_HOME/system/com cp -R ~/.m2/repository/com/highstreet $ODL_KARAF_HOME/system/com
TARDIR=onf-wireless-4th-poc-karaf-0.5.3-Boron-SR3-2017-06-22 mkdir $TARDIR cp -r distribution-karaf-0.5.3-Boron-SR3/* $TARDIR tar -czvf "$TARDIR.tar.gz" $TARDIR
cd $ODL_KARAF_HOME ./bin/karaf clean feature:install odl-netconf-topology feature:install odl-netconf-connector-all feature:install odl-restconf-all feature:install odl-mdsal-apidocs feature:install odl-dlux-all feature:repo-add mvn:org.opendaylight.mwtn/mwtn-parent/0.4.0-SNAPSHOT/xml/features feature:install elasticsearch feature:install odl-mwtn-all feature:repo-add mvn:com.highstreet.technologies.odl.app/route-features/0.4.0-SNAPSHOT/xml/features feature:install odl-route
-> if test successfully done deliver already created TAR package -> Link in Centennial anpassen
..........................
# remove all required nes # unmount all devices # close DLUX UI # delete logs in ElasticSearch using delete plug in http://localhost:9200/mwtn/log/ http://localhost:9200/sdnevents/ http://localhost:9200/sdnperformance/ # shutdown karaf logout # clear karaf ./bin/karaf clean logout rm -rf $ODL_KARAF_HOME/cache/schema/tailf*.yang rm -rf $ODL_KARAF_HOME/cache/schema/yuma*.yang rm -rf $ODL_KARAF_HOME/data/log/* # IMPORTANT!!! # make sure that no hardcoded references are in karaf rm $ODL_KARAF_HOME/etc/org.ops4j.pax.web.cfg cd .. mv onf-wireless-4th-poc-karaf-0.5.3-Boron-SR3-2017-06-22 tar -czvf onf-wireless-4th-poc-karaf-0.5.3-Boron-SR3-2017-06-22.tar.gz onf-wireless-4th-poc-karaf-0.5.3-Boron-SR3-2017-06-22