[NIC-12] Error loading odl-nic-core feature in karaf Created: 07/Jan/16  Updated: 19/Oct/17  Resolved: 07/Jan/16

Status: Resolved
Project: nic
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Gary Wu Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 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



 Comments   
Comment by Raphael Amorim [ 07/Jan/16 ]

Have you tried to install odl-nic-core-service-mdsal before odl-nic-core?

Comment by Gary Wu [ 07/Jan/16 ]

Ok, that worked. Looks like I missed the earlier discussion thread on this topic. I wonder if there is a way to have a more descriptive error message so that people who get this error can know what to do. Thanks.

Comment by Raphael Amorim [ 07/Jan/16 ]

I think so, What we could have is some kind of proxy implementation on the mapping service interface bundle, that could check if there's a mapping service implementation there already installed. But probably not for beryllium, we're assuming that some implementation will be installed prior to the core installation.

Generated at Wed Feb 07 20:25:59 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.