Uploaded image for project: 'nic'
  1. nic
  2. NIC-12

Error loading odl-nic-core feature in karaf

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • unspecified
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 4895

    Description

      Seems that there is something wrong with 88-intent-impl.xml.

      Currently on master branch, loading the odl-nic-core feature in karaf throws the following exception:

      2016-01-07 10:39:19,637 | ERROR | config-pusher | ConfigPusherImpl | 118 - org.opendaylight.controller.config-persister-impl - 0.4.0.SNAPSHOT | Failed to apply configuration snapshot: 88-intent-impl.xml(odl-nic-core,odl-nic-core)
      java.lang.IllegalStateException: Unable to resolve value AttributeConfigElement [defaultValue=null, value=MappedDependency

      {namespace='urn:opendaylight:params:xml:ns:yang:nic:mapping', serviceName='intent-mapping-interface', refName='intent-mapping-interface'}

      ] to attribute intent-mapping-interface
      at org.opendaylight.controller.config.facade.xml.mapping.config.InstanceConfig.resolveConfiguration(InstanceConfig.java:131)[116:org.opendaylight.controller.config-manager-facade-xml:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.facade.xml.mapping.config.InstanceConfig.fromXml(InstanceConfig.java:192)[116:org.opendaylight.controller.config-manager-facade-xml:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.facade.xml.mapping.config.ModuleConfig.fromXml(ModuleConfig.java:59)[116:org.opendaylight.controller.config-manager-facade-xml:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.facade.xml.mapping.config.Config$1.resolveElement(Config.java:147)[116:org.opendaylight.controller.config-manager-facade-xml:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.facade.xml.mapping.config.Config$1.resolveElement(Config.java:144)[116:org.opendaylight.controller.config-manager-facade-xml:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.facade.xml.mapping.config.Config.resolveModule(Config.java:224)[116:org.opendaylight.controller.config-manager-facade-xml:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.facade.xml.mapping.config.Config.fromXmlModulesResolved(Config.java:152)[116:org.opendaylight.controller.config-manager-facade-xml:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.facade.xml.ConfigExecution.getResolvedXmlElements(ConfigExecution.java:49)[116:org.opendaylight.controller.config-manager-facade-xml:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.facade.xml.ConfigSubsystemFacade.setOnTransaction(ConfigSubsystemFacade.java:228)[116:org.opendaylight.controller.config-manager-facade-xml:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.facade.xml.ConfigSubsystemFacade.test(ConfigSubsystemFacade.java:165)[116:org.opendaylight.controller.config-manager-facade-xml:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.facade.xml.ConfigSubsystemFacade.executeTests(ConfigSubsystemFacade.java:149)[116:org.opendaylight.controller.config-manager-facade-xml:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.facade.xml.ConfigSubsystemFacade.executeConfigExecution(ConfigSubsystemFacade.java:123)[116:org.opendaylight.controller.config-manager-facade-xml:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.executeWithMissingModuleFactoryRetries(ConfigPusherImpl.java:329)[118:org.opendaylight.controller.config-persister-impl:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.pushConfig(ConfigPusherImpl.java:305)[118:org.opendaylight.controller.config-persister-impl:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.pushConfigWithConflictingVersionRetries(ConfigPusherImpl.java:164)[118:org.opendaylight.controller.config-persister-impl:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.internalPushConfigs(ConfigPusherImpl.java:129)[118:org.opendaylight.controller.config-persister-impl:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.processSingle(ConfigPusherImpl.java:83)[118:org.opendaylight.controller.config-persister-impl:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.process(ConfigPusherImpl.java:74)[118:org.opendaylight.controller.config-persister-impl:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.persist.impl.osgi.ConfigPersisterActivator$2.run(ConfigPersisterActivator.java:131)[118:org.opendaylight.controller.config-persister-impl:0.4.0.SNAPSHOT]
      at java.lang.Thread.run(Thread.java:745)[:1.7.0_91]
      Caused by: java.lang.IllegalArgumentException: No service mapped to urn:opendaylight:params:xml:ns:yang:nic:mapping:intent-mapping-interface:intent-mapping-interface. Wrong namespace, available namespaces: [urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom, urn:opendaylight:params:xml:ns:yang:controller:md:sal:rest:connector, urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:spi:config-dom-store, urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl, urn:opendaylight:nic:intent:impl, urn:opendaylight:params:xml:ns:yang:controller:netty, urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding, urn:opendaylight:params:xml:ns:yang:controller:shutdown, urn:opendaylight:params:xml:ns:yang:controller:config:actor-system-provider:service, urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:spi:operational-dom-store, urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:spi:entity-ownership-service, urn:opendaylight:params:xml:ns:yang:controller:sal:restconf:service]
      at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145)[61:com.google.guava:18.0.0]
      at org.opendaylight.controller.config.facade.xml.mapping.config.ServiceRegistryWrapper.getByServiceAndRefName(ServiceRegistryWrapper.java:32)[116:org.opendaylight.controller.config-manager-facade-xml:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.facade.xml.mapping.attributes.resolving.ObjectNameAttributeResolvingStrategy.parseAttribute(ObjectNameAttributeResolvingStrategy.java:44)[116:org.opendaylight.controller.config-manager-facade-xml:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.facade.xml.mapping.attributes.fromxml.AttributeConfigElement.resolveValue(AttributeConfigElement.java:46)[116:org.opendaylight.controller.config-manager-facade-xml:0.4.0.SNAPSHOT]
      at org.opendaylight.controller.config.facade.xml.mapping.config.InstanceConfig.resolveConfiguration(InstanceConfig.java:127)[116:org.opendaylight.controller.config-manager-facade-xml:0.4.0.SNAPSHOT]
      ... 19 more

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            gary.wu1@huawei.com Gary Wu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: