[OPNFLWPLUG-1029] Error when installing features-l2switch and features-openflowplugin Created: 19/Jul/18  Updated: 30/Aug/18  Resolved: 30/Aug/18

Status: Resolved
Project: OpenFlowPlugin
Component/s: General
Affects Version/s: Oxygen
Fix Version/s: Oxygen-SR4, Fluorine-SR1, Neon

Type: Bug Priority: High
Reporter: Onur Alp Assignee: Gobinath Suganthan
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

I am using karaf-0.8.2 on Kubuntu 18.04 and java-1.8.0-openjdk-amd64


Attachments: Text File logkaraf.txt    

 Description   

When I try to install features-l2switch and features-openflowplugin, I get a long list of errors. Attached the complete error output as a text file.

The errors are like

 

Unsatisfied Requirements:

osgi.wiring.package; filter:="(&(osgi.wiring.package=org.opendaylight.openflowplugin.api)(&(version>=0.6.0)(!(version>=1.0.0))))"

 

and

 

Bundle was not resolved because of a uses contraint violation.
org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.opendaylight.openflowplugin.api [osgi.identity; osgi.identity="org.opendaylight.openflowplugin.api"; type="osgi.bundle"; version:Version="0.6.2"] because it is exposed to package 'javax.annotation' from resources javax.annotation-api [osgi.identity; osgi.identity="javax.annotation-api"; type="osgi.bundle"; version:Version="1.2.0"] and org.eclipse.osgi [osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.12.50.v20170928-1321"; singleton:="true"] via two dependency chains.

Chain 1:
org.opendaylight.openflowplugin.api [osgi.identity; osgi.identity="org.opendaylight.openflowplugin.api"; type="osgi.bundle"; version:Version="0.6.2"]
import: (osgi.wiring.package=javax.annotation)

export: osgi.wiring.package: javax.annotation
javax.annotation-api [osgi.identity; osgi.identity="javax.annotation-api"; type="osgi.bundle"; version:Version="1.2.0"]

Chain 2:
org.opendaylight.openflowplugin.api [osgi.identity; osgi.identity="org.opendaylight.openflowplugin.api"; type="osgi.bundle"; version:Version="0.6.2"]
import: (&(osgi.wiring.package=org.opendaylight.controller.md.sal.binding.api)(&(version>=1.7.0)(!(version>=2.0.0))))

export: osgi.wiring.package=org.opendaylight.controller.md.sal.binding.api; uses:=javax.annotation
org.opendaylight.controller.sal-binding-api [osgi.identity; osgi.identity="org.opendaylight.controller.sal-binding-api"; type="osgi.bundle"; version:Version="1.7.2"]
import: (osgi.wiring.package=javax.annotation)

export: osgi.wiring.package: javax.annotation
org.eclipse.osgi [osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.12.50.v20170928-1321"; singleton:="true"]
Could not resolve module: org.opendaylight.openflowplugin [310]
Unresolved requirement: Import-Package: org.apache.commons.lang3; version="[3.7.0,4.0.0)"

 

 



 Comments   
Comment by Anil Vishnoi [ 23/Jul/18 ]

onuralparslan Can you please provide the feature  list that you are using for installation?

Comment by Onur Alp [ 23/Jul/18 ]

I installed only features-l2switch and features-openflowplugin on opendaylight which was installed with default settings.

Comment by Arunprakash D [ 25/Jul/18 ]

Could you please let us know the location of the distribution karaf folder from where you are starting the karaf? is it from integration distribution? or from l2-switch distribution karaf? 

Comment by Luis Gomez [ 30/Jul/18 ]

You have to install individual features odl-* not features-*. Check individual features in the release notes: https://docs.opendaylight.org/en/stable-oxygen/release-notes/index.html

Comment by Gobinath Suganthan [ 20/Aug/18 ]

onuralparslan I tried installing the "features-l2switch" and "features-openflowplugin" like this

feature:install features-l2switch features-openflowplugin

and there were no issues (which were seen while installing them one-by-one).

The dependent features would result in bundle refresh which could lead to bundle resolution problems and I think it is recommended to install the features together (feature:install x y z...rather than feature:install x feaure:install y so on) in karaf 4.0 (which is being used in Oxygen,ie,0.8)

Could you try with recommended manner as I mentioned above.

Comment by Onur Alp [ 30/Aug/18 ]

Now I tried installing them together and I confirm that it works.
Maybe you can add this recommended manner to "Install the Karaf features" section in "Installation Guide" of Opendaylight.

Comment by Luis Gomez [ 30/Aug/18 ]

Individual features have to be installed in special way so they do not produce bundle restarts:

https://docs.opendaylight.org/en/stable-oxygen/release-notes/projects/distribution.html#known-issues

Generated at Wed Feb 07 20:34:01 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.