[CONTROLLER-529] Cannot bind a sample plugin similar to the toaster plugin with ODL. Java illegal state exception thrown. Created: 02/Jun/14 Updated: 25/Jul/23 Resolved: 14/Jul/14 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | netconf |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Siddharth D Doshi | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Linux |
||
| External issue ID: | 1122 |
| Description |
|
I was trying to create a toaster plugin by replicating the steps provided in the tutorial. I got far till Part 1 and when I tried to run ODL then and I got the error of capabilities not found. Michal Rehak advised me that the module is not exposed correctly and I followed the steps given by him and modified the controller.xml in toaster-it folder, I was still stuck at the same exception. I am not sure whether this a bug or something important that I am missing, but I wanted to track this issue. Also my toaster module name 'toaster-provider-2', I made this change so not to overlap with the existing toaster. Pasting the error below. Exception in thread "config-pusher" java.lang.IllegalStateException: Max wait for capabilities reached.Not enough capabilities for ConfigSnapshot {configSnapshot='<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config"><module><type xmlns:toaster="urn:opendaylight:params:xml:ns:yang:controller:config:toaster-provider-2:impl"> toaster:toaster-provider-impl-2 </type><name>toaster-provider-impl-2</name><data-broker><typexmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-data-broker</type><name>binding-data-broker</name> </data-broker> </module> </modules> </data> ', capabilities=[urn:opendaylight:params:xml:ns:yang:controller:config:toaster-provider-2:impl?module=toaster-provider-impl-2&revision=2014-05-22]}. Expected but not found: [urn:opendaylight:params:xml:ns:yang:controller:config:toaster-provider-2:impl?module=toaster-provider-impl-2&revision=2014-05-22] at org.opendaylight.controller.netconf.persist.impl.ConfigPusher.getOperationServiceWithRetries(ConfigPusher.java:111) at org.opendaylight.controller.netconf.persist.impl.ConfigPusher.pushConfigWithConflictingVersionRetries(ConfigPusher.java:87) at org.opendaylight.controller.netconf.persist.impl.ConfigPusher.pushConfigs(ConfigPusher.java:69) at org.opendaylight.controller.netconf.persist.impl.osgi.ConfigPersisterActivator$InnerCustomizer$1.run(ConfigPersisterActivator.java:156) at java.lang.Thread.run(Thread.java:744) Caused by: org.opendaylight.controller.netconf.persist.impl.ConfigPusher$NotEnoughCapabilitiesException: Not enough capabilities for ConfigSnapshot{configSnapshot='<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config"><module><type xmlns:toaster="urn:opendaylight:params:xml:ns:yang:controller:config:toaster-provider-2:impl"> toaster:toaster-provider-impl-2 </type><name>toaster-provider-impl-2</name><data-broker><typexmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-data-broker</type><name>binding-data-broker</name> </data-broker> </module> </modules> </data> |
| Comments |
| Comment by Anu Nair [ 02/Jun/14 ] |
|
I also have the same error. Followed the toaster example and not able to load my module. NetconfOperationServiceImpl::yangstoreSnapShot doesn’t have the new module. Not sure how to find / locate the module |
| Comment by Tony Tkacik [ 19/Jun/14 ] |
|
Did you added references to your new bundles in integration test, which is failing? |
| Comment by Tony Tkacik [ 14/Jul/14 ] |
|
Please reopen this bug with additional information, when you are able to replicate it. |