Assign image keyname and pubkey at vnf level
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / docs / README2CreateTarBundle.md
1 # Create a delivery Tar bundle
2
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.
5
6 #### Start configuration
7
8 Setup a server
9   - ubuntu 16.04
10   - odl-karaf boron
11
12 Setup OpenDaylight
13   - All ODL-Setup steps executed from README.MD Choice 2 Steps #1 - #3.1
14
15 During step #2.3 enable logging within karaf command line:
16
17     log:set DEBUG com.highstreet.technologies
18     log:set TRACE org.opendaylight.netconf
19
20
21 #### build applications
22
23     mvn clean install -DskipTests
24
25 #### some checks
26
27     echo $JAVA_HOME
28     echo $JAVA_MAX_MEM
29     echo $ODL_KARAF_HOME
30
31
32 #### clean
33
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
41
42 #### remove
43
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
49
50 #### deploy
51
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
58
59 #### Copy into new directory and create tar file
60
61     TARDIR=onf-wireless-4th-poc-karaf-0.5.3-Boron-SR3-2017-06-22
62     mkdir $TARDIR
63     cp -r distribution-karaf-0.5.3-Boron-SR3/* $TARDIR
64     tar -czvf "$TARDIR.tar.gz" $TARDIR
65
66
67 #### install in karaf console
68
69     cd $ODL_KARAF_HOME
70     ./bin/karaf clean
71
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
82
83 #### perform tests with DLUX UI
84
85 -> if test successfully done deliver already created TAR package
86 -> Link in Centennial anpassen
87
88 #### Appendix
89 ..........................
90
91     # remove all required nes
92     # unmount all devices
93     # close DLUX UI
94
95     # delete logs in ElasticSearch using delete plug in
96
97     http://localhost:9200/mwtn/log/
98     http://localhost:9200/sdnevents/
99     http://localhost:9200/sdnperformance/
100
101
102     # shutdown karaf
103     logout
104
105
106     # clear karaf
107
108     ./bin/karaf clean
109     logout
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/*
113
114
115     # IMPORTANT!!!
116     # make sure that no hardcoded references are in karaf
117
118     rm $ODL_KARAF_HOME/etc/org.ops4j.pax.web.cfg
119
120     cd ..
121
122     mv onf-wireless-4th-poc-karaf-0.5.3-Boron-SR3-2017-06-22
123
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