Ask Your Question
0

Error on installing odl-openflowplugin-all to SR3 distribution.

asked 2015-05-24 00:37:40 -0700

updated 2015-05-28 03:19:37 -0700

Hello Everyone,

Could someone please explain following error:

Error executing command: Could not start bundle mvn:org.opendaylight.yangtools/object-cache-guava/0.6.5-Helium-SR3 in feature(s) odl-yangtools-common-0.6.5-Helium-SR3: The bundle "org.opendaylight.yangtools.object-cache-guava_0.6.5.Helium-SR3 [250]" could not be resolved. Reason: Package uses conflict: Import-Package: org.opendaylight.yangtools.objcache.spi; version="[0.6.0,1.0.0)"

I am getting this error on installing feature odl-openflowplugin-all to opendaylight SR3 distribution.

Update:

The application repository : https://github.com/subh007/ODL-Sample-App

I am able to install the application to the ODL SR3-distribution and the rest API is also working correctly. I tried to install the feature odl-opeflowplugin after the application installation. Then I am getting following error :

@root>repo-add mvn:org.opendaylight.hello/hello-features/1.0.0-SNAPSHOT/xml/features
Adding feature url mvn:org.opendaylight.hello/hello-features/1.0.0-SNAPSHOT/xml/features
opendaylight-user@root>feature:install odl-hello
opendaylight-user@root>feature:install odl-openflowplugin-all
Error executing command: Could not start bundle mvn:org.opendaylight.yangtools/object-cache-guava/0.6.5-Helium-SR3 in feature(s) odl-yangtools-common-0.6.5-Helium-SR3: The bundle "org.opendaylight.yangtools.object-cache-guava_0.6.5.Helium-SR3 [221]" could not be resolved. Reason: Package uses conflict: Import-Package: org.opendaylight.yangtools.objcache.spi; version="[0.6.0,1.0.0)"

The above error is thrown because of version mismatch (thanks to @vrpolak to point-out). I modified the code to reflect yangtools.version=0.7.0-SNAPSHOT but still I am getting the same error.

Could someone please explain where I am missing. (application repo : https://github.com/subh007/ODL-Sample-App ).

update:

I am getting one more error now if i try to install the feature:

opendaylight-user@root>feature:install odl-hello
Error executing command: Error resolving artifact org.opendaylight.yangtools:features-yangtools:xml:features:0.8.0-SNAPSHOT: Could not find artifact org.opendaylight.yangtools:features-yangtools:xml:features:0.8.0-SNAPSHOT in defaultlocal (file:/Users/subh/.m2/repository/)

update: above issue got resolved. Now, I am getting the following (previous) error message.

Error executing command: Could not start bundle mvn:org.opendaylight.yangtools/object-cache-guava/0.6.5-Helium-SR3 in feature(s) odl-yangtools-common-0.6.5-Helium-SR3: The bundle "org.opendaylight.yangtools.object-cache-guava_0.6.5.Helium-SR3 [250]" could not be resolved. Reason: Package uses conflict: Import-Package: org.opendaylight.yangtools.objcache.spi; version="[0.6.0,1.0.0)"
edit retag flag offensive close merge delete

Comments

That does not happen in my SR3 installation. Bundle org.opendaylight.yangtools.object-cache-api exports the needed *.objcache.spi package. Do you have any non-standard bundles installed, which may create the reported conflict?

vrpolak ( 2015-05-25 05:12:46 -0700 )edit

@vrpolok, first I installed my project https://github.com/subh007/ODL-Sample-App then I tried to install the the openflowplugin. I am trying to write application using the openflowplugin.

subhash ( 2015-05-25 11:30:54 -0700 )edit

> first I installed my project https://github.com/subh007/ODL-Sample-App I see yangtools.version=0.8.0-SNAPSHOT that is post-lithium version. Still inside [0.6.0,1.0.0), but it would lead to conflicts anyway. I recommend back-porting the sample app to use the same versions as the ODL you run it in.

vrpolak ( 2015-05-26 02:45:32 -0700 )edit

@vrpolak I am very thankful to you for all your help. Would it possible for you to chat on irc. my irc nick is subh.

subhash ( 2015-05-26 08:32:27 -0700 )edit

@vrpolak I made some progress. I modified the version dependancy : https://github.com/subh007/ODL-Sample-App/commit/8c95ac72547cef2aab3f571512dbdedbd6e0584e . But still the conflict is not resolved. Could you please tell me which part of the code i need to change.

subhash ( 2015-05-26 21:42:54 -0700 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-28 12:42:58 -0700

updated 2015-05-28 12:46:31 -0700

Hello, I would suggest downgrading the yangtools version since you are using Helium. In fact, I would suggest downgrading all the artefacts to match those of Helium to avoid conflicts.

If I could give an honest opinion, you should use the karaf from your repos instead of using Helium. You would only need to do 2 things:

You can find the artefacts you are looking for here: https://nexus.opendaylight.org/content/repositories/opendaylight.daily/org/opendaylight/

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-05-24 00:37:40 -0700

Seen: 856 times

Last updated: May 28 '15