[ODLPARENT-23] Milestone: Upgrade karaf to 4.0.1 or later Created: 28/Aug/15  Updated: 24/Jan/18  Resolved: 12/Sep/17

Status: Resolved
Project: odlparent
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Robert Varga Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
blocks CONTROLLER-1389 Leveldbjni not available on ARM Resolved
blocks CONTROLLER-1551 ConcurrentModificationException at ka... Resolved
blocks ODLPARENT-17 slf4j ConsoleAppender block ODL threads Resolved
blocks ODLPARENT-52 Milestone: upgrade to scala 2.12 Resolved
blocks ODLPARENT-53 Milestone: upgrade to guava-22 Resolved
blocks ODLPARENT-56 Update maven-bundle-plugin from 3.0.1... Resolved
blocks ODLPARENT-67 Upgrade jetty to 9.2.x Resolved
blocks ODLPARENT-69 karaf: do not package spring Resolved
blocks ODLPARENT-86 Milestore: upgrade karaf to 4.1.2 or ... Verified
is blocked by AAA-113 Karaf 4 migration: provide Karaf 4 aa... Resolved
is blocked by ALTO-15 Karaf 4 migration: provide Karaf 4 al... Resolved
is blocked by BGPCEP-678 Karaf4 Unable to push configuration d... Resolved
is blocked by BIER-5 Karaf 4 migration: provide Karaf 4 bi... Resolved
is blocked by CARDINAL-7 Karaf 4 migration: provide Karaf 4 ca... Resolved
is blocked by CONTROLLER-1577 Karaf 4 migration: provide Karaf 4 co... Resolved
is blocked by DLUX-115 Karaf 4 migration: provide Karaf 4 dl... Resolved
is blocked by DLUXAPPS-11 Karaf 4 migration: provide Karaf 4 dl... Resolved
is blocked by EMAN-3 Karaf 4 migration: provide Karaf 4 em... Resolved
is blocked by FAAS-41 Karaf 4 migration: provide Karaf 4 fa... Resolved
is blocked by GBP-275 Karaf 4 migration: provide Karaf 4 gr... Resolved
is blocked by GENIUS-53 Karaf 4 migration: provide Karaf 4 ge... Resolved
is blocked by GENIUS-82 Karaf4 specific problems seen on both... Resolved
is blocked by HONEYVBD-15 Karaf 4 migration: provide Karaf 4 ho... Resolved
is blocked by INFRAUTILS-7 Karaf 4 migration: provide Karaf 4 in... Resolved
is blocked by L2SWITCH-92 Karaf 4 migration: provide Karaf 4 l2... Resolved
is blocked by LISPMAP-148 Karaf 4 migration: provide Karaf 4 li... Resolved
is blocked by MDSAL-216 Karaf 4 migration: provide Karaf 4 md... Resolved
is blocked by NEMO-8 Karaf 4 migration: provide Karaf 4 ne... Resolved
is blocked by NETCONF-336 Karaf 4 migration: provide Karaf 4 ne... Resolved
is blocked by NETIDE-11 Karaf 4 migration: provide Karaf 4 ne... Resolved
is blocked by NETVIRT-442 Karaf 4 migration: provide Karaf 4 ne... Resolved
is blocked by NEUTRON-146 Karaf 4 migration: provide Karaf 4 ne... Resolved
is blocked by NIC-32 Karaf 4 migration: provide Karaf 4 ni... Resolved
is blocked by OCPPLUGIN-10 Karaf 4 migration: provide Karaf 4 oc... Resolved
is blocked by ODLPARENT-45 Migrate dependent projects off openda... Resolved
is blocked by ODLPARENT-54 Karaf 4 migration: provide Karaf 4 od... Resolved
is blocked by ODLPARENT-72 Karaf 4: StackOverflowError when load... Resolved
is blocked by ODLPARENT-82 Restconf does not start in Karaf 4 Resolved
is blocked by ODLPARENT-96 karaf4-parent does not include files ... Resolved
is blocked by ODLPARENT-97 Karaf 4 Dependency Resolution Resolved
is blocked by OFCONFIG-9 Karaf 4 migration: provide Karaf 4 of... Resolved
is blocked by OPNFLWJAVA-83 Karaf 4 migration: provide Karaf 4 op... Resolved
is blocked by OPNFLWPLUG-843 Karaf 4 migration: provide Karaf 4 op... Resolved
is blocked by OVSDB-398 Karaf 4 migration: provide Karaf 4 ov... Resolved
is blocked by PACKTCABLE-29 Karaf 4 migration: provide Karaf 4 pa... Resolved
is blocked by RELENG-57 Please add release jobs for odlparent Resolved
is blocked by SDNINTRFAC-13 Karaf 4 migration: provide Karaf 4 sd... Resolved
is blocked by SFC-187 Karaf 4 migration: provide Karaf 4 sf... Resolved
is blocked by SNBI-29 Karaf 4 migration: provide Karaf 4 sn... Resolved
is blocked by SNMP-14 Karaf 4 migration: provide Karaf 4 sn... Resolved
is blocked by SXP-114 Karaf 4 migration: provide Karaf 4 sx... Resolved
is blocked by TOPOPROCES-91 Karaf 4 migration: provide Karaf 4 to... Resolved
is blocked by TSDR-32 Karaf 4 migration: provide Karaf 4 ts... Resolved
is blocked by TTP-7 Karaf 4 migration: provide Karaf 4 tt... Resolved
is blocked by USC-19 Karaf 4 migration: provide Karaf 4 us... Resolved
is blocked by VTN-153 Karaf 4 migration: provide Karaf 4 vt... Resolved
is blocked by YANGTOOLS-733 Karaf 4 migration: provide Karaf 4 ya... Resolved
is blocked by NETVIRT-719 Karaf4 specific problems seen on boot... Resolved
is blocked by ODLPARENT-85 Restconf does not start in Karaf 4.0.9 Verified
is blocked by SFC-196 Karaf4 exceptions in SFC distribution Verified
External issue ID: 4219

 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.



 Comments   
Comment by Stephen Kitt [ 28/Aug/15 ]

Support for Karaf 4.0.1 in odlparent is available at https://git.opendaylight.org/gerrit/26158

Comment by Stephen Kitt [ 28/Aug/15 ]

The patch for controller is at https://git.opendaylight.org/gerrit/#/c/26161/ (currently broken).

Comment by Gary Wu [ 01/Dec/15 ]

This is a gating issue for https://bugs.opendaylight.org/show_bug.cgi?id=3973

Comment by Robert Varga [ 01/Aug/16 ]

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.

Comment by Vratko Polak [ 03/Oct/16 ]

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.

Comment by Stephen Kitt [ 25/Oct/16 ]

(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.

Comment by Stephen Kitt [ 16/Nov/16 ]

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.

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