Skip to content

Instantly share code, notes, and snippets.

Created September 23, 2014 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/24baef49714d3840dfb6 to your computer and use it in GitHub Desktop.
Save anonymous/24baef49714d3840dfb6 to your computer and use it in GitHub Desktop.
KARAF Tour by Madhu
https://meetings.webex.com/collabs/#/meetings/detail?uuid=I0CQNSLM8PGHHYJZG466JEB9J3-9VIB
4:30 -- karaf is pkg mgmt (knows how to pull in all the deps) for runtime
5:45 -- ovs-sfc should be moved out
5:54 -- [1]
9:50 -- odl-nsf-all
10:10 -- cd distribution/opendaylight-karaf/ && mvn clean install
11:16 -- karaf options 1of2 (more on that later)
12:20 -- feature:list | grep ovsdb
12:58 -- 'x' means installed
13:40 -- feature:installl odl-ovsdb-library
15:13 -- bundle:list 1of2
15:44 -- darth-vader :)
16:16 -- log:display, log:tail, log:set
17:23 -- ovs:printcache <-- added command to karaf cli
18:36 -- karaf options 2of2 preferences (env debug, etc)
20:00 -- karaf has no old ui anymore, only dlux-ui
21:45 -- breakpoint, debug with eclipse
23:22 -- bundle:list -s 2of2
24:30 -- [2] config file stuff -- earlier bug explanation (added a few config related bundles)
29:30 -- stack.sh, looking at logs
31:03 -- .m2 cache, nexus, pkg
32:39 -- flows programmed by stack
33:30 -- nortbound api v3 -- getNodes breakpoint
35:39 -- [3] table/Bridge/row
37:10 -- [4] karaf wrapper contribution by xsited1 (Eric?)
38:29 -- Plugin update -- deploy folder
39:20 -- define your own feature better than using deploy folder approach
40:18 -- to exit, use control+D
41:15 -- starting from integration project -- switching gears
42:00 -- .../integration.git/features/src/main/resources/features.xml
42:15 -- odl-integration-compatible [monster] feature
44:51 -- integration karaf, launch and build from info [6]
49:05 -- startig Karaf taking a long time (1st time is fast; 2+ time, rm -rf data)
52:30 -- back online, rm -rf data
59:27 -- <EOM>
-------
cd distribution/opendaylight-karaf/ && mvn clean install
cd ./target && unzip distribution-karaf-1.0-SNAPSHOT.zip
cd distribution-karaf-1.0-SNAPSHOT && bin/karaf
feature:list
feature:install odl-base-jackson odl-adsal-compatibility odl-ovsdb-openstack odl-ovsdb-northbound
feature:install odl-base-jackson
feature:install odl-ovsdb-openstack
feature:install odl-ovsdb-northbound
bundle:list -s | grep ovsdb
bundle:list -s | grep neutron
bundle:list -s | grep adsal
log:display
log:tail
log:set debug org.opendaylight.ovsdb
log:set debug org.opendaylight.ovsdb.openstack.netvirt.impl.NeutronL3Adapter
log:set error org.opendaylight.controller.sal.compatibility.ToSalConversionsUtils
log:list <--- show configured logs
ovs:printcache
cd .../integration.git/distributions/extra/karaf [5]
-------
[1] File: features/ovsdb/src/main/resources/features.xml
odl-ovsdb-all, odl-ovsdb-library, odl-ovsdb-northbound, odl-ovsdb-openstack
[2] Dir: .../ovsdb.git/distribution/opendaylight-karaf/target/distribution-karaf-1.0-SNAPSHOT/etc/opendaylight/karaf
[3] http://{{controllerHost}}:{{controllerPort}}/ovsdb/nb/v3/node/{{OVS|HOST}}/database/
see: https://docs.google.com/spreadsheets/d/11Rp5KSNTcrvOD4HadCnXDCUdJq_TZ5RgoQ6qSHf_xkw/edit?usp=sharing
postman collections: .../ovsdb.git/resources/commons/
[4] https://wiki.opendaylight.org/view/PacketCablePCMM:Documentation#Prepare_to_Test
[5] BUILD: cd .../integration.git/distributions/extra/karaf/ && mvn clean install
RUN: cd .../integration.git/distributions/extra/karaf/target/distribution-karaf-0.2.0-SNAPSHOT && bin/karaf
[6] can grab latest build from integration nexus here: http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/distribution-karaf/0.2.0-SNAPSHOT/
=============
$ cat ~/.bash_profile | grep DEBUG
[15:22:49] <@Madhu> export KARAF_DEBUG=true
[15:22:50] <@Madhu> export JAVA_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
[15:48:43] <@Madhu> Integration project karaf distro : /Users/madhu/workspace/opendaylight/integration/distributions/extra/karaf/target/distribution-karaf-0.2.0-SNAPSHOT
[15:49:01] <@Madhu> build it using "mvn clean install" in /Users/madhu/workspace/opendaylight/integration/distributions/extra/karaf/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment