-
Bug
-
Resolution: Done
-
None
-
Post-Helium
-
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:
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": [
] }}
{
'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).