[CONTROLLER-1652] Failure bringing karaf 4 feature odl-bgpcep-bgp Created: 03/May/17  Updated: 19/Oct/17  Resolved: 10/Jul/17

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

Type: Bug
Reporter: Luis Gomez 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


Issue Links:
Blocks
is blocked by BGPCEP-666 features4-extras cannot be added to k... Resolved
External issue ID: 8362

 Description   

This is what I see:

2017-05-03 05:11:55,867 | ERROR | pool-2-thread-1 | ModuleInfoBundleTracker | 233 - org.opendaylight.controller.config-manager - 0.6.0.SNAPSHOT | Failed to process bundleentry://201.fwk1002191352/META-INF/services/org.opendaylight.yangtools.yang.binding.YangModelBindingProvider for bundle org.opendaylight.bgpcep.bgp-rib-impl_0.7.0.SNAPSHOT [201]
java.lang.IllegalStateException: Error while executing getModuleInfo on org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.bgp.rib.impl.rev160330.$YangModelBindingProvider@6fcc09f3
at org.opendaylight.controller.config.manager.impl.osgi.mapping.ModuleInfoBundleTracker.retrieveModuleInfo(ModuleInfoBundleTracker.java:144)
at org.opendaylight.controller.config.manager.impl.osgi.mapping.ModuleInfoBundleTracker.addingBundle(ModuleInfoBundleTracker.java:84)
at org.opendaylight.controller.config.manager.impl.osgi.mapping.ModuleInfoBundleTracker.addingBundle(ModuleInfoBundleTracker.java:32)
at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:469)[org.osgi.core-6.0.0.jar:]
at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:415)[org.osgi.core-6.0.0.jar:]
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[org.osgi.core-6.0.0.jar:]
at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)[org.osgi.core-6.0.0.jar:]
at org.osgi.util.tracker.BundleTracker.open(BundleTracker.java:156)[org.osgi.core-6.0.0.jar:]
at org.opendaylight.controller.config.manager.impl.osgi.mapping.ModuleInfoBundleTracker.open(ModuleInfoBundleTracker.java:54)
at org.opendaylight.controller.config.manager.impl.osgi.ConfigManagerActivator.start(ConfigManagerActivator.java:89)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_121]
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.container.Module.doStart(Module.java:571)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.container.Module.start(Module.java:439)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:392)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:411)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1287)[7:org.apache.karaf.features.core:4.0.9]
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:860)[7:org.apache.karaf.features.core:4.0.9]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1176)[7:org.apache.karaf.features.core:4.0.9]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1074)[7:org.apache.karaf.features.core:4.0.9]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
Caused by: java.lang.ExceptionInInitializerError
at org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.bgp.rib.impl.rev160330.$YangModuleInfoImpl.<init>($YangModuleInfoImpl.java:41)
at org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.bgp.rib.impl.rev160330.$YangModuleInfoImpl.<clinit>($YangModuleInfoImpl.java:10)
at org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.bgp.rib.impl.rev160330.$YangModelBindingProvider.getModuleInfo($YangModelBindingProvider.java:6)
at org.opendaylight.controller.config.manager.impl.osgi.mapping.ModuleInfoBundleTracker.retrieveModuleInfo(ModuleInfoBundleTracker.java:142)
... 28 more
Caused by: java.lang.IllegalStateException: Resource '/META-INF/yang/odl-bgp-rib-spi-cfg.yang' is missing
at org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.bgp.rib.spi.rev131115.$YangModuleInfoImpl.<init>($YangModuleInfoImpl.java:30)
at org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.bgp.rib.spi.rev131115.$YangModuleInfoImpl.<clinit>($YangModuleInfoImpl.java:10)
... 32 more



 Comments   
Comment by Luis Gomez [ 06/May/17 ]

This patch reproduces the issue:

https://git.opendaylight.org/gerrit/#/c/56613/

And this log shows the problem:

https://logs.opendaylight.org/releng/jenkins092/distribution4-check-carbon/75/console.log.gz

BR/Luis

Comment by Claudio David Gasparini [ 09/May/17 ]

this issue is a result of BUG-8356

Comment by Luis Gomez [ 12/May/17 ]

BUG-8356 is fixed but this does not seem to

Comment by Claudio David Gasparini [ 15/May/17 ]

(In reply to Luis Gomez from comment #3)
> BUG-8356 is fixed but this does not seem to

doing a recheck, I tested today again on my environment and test are passing.
Lets see what happens on Jenkins this time, and then we can investigate if it doesn't succeed.

Regards,

Comment by Claudio David Gasparini [ 16/May/17 ]

All build are success, but its shown

No problems were identified. If you know why this problem occurred, please add a suitable Cause for it. ( https://jenkins.opendaylight.org/releng/job/distribution4-check-carbon/114/ )

I achieve to see on logs:

09:29:15 2017-05-15 09:22:31,387 | ERROR | config-pusher | ConfigPusherImpl | 236 - org.opendaylight.controller.config-persister-impl - 0.6.0.SNAPSHOT | Unable to push configuration due to missing yang models. Yang models that are missing, but required by the configuration: [urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl?module=odl-bgp-rib-impl-cfg&revision=2016-03-30]. For each mentioned model check: 1. that the mentioned yang model namespace/name/revision is identical to those in the yang model itself 2. the yang file is present in the system 3. the bundle with that yang file is present in the system and active 4. the yang parser did not fail while attempting to parse that model
09:29:15 2017-05-15 09:22:31,387 | ERROR | config-pusher | ConfigPusherImpl | 236 - org.opendaylight.controller.config-persister-impl - 0.6.0.SNAPSHOT | Failed to apply configuration snapshot: 31-bgp.xml(odl-bgpcep-bgp,odl-bgpcep-bgp)
09:29:15 java.lang.IllegalStateException: Unable to push configuration due to missing yang models. Required yang models that are missing: [urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl?module=odl-bgp-rib-impl-cfg&revision=2016-03-30]
09:29:15 at org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.waitForCapabilities(ConfigPusherImpl.java:204)[236:org.opendaylight.controller.config-persister-impl:0.6.0.SNAPSHOT]
09:29:15 at org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.pushConfigWithConflictingVersionRetries(ConfigPusherImpl.java:154)[236:org.opendaylight.controller.config-persister-impl:0.6.0.SNAPSHOT]
09:29:15 at org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.internalPushConfigs(ConfigPusherImpl.java:124)[236:org.opendaylight.controller.config-persister-impl:0.6.0.SNAPSHOT]
09:29:15 at org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.processSingle(ConfigPusherImpl.java:78)[236:org.opendaylight.controller.config-persister-impl:0.6.0.SNAPSHOT]
09:29:15 at org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.process(ConfigPusherImpl.java:70)[236:org.opendaylight.controller.config-persister-impl:0.6.0.SNAPSHOT]
09:29:15 at org.opendaylight.controller.config.persist.impl.osgi.ConfigPersisterActivator$2.run(ConfigPersisterActivator.java:131)[236:org.opendaylight.controller.config-persister-impl:0.6.0.SNAPSHOT]
09:29:15 at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
09:29:15 Caused by: org.opendaylight.controller.config.persist.impl.ConfigPusherImpl$NotEnoughCapabilitiesException: Not enough capabilities for 31-bgp.xml(odl-bgpcep-bgp,odl-bgpcep-bgp). Expected but not found: [urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl?module=odl-bgp-rib-impl-cfg&revision=2016-03-30]
09:29:15 at org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.waitForCapabilities(ConfigPusherImpl.java:184)[236:org.opendaylight.controller.config-persister-impl:0.6.0.SNAPSHOT]
09:29:15 ... 6 more

No pretty sure what is causing this

Comment by Luis Gomez [ 16/May/17 ]

This seems like a CSS problem, do you want to move it to controller project?

Comment by Claudio David Gasparini [ 16/May/17 ]

yes, moving it.

Comment by Tom Pantelis [ 04/Jul/17 ]

Those CSS errors mean a yang model was missing or the bundle providing it failed to load. I'm assuming this issue is no longer being seen. Even if there is/was an issue with CSS, we've been moving away from it since Boron and plan to officially deprecate it in Nitrogen. All projects need to migrate away from CSS.

Comment by Ryan Goulding [ 05/Jul/17 ]

Actively happening for me. I mailed out here:
https://lists.opendaylight.org/pipermail/bgpcep-dev/2017-July/001011.html

This is happening in master for me.

Comment by Tom Pantelis [ 05/Jul/17 ]

I don't think this is a CSS problem - it's waiting on the odl-bgp-rib-impl-cfg module to be loaded. This could fail for various reasons, including the odl-bgp-rib-impl-cfg bundle failed to resolve/start or perhaps the bundle didn't start in time. It sounds like it's intermittent so the latter seems more likely - perhaps other bundles are taking a long time and delay the activation of the odl-bgp-rib-impl-cfg bundle.

Comment by GU Min [ 10/Jul/17 ]

Hi,I downloaded bgpcep from "https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/karaf/0.7.0-SNAPSHOT/karaf-0.7.0-20170709.153026-1151.zip",
and I tried feature:install odl-restconf odl-bgpcep-bgp, but there is still the error: "Resource '/META-INF/yang/odl-bgp-rib-spi-cfg.yang' is missing".

Here is the log:
-----------------------------------------

2017-07-10 18:32:04,770 | ERROR | pool-2-thread-1 | ModuleInfoBundleTracker | 181 - org.opendaylight.controller.config-manager - 0.7.0.SNAPSHOT | Failed to process bundleentry://330.fwk433874882/META-INF/services/org.opendaylight.yangtools.yang.binding.YangModelBindingProvider for bundle org.opendaylight.bgpcep.bgp-rib-impl_0.8.0.SNAPSHOT [330]
java.lang.IllegalStateException: Error while executing getModuleInfo on org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.bgp.rib.impl.rev160330.$YangModelBindingProvider@1001ab45
at org.opendaylight.controller.config.manager.impl.osgi.mapping.ModuleInfoBundleTracker.retrieveModuleInfo(ModuleInfoBundleTracker.java:149)[181:org.opendaylight.controller.config-manager:0.7.0.SNAPSHOT]
at org.opendaylight.controller.config.manager.impl.osgi.mapping.ModuleInfoBundleTracker.addingBundle(ModuleInfoBundleTracker.java:86)[181:org.opendaylight.controller.config-manager:0.7.0.SNAPSHOT]
at org.opendaylight.controller.config.manager.impl.osgi.mapping.ModuleInfoBundleTracker.addingBundle(ModuleInfoBundleTracker.java:31)[181:org.opendaylight.controller.config-manager:0.7.0.SNAPSHOT]
at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:469)[org.osgi.core-6.0.0.jar:]
at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:415)[org.osgi.core-6.0.0.jar:]
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[org.osgi.core-6.0.0.jar:]
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)[org.osgi.core-6.0.0.jar:]
at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)[org.osgi.core-6.0.0.jar:]
at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:902)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:165)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:102)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:691)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:491)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:437)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:427)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.resolveBundles(ModuleContainer.java:1267)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.resolveBundles(FeaturesServiceImpl.java:1366)[9:org.apache.karaf.features.core:4.0.9]
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:847)[9:org.apache.karaf.features.core:4.0.9]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1176)[9:org.apache.karaf.features.core:4.0.9]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1074)[9:org.apache.karaf.features.core:4.0.9]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_25]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_25]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_25]
Caused by: java.lang.ExceptionInInitializerError
at org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.bgp.rib.impl.rev160330.$YangModuleInfoImpl.<init>($YangModuleInfoImpl.java:41)
at org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.bgp.rib.impl.rev160330.$YangModuleInfoImpl.<clinit>($YangModuleInfoImpl.java:10)
at org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.bgp.rib.impl.rev160330.$YangModelBindingProvider.getModuleInfo($YangModelBindingProvider.java:6)
at org.opendaylight.controller.config.manager.impl.osgi.mapping.ModuleInfoBundleTracker.retrieveModuleInfo(ModuleInfoBundleTracker.java:147)[181:org.opendaylight.controller.config-manager:0.7.0.SNAPSHOT]
... 27 more
Caused by: java.lang.IllegalStateException: Resource '/META-INF/yang/odl-bgp-rib-spi-cfg.yang' is missing
at org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.bgp.rib.spi.rev131115.$YangModuleInfoImpl.<init>($YangModuleInfoImpl.java:30)[330:org.opendaylight.bgpcep.bgp-rib-impl:0.8.0.SNAPSHOT]
at org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.bgp.rib.spi.rev131115.$YangModuleInfoImpl.<clinit>($YangModuleInfoImpl.java:10)[330:org.opendaylight.bgpcep.bgp-rib-impl:0.8.0.SNAPSHOT]
... 31 more

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