[CONTROLLER-878] Get operation for netconf-state subtree failed Created: 22/Sep/14  Updated: 25/Jul/23  Resolved: 20/Oct/14

Status: Resolved
Project: controller
Component/s: netconf
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: RichardHill Assignee: Maros Marsalek
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Text File karaf.log    
External issue ID: 2017

 Description   

When starting Helium-RC1-6-v201409220013 netconf sessions were not successfully established so that info was shared between odl and remote devices.

0.2.5.Helium-RC1-6-v201409220013 | Get operation for netconf-state subtree failed
java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(Unknown Source)[:1.7.0_67]
at java.util.ArrayList$Itr.next(Unknown Source)[:1.7.0_67]
at org.opendaylight.controller.config.manager.impl.jmx.InternalJMXRegistrator.getSameNames(InternalJMXRegistrator.java:143)
at org.opendaylight.controller.config.manager.impl.jmx.InternalJMXRegistrator.queryNames(InternalJMXRegistrator.java:137)



 Comments   
Comment by RichardHill [ 22/Sep/14 ]

Attachment karaf.log has been added with description: opendaylight log

Comment by RichardHill [ 22/Sep/14 ]

Fix for similar exception https://git.opendaylight.org/gerrit/#/c/11431/ pointed out by Maros.

Comment by RichardHill [ 22/Sep/14 ]

Steps:

/restconf/operational/opendaylight-inventory:nodes/

Actual Result

"nodes": {
"node": [

{ "id": "controller-config", "netconf-node-inventory:connected": false }

]
}
}

Comment by RichardHill [ 22/Sep/14 ]

Partial fix made by changing the order of loading the features from

FEATURES="odl-mdsal-broker odl-restconf odl-bgpcep-all odl-netconf-all odl-netconf-connector-all odl-openflowplugin-all odl-openflowplugin-drop-test odl-sfcofl2 odl-sfc-test-consumer"

to

FEATURES="odl-mdsal-broker odl-restconf odl-bgpcep-all odl-openflowplugin-all odl-openflowplugin-drop-test odl-sfcofl2 odl-sfc-test-consumer odl-netconf-all odl-netconf-connector-all"

I can now see the odl loopback mounted but not the xrvr device

Comment by Maros Marsalek [ 23/Sep/14 ]

Yes, the odl-netconf-connector-all feature should be installed last to ensure that config file 99-controller-config.xml is loaded last. If it is loaded before any other features, netconf server might not see all available yang modules(at the time netconf connector connects) and report just a subset, this subset will be loaded into netconf connector and might result in failures when parsing data from the server later.

However concurrent modification exception should not occur in this case, fix:
https://git.opendaylight.org/gerrit/#/c/11446/

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