satlearner
satlearner

Reputation: 345

Karaf 4 bootfeature is not working

We upgraded from Karaf-3 to Karaf-4.0.10 version to move to Nitrogen version of Opendaylight. We are getting following exception while trying to start standard and application feature (custom-odl) as boot feature. However we are able to manually install the same custom-odl (not as bootfeature) feature through karaf console. In Karaf-3, we were able to start manually as well as bootfeature.

2018-02-26 14:50:58,266 | ERROR | 69e-e623d6584878  | 6 - org.apache.karaf.features.core - 4.0.10 | BootFeaturesInstaller | Error installing boot features
org.osgi.framework.BundleException: Unable to acquire the state change lock for the module: osgi.identity; osgi.identity="org.apache.karaf.features.core"; type="osgi.bundle"; version:Version="4.0.10" [id=6] STOPPED [STARTED]

org.apache.karaf.features.cfg (configuration file input)

featuresBoot= (wrap), (standard), custom-odl

custom-odl has more than 100 bundles grouped under different features.

Upvotes: 1

Views: 805

Answers (2)

Tom Pantelis
Tom Pantelis

Reputation: 1349

That error indicate it's trying to acquire the lock to stop the bundle, ie it's trying to transition to the STOPPED state and the previous stateTransitionEvents were STARTED. There's something nasty going on - it seems like it may be trying to restart the bundle recursively. As Jamo mentioned, it's likely related to your custom-odl feature - I would suggest examining the feature and try adding pieces of it one at a time to find the offending part.

Upvotes: 2

jamo
jamo

Reputation: 752

The automated test jobs in upstream OpenDaylight are ok with featuresBoot. One example I have is like this:

featuresBoot = odl-infrautils-ready,odl-netvirt-openstack, \
     standard, \
     wrap

maybe try your custom distribution without your custom features to make sure that works. If that works, then possibly the problem is somewhere in your custom feature.

Upvotes: 2

Related Questions