summaryrefslogtreecommitdiffstats
path: root/sdnr/wireless-transport/code-Carbon-SR1/docs/README2CreateTarBundle.md
diff options
context:
space:
mode:
authordemx8as6 <martin.skorupski@highstreet-technologies.com>2018-07-10 18:07:44 +0200
committerTimoney, Dan (dt5972) <dt5972@att.com>2018-07-11 16:30:28 -0400
commit27fb2d06608fbb070ae2c15a5580a4f5b2423d15 (patch)
treeccd717991b4e556b67f1fd2cacb345b4d174b41f /sdnr/wireless-transport/code-Carbon-SR1/docs/README2CreateTarBundle.md
parent60315525ab5e7c12a9f47c409092e8dba6ad656d (diff)
Add seed code for sdnr app based on ONF Centennial
At this point in time all the Carbon code from ONF Centennial is added to ONAP. Later it needs to be refactored and modified for ODL Oxygen. Change-Id: Iff85dd940c05c3827f1c4e6f9542ecd060c58a46 Issue-ID: SDNC-374 Signed-off-by: demx8as6 <martin.skorupski@highstreet-technologies.com>
Diffstat (limited to 'sdnr/wireless-transport/code-Carbon-SR1/docs/README2CreateTarBundle.md')
-rw-r--r--sdnr/wireless-transport/code-Carbon-SR1/docs/README2CreateTarBundle.md124
1 files changed, 124 insertions, 0 deletions
diff --git a/sdnr/wireless-transport/code-Carbon-SR1/docs/README2CreateTarBundle.md b/sdnr/wireless-transport/code-Carbon-SR1/docs/README2CreateTarBundle.md
new file mode 100644
index 00000000..24396842
--- /dev/null
+++ b/sdnr/wireless-transport/code-Carbon-SR1/docs/README2CreateTarBundle.md
@@ -0,0 +1,124 @@
+# Create a delivery Tar bundle
+
+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.
+
+#### Start configuration
+
+Setup a server
+ - ubuntu 16.04
+ - odl-karaf boron
+
+Setup OpenDaylight
+ - All ODL-Setup steps executed from README.MD Choice 2 Steps #1 - #3.1
+
+During step #2.3 enable logging within karaf command line:
+
+ log:set DEBUG com.highstreet.technologies
+ log:set TRACE org.opendaylight.netconf
+
+
+#### build applications
+
+ mvn clean install -DskipTests
+
+#### some checks
+
+ echo $JAVA_HOME
+ echo $JAVA_MAX_MEM
+ echo $ODL_KARAF_HOME
+
+
+#### clean
+
+ 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
+
+#### remove
+
+ 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
+
+#### deploy
+
+ 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
+
+#### Copy into new directory and create tar file
+
+ 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
+
+
+#### install in karaf console
+
+ 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
+
+#### perform tests with DLUX UI
+
+-> if test successfully done deliver already created TAR package
+-> Link in Centennial anpassen
+
+#### Appendix
+..........................
+
+ # 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