Milestone: Upgrade karaf to 4.0.1 or later

Description

Karaf 4.0.x is a major update, featuring newer technologies (like log4j2) and having a smaller footprint. We should investigate and fix any issues preventing us from upgrading and move to this new version.

Environment

Operating System: All
Platform: All

is blocked by

Activity

Show:

Stephen Kitt November 16, 2016 at 3:51 PM

For people playing along at home, with https://git.opendaylight.org/gerrit/48415 and https://git.opendaylight.org/gerrit/47884 we can now get a Karaf 4-based distribution which starts correctly. Once it's started,

feature:install wrap

will load the pre-requisite "wrap" feature, and feature:install will then load ODL features as usual. Things currently fall over with bundles providing CLI commands since the Felix bundles have changed.

Stephen Kitt October 25, 2016 at 10:13 AM

(In reply to Vratko Polák from comment #5)
> One approach would be to start developing karaf4-parent as an experimental
> functionality, and only replace karaf-parent with the new implementation
> when it becomes stable enough. The upside is that we can gradually implement
> CSIT jobs and open Bugzilla items, without the need to get everything right
> in a single Change.

I like this a lot. I've started https://git.opendaylight.org/gerrit/47484 (draft, ask me if you want to review it) which currently provides the default upstream Karaf 4 via karaf4-parent and opendaylight-karaf4-empty. Subsequent patch sets will align the resulting Karaf distribution with the requirements currently implemented in karaf-parent and opendaylight-karaf-empty.

Vratko Polak October 3, 2016 at 12:04 PM

There may be multiple changes to be applied to karaf-parent in order to make it work correctly with Karaf 4, especially around the things karaf-plugin does.

One approach would be to start developing karaf4-parent as an experimental functionality, and only replace karaf-parent with the new implementation when it becomes stable enough. The upside is that we can gradually implement CSIT jobs and open Bugzilla items, without the need to get everything right in a single Change.

I would recommend to leave karaf-plugin out of initial karaf4-parent commits, and attempt to employ "assembly" goal of karaf-maven-plugin instead. And introduce karaf4-plugin only if it is still needed at the end.

> karaf-4.1.x, due to the fact that they bundle sshd-core-0.14.0 as a startup feature

In karaf-parent, there already are workarounds for org.apache.karaf.region.persist, org.apache.aries.proxy.impl and org.apache.servicemix.bundles.xalan-2.7.2_3, so I believe karaf-4.0.x could be made to work as well.

Robert Varga August 1, 2016 at 1:46 PM

BUG-6318 requires karaf-4.1.x, due to the fact that they bundle sshd-core-0.14.0 as a startup feature in versions prior to that.

Gary Wu December 1, 2015 at 4:50 PM

Done

Details

Assignee

Reporter

External issue ID

Components

Priority

Created August 28, 2015 at 11:54 AM
Updated January 24, 2018 at 2:27 PM
Resolved September 12, 2017 at 12:33 PM