[GENIUS-127] odl-genius-api feature does not install Created: 26/Apr/18  Updated: 22/May/18  Resolved: 22/May/18

Status: Resolved
Project: genius
Component/s: General
Affects Version/s: Carbon
Fix Version/s: Carbon

Type: Bug Priority: Medium
Reporter: Jaime Caamaño Ruiz Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File karaf.log    

 Description   

Installing feature odl-genius-api fails:

opendaylight-user@root>feature:install odl-genius-api
Error executing command: Can't install feature odl-genius-api/0.0.0:
Could not start bundle mvn:org.opendaylight.genius/mdsalutil-api/0.2.3-Carbon in feature(s) odl-genius-api-0.2.3-Carbon: The bundle "org.opendaylight.genius.mdsalutil-api_0.2.3.Carbon [234]" could not be resolved. Reason: Missing Constraint: Import-Package: javax.inject; version="0.0.0"

This affects basic SFC features that rely in odl-genius-api as the only genius feature. The problem prevents using SFC in for stand alone use cases that don't integrate with openstack.

Issue is present since Carbon SR3 included. Is not an issue in other branches.



 Comments   
Comment by Michael Vorburger [ 26/Apr/18 ]

jaicaa I've just attempted to locally reproduce this, but cannot, here's what I've done:

$ cd genius; git checkout stable/carbon; git pull
$ git log ==> 9c9d9a2516359df85ece0b257fed9233f7aba867
$ cd karaf
$ mvn clean package
$ ./target/assembly/bin/karaf
opendaylight-user@root>feature:install odl-genius-api
opendaylight-user@root>diag

seems to work just fine?

Comment by Jaime Caamaño Ruiz [ 26/Apr/18 ]

vorburger the only difference is that I am using builds available on nexus, for example for SR3 I used

https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.6.3-Carbon/distribution-karaf-0.6.3-Carbon.tar.gz

Comment by Michael Vorburger [ 26/Apr/18 ]

Erm, but then doesn't that mean that it's actually already fixed at source and will work in the upcoming last Carbon SR?

Comment by Jaime Caamaño Ruiz [ 26/Apr/18 ]

Well, I also tested on the latest autorelease build or the build that ran the lastest SFC CSIT, same result.

Comment by Jaime Caamaño Ruiz [ 26/Apr/18 ]

Like

https://nexus.opendaylight.org/content/repositories//autorelease-2142/org/opendaylight/integration/distribution-karaf/0.6.4-Carbon/distribution-karaf-0.6.4-Carbon.zip

or

 https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/distribution-karaf/0.6.4-SNAPSHOT/distribution-karaf-0.6.4-20180424.225744-322.zip

Comment by Michael Vorburger [ 26/Apr/18 ]

[edited to reflect your edit; you originally above linked (twice, same) to the 0.6.3 = Carbon SR3 and then edited to now mention the 0.6.4]

If it does still happen with a 0.6.4-SNAPSHOT, then this means that this is something that for some weird reason affects only a Karaf built in distribution, not a project local karaf like genius/karaf. So if anyone wants to dig further (I won't be able to unfortunately; sorry), try building an integration/distribution/karaf on stable/carbon and see if it reproduces there, and then go investigate from that.

Comment by Jaime Caamaño Ruiz [ 26/Apr/18 ]

Yeah, sorry for the edits, bogus copy paste. I though I was quick enough on amending but I guess not

 

Comment by Faseela K [ 27/Apr/18 ]

Experiencing the same thing as what vorburger is seeing.

Local build does not hit the issue. 

When I download the above mentioned distribution, I am getting the error, but more errors on top of it, if you open the karaf logkaraf.log

Comment by Faseela K [ 10/May/18 ]

What should we do with this bug now? 

Comment by Faseela K [ 22/May/18 ]

jaicaa : I will close this bug as I am not able to reproduce the issue locally. Let me know your thoughts

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