[CONTROLLER-1225] Clustering : Unable to Add a Car to Car Shard Created: 24/Mar/15  Updated: 19/Oct/17  Resolved: 01/Apr/15

Status: Resolved
Project: controller
Component/s: restconf
Affects Version/s: Post-Helium
Fix Version/s: None

Type: Bug
Reporter: Phillip Shea Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 2892

 Description   

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).



 Comments   
Comment by Tony Tkacik [ 25/Mar/15 ]

Seems to be restconf related bug in Restconf and/or test-suite (implementation of restconf is more stricter for vailidity).

Comment by Moiz Raja [ 25/Mar/15 ]

Tony, where can I found out more about what has changed in restconf? I want to determine if this is an issue with restconf or if with the test scripts.

Comment by Phillip Shea [ 01/Apr/15 ]

Ran integration/test/csit/suites/clustering/datastore/crud_on_leader.txt and it passes now.

Generated at Wed Feb 07 19:54:59 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.