[BGPCEP-335] Single feature tests fails due to "Uses constraint violation" Created: 16/Dec/15  Updated: 03/Mar/19  Resolved: 17/Dec/15

Status: Resolved
Project: bgpcep
Component/s: General
Affects Version/s: Bugzilla Migration
Fix Version/s: Bugzilla Migration

Type: Bug
Reporter: Milos Fabian Assignee: Milos Fabian
Resolution: Done 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
blocks BGPCEP-331 Openconfig mandatory descendant missing Resolved
External issue ID: 4792
Priority: Highest

 Description   

installFeature(org.opendaylight.odlparent.featuretest.SingleFeatureTest)[repoUrl: file:/w/workspace/bgpcep-verify-beryllium/jdk/openjdk7/nodes/dynamic_verify/features/bgp/target/classes/features.xml, Feature: odl-bgpcep-bgp-openconfig 0.5.0-SNAPSHOT] Time elapsed: 35.921 sec <<< ERROR!
java.lang.IllegalStateException: Can't install feature odl-bgpcep-bgp-openconfig/0.5.0-SNAPSHOT:
Could not start bundle mvn:org.opendaylight.bgpcep/bgp-rib-impl/0.5.0-SNAPSHOT in feature(s) odl-bgpcep-bgp-rib-impl-0.5.0-SNAPSHOT: Uses constraint violation. Unable to resolve bundle revision org.opendaylight.bgpcep.bgp-rib-impl [208.0] because it is exposed to package 'io.netty.channel' from bundle revisions io.netty.transport [100.0] and io.netty.transport [152.0] via two dependency chains.

Chain 1:
org.opendaylight.bgpcep.bgp-rib-impl [208.0]
import: (&(osgi.wiring.package=io.netty.channel)(version>=4.0.0)(!(version>=5.0.0)))

export: osgi.wiring.package=io.netty.channel
io.netty.transport [100.0]

Chain 2:
org.opendaylight.bgpcep.bgp-rib-impl [208.0]
import: (&(osgi.wiring.package=org.opendaylight.protocol.bgp.rib.spi)(version>=0.5.0)(!(version>=1.0.0)))

export: osgi.wiring.package=org.opendaylight.protocol.bgp.rib.spi; uses:=io.netty.channel
org.opendaylight.bgpcep.bgp-rib-spi [202.0]
import: (&(osgi.wiring.package=io.netty.channel)(version>=4.0.0)(!(version>=5.0.0)))

export: osgi.wiring.package=io.netty.channel
io.netty.transport [152.0]
at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:388)
at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:359)
at Proxyc1a3dfd7_fa8a_47ca_b6ed_0abcf2441d12.installFeature(Unknown Source)
at org.opendaylight.odlparent.featuretest.SingleFeatureTest.installFeature(SingleFeatureTest.java:244)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.lang.Thread.run(Thread.java:745)



 Comments   
Comment by Milos Fabian [ 16/Dec/15 ]

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

Comment by Vratko Polak [ 16/Dec/15 ]

Beryllium odlparent now exports odl-netty feature (which unifies bundle versions).
Bgpcep should use that feature whenever possible (possibly adding additional netty bundles to odlparent, although netty-transport is already there).

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