Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

0

Missing Constraint: Import-Package: org.opendaylight.controller.statisticsmanager; version="[0.7.0,1.0.0)"

asked 2016-02-15 01:57:40 -0700

vinayaktj gravatar image

I'm trying to run a bundle using karaf in lithium. I have installed it using bundle:install file:path. Whenever I'm trying to start the bundle I'm getting the error "Error executing command: Error executing command on bundles: Unable to execute command on bundle 64: The bundle "org.opendaylight.controller.mystats_0.1.0 [64]" could not be resolved. Reason: Missing Constraint: Import-Package: org.opendaylight.controller.statisticsmanager; version="[0.7.0,1.0.0)"". I had similar errors previously for sal.core and others. I resolved them by finding out the feature with that package using feature:list | grep sal.core . And then installing the feature which has it. But for feature:list | grep statisticsmanager I'm getting no result. How can I resolve this error ?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-05-16 05:20:04 -0700

jgoodyear gravatar image

Hi,

Running grep on feature list will not provide the necessary granularity you're seeking.

The pseudo code for the operation you need to execute is below:

foreach target in featureList: feature:info target | grep -i -l "statisticsManager"

edit flag offensive delete publish link more
0

answered 2016-05-18 09:02:50 -0700

sujata_roy gravatar image

Hi, I am also facing the same problem
Unable to execute command on bundle 297: The bundle "org.opendaylight.controller.MMA_0.1.0 [297]" could not be resolved. Reason: Missing Constraint: Import-Package: org.opendaylight.controller.hosttracker; version="[0.5.0,1.0.0)"

After installing the features for hosttracker odl-l2switch-hosttracker and odl-alto-hosttracker the problem persists. Any idea how to solve it?

Thanks, Sujata

edit flag offensive delete publish link more

Comments

Interesting, the host tracker features you've installed - which version of the packages did they export into the container? Feature info will tell you which bundles were installed for a given feature target. Use bundle headers on those bundles to see which packages/versions where exported.

jgoodyear ( 2016-05-26 09:05:50 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-02-15 01:57:40 -0700

Seen: 334 times

Last updated: May 18 '16