[CONTROLLER-1238] Clustering : Unable to read from datastore root with clustering enabled Created: 07/Apr/15 Updated: 25/Jul/23 Resolved: 10/Apr/15 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | mdsal |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Tomas Cere | Assignee: | Moiz Raja |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 2953 |
| Priority: | Highest |
| Description |
|
When reading from the datastore root(YangInstanceIdentifier.builder().build()) we get java.util.NoSuchElementException the offending line is rwTx.read(LogicalDatastoreType.OPERATIONAL, YangInstanceIdentifier.builder().build()).checkedGet(); This is possible with just pure IMDS but with clustering enabled by default we get this exception. Steps to reproduce with netconf-mdsal-northbound: 1) feature:install odl-restconf odl-netconf-connector-all odl-netconf-mdsal 2) send a POST request to: with payload: <module xmlns="urn:opendaylight:params:xml:ns:yang:controller:config"> 3) try to read data from mdsal-loopback connection: it fails with applicationoperation-failedProblem to get data from transaction. 2015-04-07 13:30:35,379 | ERROR | oupCloseable-6-4 | NetconfOperationRouterImpl | 220 - org.opendaylight.controller.netconf-impl - 0.3.0.SNAPSHOT | Unexpected exception during netconf operation execution |
| Comments |
| Comment by Moiz Raja [ 09/Apr/15 ] |
|
I tried reproducing this problem with restconf. When I tried adding the md-sal-config mount I got an exception. 1. This is what I tried - https://www.getpostman.com/collections/839d3f72912811354cc0 Because of this I am not able to get to step 3 to see the problem with the datastore. |
| Comment by Tomas Cere [ 09/Apr/15 ] |
|
Currently this is affected by https://bugs.opendaylight.org/show_bug.cgi?id=2964 Until that is fixed workaround is to post config in json and reading with xml. |
| Comment by Moiz Raja [ 09/Apr/15 ] |
|
Tomas, is there an easy way for me to create the corresponding json payload or does it need to be done the hard way? |
| Comment by Tomas Cere [ 09/Apr/15 ] |
|
(In reply to Moiz Raja from comment #3) Here you go: { , , , , , |
| Comment by Moiz Raja [ 09/Apr/15 ] |
|
Thanks Tomas! That worked. |
| Comment by Moiz Raja [ 09/Apr/15 ] |