Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

Single Node clustering - Operational Data Persistence issue

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.

Single Node clustering - Operational Data Persistence issue

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.