Re: [kernel-dev] [release] [app-dev] Silicon MRI Version Bump happening now


Robert Varga
 

On 23/10/2020 11:34, Karthikeyan wrote:
Hi Robert,
   I had spent some time today on looking at netvirt patch[0] and fixed
a few of errors and still not able to identify the root cause of the
below jenkins ERRORs.
  
Please let us know if you know how to address this issue for loading
configproperties from OVSDB.

[0] https://git.opendaylight.org/gerrit/c/netvirt/+/92971
<https://git.opendaylight.org/gerrit/c/netvirt/+/92971>

https://jenkins.opendaylight.org/releng/job/netvirt-maven-verify-silicon-mvn35-openjdk11/190/console
<https://jenkins.opendaylight.org/releng/job/netvirt-maven-verify-silicon-mvn35-openjdk11/190/console>

*14:44:25* [ERROR] Tests run: 10, Failures: 0, Errors: 8, Skipped: 2,
Time elapsed: 3.608 s <<< FAILURE! - in
org.opendaylight.netvirt.elanmanager.tests.ElanServiceTest *14:44:25*
[ERROR]
checkEvpnAdvRT2(org.opendaylight.netvirt.elanmanager.tests.ElanServiceTest)
Time elapsed: 2.633 s <<< ERROR! *14:44:25
java.lang.NoClassDefFoundError: org/osgi/framework/FrameworkUtil
14:44:25 at
org.opendaylight.ovsdb.utils.config.ConfigProperties.getProperty(ConfigProperties.java:36)**14:44:25* at
org.opendaylight.genius.utils.ServiceIndex.getIndex(ServiceIndex.java:36) *14:44:25*
at
org.opendaylight.netvirt.elan.internal.ElanServiceProvider.setIsL2BeforeL3(ElanServiceProvider.java:843)
*14:44:25* at
org.opendaylight.netvirt.elan.internal.ElanServiceProvider.start(ElanServiceProvider.java:154)
*14:44:25* at
org.opendaylight.infrautils.inject.AbstractLifecycle.init(AbstractLifecycle.java:46)
Hmm, weird, why is this even needed?

It does look like ConfigProperties.getProperty() requires OSGi runtime
to execute -- which your UT is not.

We typically reserve this to the runtime, where osgi-core is scope=provided.

Can you add a scop=test dependency on osgi-core (or wherevever
FrameworkUtil lives)?

Regards,
Robert

Join TSC@lists.opendaylight.org to automatically receive all group messages.