Uploaded image for project: 'docs'
  1. docs
  2. DOCS-132

odl:type usage is discouraged -- icertificatemanager

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Won't Do
    • None
    • None
    • General

    Description

      version: Aluminum
      page: release-notes/upgrade-process

      How should we update the :
      odl:type="default-certificate-manager"

       

      I have updated a project from sodium to aluminum odl version. As mentioned at https://docs.opendaylight.org/en/stable-aluminium/release-notes/upgrade-process.html#use-of-odl-type-in-blueprint-is-discouraged
      we must not use the odl:type property. At the link provided with examples the odl:type="default" was simply removed.
      In my case my reference is:

      <reference id="aaaCertificateManager"
       interface="org.opendaylight.aaa.cert.api.ICertificateManager"
       odl:type="default-certificate-manager" />
      

      When I try to build the project I get an error while
      Running org.opendaylight.odlparent.featuretest.SingleFeatureTest

      which is caused by:

      Missing dependencies: 
      (objectClass=org.opendaylight.aaa.cert.api.ICertificateManager) 
      	at org.opendaylight.odlparent.bundlestest.lib.TestBundleDiag.checkBundleDiagInfos(TestBundleDiag.java:87)
      	at org.opendaylight.odlparent.bundlestest.lib.TestBundleDiag.checkBundleDiagInfos(TestBundleDiag.java:61)
      	at org.opendaylight.odlparent.featuretest.SingleFeatureTest.installFeature(SingleFeatureTest.java:404)
      	at org.opendaylight.odlparent.featuretest.SingleFeatureTest.installFeatureCatchAndLog(SingleFeatureTest.java:356)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
      	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      

      If odl:type is totally removed the following error is thrown:

       Condition with alias 'checkBundleDiagInfos' didn't complete within 300 seconds because lambda expression in org.opendaylight.odlparent.bundlestest.lib.TestBundleDiag: expected system either ready with all bundles Active, or Stopping or Failure (but not still booting in GracePeriod, Waiting, Starting, Unknown;but just Resolved and some exceptional Installed OK) but was <diag: Booting {Installed=0, Resolved=7, Unknown=0, GracePeriod=1, Waiting=0, Starting=0, Active=357, Stopping=0, Failure=0}
      1. NOK com.intracomtelecom.sdnnfv.accesspointmanager.config:1.0.1.afoteas-SNAPSHOT: OSGi state = Active, Karaf bundleState = GracePeriod, due to: Declarative Services
      Blueprint
      12/17/20, 6:55 PM
      Missing dependencies: 
      (&(|(type=default)(!(type=*)))(objectClass=org.opendaylight.aaa.cert.api.ICertificateManager)) 
      >.
      

      what should I do in order to proceed with this issue?

       

      Attachments

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

        Activity

          People

            zxiiro Thanh Ha (zxiiro)
            afoteas Andreas Foteas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: