[CONTROLLER-1769] Global RPC call error in cluster Created: 11/Sep/17 Updated: 25/Jul/23 Resolved: 19/Jul/18 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | clustering |
| Affects Version/s: | None |
| Fix Version/s: | Oxygen |
| Type: | Bug | ||
| Reporter: | Geng Xingyuan | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| External issue ID: | 9135 | ||||||||
| Description |
|
ODL cluster including node A and B you will see: available on web explorer. AND 2017-09-10 20:53:06,785 | ERROR | lt-dispatcher-42 | RpcInvoker | 197 - org.opendaylight.controller.sal-clustering-commons - 1.5.1.Carbon | Failed to execute RPC (http://netconfcentral.org/ns/toaster?revision=2009-11-19)cancel-toast due to org.opendaylight.controller.md.sal.dom.api.DOMRpcImplementationNotAvailableException: No implementation of RPC AbsoluteSchemaPath {path=[(http://netconfcentral.org/ns/toaster?revision=2009-11-19)cancel-toast]}available. More details are available on DEBUG level. on NodeB's karaf.log Reason: In fact,in toaster.yang,defined as below: |
| Comments |
| Comment by Geng Xingyuan [ 11/Sep/17 ] |
| Comment by Tom Pantelis [ 11/Sep/17 ] |
|
The problem is a serialization issue due to QName's representation of revision as a Date when the nodes are in different timezones. |
| Comment by Robert Varga [ 11/Sep/17 ] |
|
As such, we need to fix this without impacting the QName serialization format in older releases – which is going to be interesting. At any rate, |
| Comment by Robert Varga [ 11/Sep/17 ] |
|
This may actually be a formatting problem, i.e. when we are converting Date to String representation. External reference: https://coderanch.com/t/401533/java/Date-serialization-timezones Hence this could, in theory, boil down to a simple patch to SimpleDateFormatUtil – except we'll need to also find any call sites which open-code the transformation. Something along the lines of https://git.opendaylight.org/gerrit/62998. |
| Comment by Geng Xingyuan [ 12/Sep/17 ] |
|
Sadly,this patch causes other problem. I verified this patch as below: execute list command,we can see: |
| Comment by Geng Xingyuan [ 12/Sep/17 ] |
|
Attachment karaf.log has been added with description: karaf.log |
| Comment by Geng Xingyuan [ 12/Sep/17 ] |
|
I've tested many times,the problem can be reproduced. oscp@A23343146-4:~/distribution-karaf-0.6.1-Carbon/bin$ java -version |
| Comment by Geng Xingyuan [ 12/Sep/17 ] |
|
Caused by: java.lang.ClassNotFoundException: org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.toaster.app.config.rev160502.ToasterAppConfig module toaster-app-config { ...... revision "2016-05-03" { description "Initial revision."; }container toaster-app-config { ...... }} |
| Comment by Robert Varga [ 07/Nov/17 ] |
|
|