Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-1217

Clustering : unable to configure persistence using restconf(netconf connector) on 3 node cluster

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Won't Do
    • None
    • None
    • clustering
    • None
    • Operating System: Linux
      Platform: PC

    • 2858

    Description

      odl: https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/distribution-karaf/0.3.0-SNAPSHOT/distribution-karaf-0.3.0-20150317.094607-668.tar.gz

      installed features: odl-restconf odl-mdsal-clustering odl-restconf-all odl-openflowplugin-all odl-netconf-connector-all
      installed bundles: mvn:org.jolokia/jolokia-osgi/1.1.5

      -Xms128M -Xmx2048m -XX:MaxPermSize=512m

      VM: fedora18, 6G ram,
      java -version
      java version "1.7.0_67"
      Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
      Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

      i have installed 3 node cluster with config datastore shart persistence=false.
      i wanted to switch it on (persistence=true) using restconf and postman

      method: POST

      url:http://g37:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/controller-config/yang-ext:mount/

      data:
      <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
      <module xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
      <type
      xmlns:x="urn:opendaylight:params:xml:ns:yang:controller:config:distributed-datastore-provider">x:distributed-config-datastore-provider
      </type>
      <name>distributed-config-store-module</name>
      <config-properties
      xmlns="urn:opendaylight:params:xml:ns:yang:controller:config:distributed-datastore-provider">
      <shard-transaction-idle-timeout-in-minutes>10</shard-transaction-idle-timeout-in-minutes>
      <shard-journal-recovery-log-batch-size>5000</shard-journal-recovery-log-batch-size>
      <persistent>true</persistent>
      <operation-timeout-in-seconds>5</operation-timeout-in-seconds>
      <shard-transaction-commit-timeout-in-seconds>30</shard-transaction-commit-timeout-in-seconds>
      <shard-election-timeout-factor>2</shard-election-timeout-factor>
      <shard-initialization-timeout-in-seconds>300</shard-initialization-timeout-in-seconds>
      <enable-metric-capture>false</enable-metric-capture>
      <transaction-creation-initial-rate-limit>100</transaction-creation-initial-rate-limit>
      <shard-snapshot-data-threshold-percentage>12</shard-snapshot-data-threshold-percentage>
      <shard-heartbeat-interval-in-millis>500</shard-heartbeat-interval-in-millis>
      <bounded-mailbox-capacity>1000</bounded-mailbox-capacity>
      <shard-leader-election-timeout-in-seconds>30</shard-leader-election-timeout-in-seconds>
      <max-shard-data-change-executor-queue-size>1000</max-shard-data-change-executor-queue-size>
      <max-shard-data-change-executor-pool-size>20</max-shard-data-change-executor-pool-size>
      <shard-isolated-leader-check-interval-in-millis>5000</shard-isolated-leader-check-interval-in-millis>
      <max-shard-data-store-executor-queue-size>5000</max-shard-data-store-executor-queue-size>
      <shard-snapshot-batch-count>20000</shard-snapshot-batch-count>
      <shard-batched-modification-count>100</shard-batched-modification-count>
      <max-shard-data-change-listener-queue-size>1000</max-shard-data-change-listener-queue-size>
      <shard-transaction-commit-queue-capacity>20000</shard-transaction-commit-queue-capacity>
      </config-properties>
      <config-schema-service
      xmlns="urn:opendaylight:params:xml:ns:yang:controller:config:distributed-datastore-provider">
      <name>yang-schema-service</name>
      <type
      xmlns:x="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">x:schema-service
      </type>
      </config-schema-service>
      </module>
      </modules>

      headers: accept and content-type to application/xml

      I got 204 but using GET i always see persistence to be false. In the log lots ex exceptions appeared.

      I expected to be able to put data to /restconf/config.

      Attachments

        1. karaf.log
          90 kB
          Peter Gubka
        2. persistent_change_steps.txt
          14 kB
          Peter Gubka
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            pgubka@cisco.com Peter Gubka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: