Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-7460

Installing onos app netcfglinksprovider has an issue

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.11.0, 1.12.0, 1.13.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      ONOS_APPS=drivers,segmentrouting,openflow,netcfghostprovider,netcfglinksprovider

    • Epic Link:
    • Sprint:
      N Sprint #3 - QA

      Description

      When trying to run ONOS with netcfglinksprovider apps with other apps that uses 

      org.onosproject.provider.lldp.impl.LldpLinkProvider

      it throws an exception 

      2018-02-06 23:41:54,740 | INFO  | p-app-activation | NetworkConfigLinksProvider       | 173 | Activated
      
      2018-02-06 23:41:54,855 | ERROR | p-app-activation | onos-providers-netcfglinks       | 173 | [org.onosproject.provider.netcfglinks.NetworkConfigLinksProvider(164)] The activate method has thrown an exception
      java.lang.IllegalStateException: A primary provider with id org.onosproject.provider.lldp.impl.LldpLinkProvider@d749506 is already registered
      at com.google.common.base.Preconditions.checkState(Preconditions.java:530)
      at org.onosproject.net.provider.AbstractProviderRegistry.register(AbstractProviderRegistry.java:65)
      at org.onosproject.provider.netcfglinks.NetworkConfigLinksProvider.activate(NetworkConfigLinksProvider.java:153)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_101]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_101]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_101]
      at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_101]
      at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:231)
      at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:39)
      at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:624)
      at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:508)
      at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:149)
      at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:315)
      at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:127)
      at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:871)
      at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:838)
      at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:850)
      at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:419)
      at org.apache.felix.scr.impl.config.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:376)
      at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:172)
      at org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:120)
      at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:258)
      at org.apache.felix.scr.impl.Activator.access$000(Activator.java:45)
      at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:185)
      at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)
      at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)
      at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:479)[karaf-org.osgi.core.jar:]
      at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:414)[karaf-org.osgi.core.jar:]
      at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)[karaf-org.osgi.core.jar:]
      at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:443)[karaf-org.osgi.core.jar:]
      at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:868)
      at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:789)
      at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:514)
      at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4403)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:2092)
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
      at org.apache.karaf.features.internal.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:516)
      at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:474)
      at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:415)
      at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:390)
      at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:371)
      at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:349)
      at Proxy866c7769_d113_4dad_8f6b_90482abf2fe1.installFeature(Unknown Source)
      at org.onosproject.app.impl.ApplicationManager.installAppFeatures(ApplicationManager.java:283)
      at org.onosproject.app.impl.ApplicationManager.access$200(ApplicationManager.java:66)
      at org.onosproject.app.impl.ApplicationManager$InternalStoreDelegate.notify(ApplicationManager.java:210)
      at org.onosproject.app.impl.ApplicationManager$InternalStoreDelegate.notify(ApplicationManager.java:202)
      at org.onosproject.store.AbstractStore.notifyDelegate(AbstractStore.java:58)[127:org.onosproject.onos-api:1.13.0.SNAPSHOT]
      at org.onosproject.store.app.DistributedApplicationStore.access$500(DistributedApplicationStore.java:96)[131:org.onosproject.onos-core-dist:1.13.0.SNAPSHOT]
      at org.onosproject.store.app.DistributedApplicationStore$AppActivator.accept(DistributedApplicationStore.java:493)[131:org.onosproject.onos-core-dist:1.13.0.SNAPSHOT]
      at org.onosproject.store.app.DistributedApplicationStore$AppActivator.accept(DistributedApplicationStore.java:486)[131:org.onosproject.onos-core-dist:1.13.0.SNAPSHOT]
      at org.onosproject.store.primitives.impl.DefaultDistributedTopic.lambda$null$0(DefaultDistributedTopic.java:67)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_101]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_101]
      at java.lang.Thread.run(Thread.java:745)[:1.8.0_101]
      
      2018-02-06 23:41:54,875 | ERROR | p-app-activation | onos-providers-netcfglinks       | 173 | [org.onosproject.provider.netcfglinks.NetworkConfigLinksProvider(164)] Failed creating the component instance; see log for reason

      which causes ONOS to be stuck in ACTIVE state.

        Attachments

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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dlim15 Devin Lim
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: