[DOCS-132] odl:type usage is discouraged -- icertificatemanager Created: 17/Dec/20  Updated: 18/Dec/20  Resolved: 18/Dec/20

Status: Closed
Project: docs
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Andreas Foteas Assignee: Thanh Ha (zxiiro)
Resolution: Won't Do Votes: 0
Labels: aaaCertificateManager
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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?

 



 Comments   
Comment by Andreas Foteas [ 18/Dec/20 ]

It seems that there was no issue... At the refactoring proccess i accidentally remove the "public" from the contructor so that was the reason for not finding the constructor. It is working ok with
odl:type="defailt-certificate-manager"

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