[BGPCEP-666] features4-extras cannot be added to karaf4 distribution Created: 03/May/17  Updated: 03/Mar/19  Resolved: 11/Aug/17

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

Type: Bug
Reporter: Luis Gomez Assignee: Claudio David Gasparini
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-667 Failure bringing karaf 4 feature odl-... Resolved
blocks CONTROLLER-1652 Failure bringing karaf 4 feature odl-... Resolved
External issue ID: 8356

 Description   

This ERROR is thrown when doing so:

00:51:57 -------------------------------------------------------
00:51:57 T E S T S
00:51:57 -------------------------------------------------------
00:52:00 Running org.opendaylight.odlparent.featuretest.SingleFeatureTest
00:52:46 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 45.827 sec <<< FAILURE! - in org.opendaylight.odlparent.featuretest.SingleFeatureTest
00:52:46 installFeatureCatchAndLog(org.opendaylight.odlparent.featuretest.SingleFeatureTest)[repoUrl: file:/w/workspace/distribution-verify-carbon/features/repos/index/target/feature/feature.xml, Feature: features-index 0.6.0.SNAPSHOT] Time elapsed: 44.584 sec <<< ERROR!
00:52:46 org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=features-index; type=karaf.feature; version="[0.6.0.SNAPSHOT,0.6.0.SNAPSHOT]"; filter:="(&(osgi.identity=features-index)(type=karaf.feature)(version>=0.6.0.SNAPSHOT)(version<=0.6.0.SNAPSHOT))" [caused by: Unable to resolve features-index/0.6.0.SNAPSHOT: missing requirement [features-index/0.6.0.SNAPSHOT] osgi.identity; osgi.identity=features4-extras; type=karaf.feature; version="[0.7.0.SNAPSHOT,0.7.0.SNAPSHOT]"]
00:52:46 at org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)
00:52:46 at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:389)
00:52:46 at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:375)
00:52:46 at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:347)
00:52:46 at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:216)
00:52:46 at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:263)
00:52:46 at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1176)
00:52:46 at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1074)
00:52:46 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
00:52:46 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
00:52:46 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
00:52:46 at java.lang.Thread.run(Thread.java:745)



 Comments   
Comment by Robert Varga [ 05/May/17 ]

Do you have a job reference with more logs?

Comment by Luis Gomez [ 06/May/17 ]

This patch reproduces the issue:

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

And this log shows the problem:

https://logs.opendaylight.org/releng/jenkins092/distribution-verify-carbon/89/console.log.gz

Comment by Claudio David Gasparini [ 09/May/17 ]

Hi Luis, indeed the issue is coming from conflict in common artifact Id.

If you take a look, you will see that controller has the same name
(features4-extras) for one of his artifact

<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>features4-extras</artifactId>
<classifier>features</classifier>
<type>xml</type>
</dependency>

When creating the feature.xml both will end on same feat but with different version. Ending on test failure.

<feature version="1.8.0.SNAPSHOT" prerequisite="false" dependency="false">features4-extras</feature>

I renamed our artifact, so there will no be longer conflict. But it might be
good to add this information in some place on karaf4 guide, in case someone else will hit the same issue.

Regards,

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

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