Ask Your Question
0

Single Node clustering - Operational Data Persistence issue

asked 2015-11-06 03:29:56 -0700

sahil27 gravatar image

updated 2015-11-06 04:55:22 -0700

Hi All, I followed the single node clustering tutorial and it was working for the Lithium SR2, I tried to see the operational data getting persisted for netconf - inventory and topology.

Now, when I tried to verify the same with adding a small data model/rpc to the coretutorials/hello, the same is not working fine. MY operational data goes whenever I restart the controller.

Question 1: Is writing to the distributed datastore is different than how we write to the inmemory datastore.

Following are my changes:

  1. hello-karaf-1.1.0-SNAPSHOT/etc/opendaylight/karaf/05-clustering.xml: changed <persistent>true</persistent> for <name>distributed-operational-store-module</name>.

  2. In file: hello-karaf-1.1.0-SNAPSHOT/configuration/initial/modules.conf Added the module: { name = "hello" namespace = "urn:opendaylight:params:xml:ns:yang:hello" shard-strategy = "module" }

  3. In file: hello-karaf-1.1.0-SNAPSHOT/configuration/initial/module-shards.conf { name = "hello" shards = [ { name="hello" replicas = [ "member-1" ] } ] }

Then the following steps:

-> Start the ODL, bin/karaf -> Verify hello features installed successfully. -> Install the clustering feature: feature:install odl-mdsal-clustering -> Install the Jolokia bundle: install -s mvn:org.jolokia/jolokia-osgi/1.1.5

Then called my RPC to put the data to the operational datastore. I am getting the data from the REST. But when I restart the controller the data is gone. Needless to mention, configuration datastore has it.

I want this data to persist in the same way as it is for the configuration database.

Any pointer will be of a great help. It is kind of urgent.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-11-10 00:19:24 -0700

sahil27 gravatar image

Thanks Tom from the controller-dev list for helping me with this. Just posting the answer here for the community.

There is a cfg file in the etc directory, org.opendaylight.controller.cluster.datastore.cfg, that was added in Lithium for configuring the clustered datastore in lieu of changing the 05-clustering.xml file to make preserving changes on upgrade easier. The cfg file overrides settings in 05-clustering.xml. You'll need to set "operational.persistent=true".

Tried with this and i worked.

edit flag offensive delete publish link more
0

answered 2016-11-23 19:40:11 -0700

simpler gravatar image

hello,sahil27.I was using the coretutorials/hello to test the 3-nodes cluster and wanted to know how should I configure it if I want to make it function when any node was shutted down.Happy Thanksgiving day!

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-11-06 03:29:56 -0700

Seen: 183 times

Last updated: Nov 10 '15