Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-529

Cannot bind a sample plugin similar to the toaster plugin with ODL. Java illegal state exception thrown.

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • None
    • None
    • netconf
    • None
    • Operating System: Linux
      Platform: PC

    • 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>

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            doshisiddharth1@gmail.com Siddharth D Doshi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: