1 # Create a delivery Tar bundle
3 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.
4 In the CENTENNIAL/bin directory the script *createTarBundle.sh* bases on this description.
6 #### Start configuration
13 - All ODL-Setup steps executed from README.MD Choice 2 Steps #1 - #3.1
15 During step #2.3 enable logging within karaf command line:
17 log:set DEBUG com.highstreet.technologies
18 log:set TRACE org.opendaylight.netconf
21 #### build applications
23 mvn clean install -DskipTests
34 rm -rf ~/.m2/repository/com/highstreet/technologies/odl/app/closedLoopAutomation-karaf/
35 rm -rf ~/.m2/repository/com/highstreet/technologies/odl/app/spectrum/scheduler-karaf/
36 find ~/.m2/repository/org/opendaylight/mwtn/* -type d -name "*-module" -exec rm -rf {} \;
37 find ~/.m2/repository/com/hcl/* -type d -name "*-module" -exec rm -rf {} \;
38 find ~/.m2/repository/com/highstreet/* -type d -name "*-module" -exec rm -rf {} \;
39 rm -rf $ODL_KARAF_HOME/cache/schema/tailf*.yang
40 rm -rf $ODL_KARAF_HOME/cache/schema/yuma*.yang
44 rm $ODL_KARAF_HOME/etc/org.ops4j.pax.web.cfg
45 rm -rf $ODL_KARAF_HOME/data/*
46 rm -rf $ODL_KARAF_HOME/system/org/opendaylight/mwtn
47 rm -rf $ODL_KARAF_HOME/system/com/hcl
48 rm -rf $ODL_KARAF_HOME/system/com/highstreet
52 mkdir -p $ODL_KARAF_HOME/system/cn
53 mkdir -p $ODL_KARAF_HOME/system/cn/com
54 cp -R ~/.m2/repository/org/opendaylight/mwtn $ODL_KARAF_HOME/system/org/opendaylight
55 cp -R ~/.m2/repository/cn/com/zte $ODL_KARAF_HOME/system/cn/com
56 cp -R ~/.m2/repository/com/hcl $ODL_KARAF_HOME/system/com
57 cp -R ~/.m2/repository/com/highstreet $ODL_KARAF_HOME/system/com
59 #### Copy into new directory and create tar file
61 TARDIR=onf-wireless-4th-poc-karaf-0.5.3-Boron-SR3-2017-06-22
63 cp -r distribution-karaf-0.5.3-Boron-SR3/* $TARDIR
64 tar -czvf "$TARDIR.tar.gz" $TARDIR
67 #### install in karaf console
72 feature:install odl-netconf-topology
73 feature:install odl-netconf-connector-all
74 feature:install odl-restconf-all
75 feature:install odl-mdsal-apidocs
76 feature:install odl-dlux-all
77 feature:repo-add mvn:org.opendaylight.mwtn/mwtn-parent/0.4.0-SNAPSHOT/xml/features
78 feature:install elasticsearch
79 feature:install odl-mwtn-all
80 feature:repo-add mvn:com.highstreet.technologies.odl.app/route-features/0.4.0-SNAPSHOT/xml/features
81 feature:install odl-route
83 #### perform tests with DLUX UI
85 -> if test successfully done deliver already created TAR package
86 -> Link in Centennial anpassen
89 ..........................
91 # remove all required nes
95 # delete logs in ElasticSearch using delete plug in
97 http://localhost:9200/mwtn/log/
98 http://localhost:9200/sdnevents/
99 http://localhost:9200/sdnperformance/
110 rm -rf $ODL_KARAF_HOME/cache/schema/tailf*.yang
111 rm -rf $ODL_KARAF_HOME/cache/schema/yuma*.yang
112 rm -rf $ODL_KARAF_HOME/data/log/*
116 # make sure that no hardcoded references are in karaf
118 rm $ODL_KARAF_HOME/etc/org.ops4j.pax.web.cfg
122 mv onf-wireless-4th-poc-karaf-0.5.3-Boron-SR3-2017-06-22
124 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