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

Clustering : Unable to Add a Car to Car Shard

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • None
    • Post-Helium
    • restconf
    • None
    • Operating System: All
      Platform: All

    • 2892

      I’m trying to run 010_crud_on_leader.txt in the /integration repo on a three node cluster and the first test, “Get Car Leader And Followers”, works fine. However the next test (and all tests that perform a Post), “Add cars and get cars from Leader”, fails when it attempts to Post new cars to the car shard.

      I configured the cluster by running the cluster deployer with the multi-node-test template which adds the car, people, and car-people shards. I did modify the multi-node-test template so the following features were installed:

      featuresBoot=config,standard,region,package,kar,ssh,management,odl-clustering-test-app,odl-restconf-noauth,odl-mdsal-clustering,odl-openflowplugin-flow-services,odl-netconf-connector-ssh

      I verified that the car shard is there by using the flowing query:

      http://localhost:8181/jolokia/read/org.opendaylight.controller:Category=Shards,name=member-1-shard-car-config,type=DistributedConfigDatastore

      When I ran the test, I got a malformed message error.

      post request with url
      http://172.17.10.93:8181/restconf/config
      post request with data
      {"car:cars":{ "car-entry": [

      { "id": "1", "category": "category1", "model": "model1", "manufacturer": "manufacturer1", "year": "2001" }

      ] }}
      {
      'transfer-encoding': 'chunked',
      'content-type': 'application/json',
      'server': 'Jetty(8.1.14.v20131031)'
      }
      the response of the POST to add car= <Response [400]>

      INFO {
      "errors":
      {
      "error":
      [
      {
      "error-type":"protocol",
      "error-tag":"malformed-message",
      "error-message":"Error parsing input: null"
      }
      ]
      }
      }

      I also tried this post with Postman and got the same result.
      Finally, I tried posts using the JSON data in this document:
      https://wiki.opendaylight.org/view/MD-SAL_Clustering_Test_Plan
      and those didn't work either.

      This test was run on both distribution-karaf-0.3.0-SNAPSHOT (24-Mar-2015) and distribution-test-0.3.0-SNAPSHOT (11-Mar-2015).

            Unassigned Unassigned
            phillip.shea@hp.com Phillip Shea
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: