[NETCONF-242] Bump apache mina version from the pre-release to current release Created: 01/Aug/16 Updated: 15/Mar/19 Resolved: 19/Mar/18 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | netconf |
| Affects Version/s: | None |
| Fix Version/s: | Oxygen |
| Type: | Bug | ||
| Reporter: | Tomas Cere | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Issue Links: |
|
||||||||
| External issue ID: | 6318 | ||||||||
| Description |
|
Initial work had to be reverted in https://git.opendaylight.org/gerrit/#/c/42627/ |
| Comments |
| Comment by Tomas Cere [ 01/Aug/16 ] |
|
The cause for the revert is in: https://bugs.opendaylight.org/show_bug.cgi?id=6273 |
| Comment by Robert Varga [ 01/Aug/16 ] |
|
The root cause is: 2016-07-26 12:54:04,004 | WARN | oupCloseable-3-1 | ChannelInitializer | 112 - io.netty.common - 4.0.37.Final | Failed to initialize a channel. Closing: [id: 0x3b162577] which boils down to sshd-core requiring mina-core-2.0.13, not 2.0.7 as defaulting in karaf somewhere. This should be fixed by pulling in proper version via a feature. |
| Comment by Tomas Cere [ 01/Aug/16 ] |
|
https://git.opendaylight.org/gerrit/42911 Adding mina-core into the feature def doesn't seem to help, needs more analysis to check if karaf isn't adding it onto the classpath. |
| Comment by Stephen Kitt [ 03/Aug/16 ] |
|
We can probably handle this in the same way as the Aries Proxy overrides; I'm working on a patch. |
| Comment by Stephen Kitt [ 03/Aug/16 ] |
|
I've pushed https://git.opendaylight.org/gerrit/43034 which produces a Karaf assembly with up-to-date Mina and sshd-core. |
| Comment by Stephen Kitt [ 03/Aug/16 ] |
|
I forgot to mention that the previous patch (against odlparent) also needs https://git.opendaylight.org/gerrit/42649 against controller to work. You need to rebuild odlparent, controller, then integration/distribution. |
| Comment by Tomas Cere [ 03/Aug/16 ] |
|
Thanks for the patch Stephen, it fixed the issues with netconf with the mina bump, however the karaf client script seems to be broken now: bin\> ./client -u karaf |
| Comment by Stephen Kitt [ 03/Aug/16 ] |
|
(In reply to Tomas Cere from comment #7) Thanks for the test! Robert suspected the sshd-core bump would break Karaf, I was in the process of checking... |
| Comment by Stephen Kitt [ 03/Aug/16 ] |
|
(In reply to Tomas Cere from comment #7) Does it work for you if you edit bin/client so the line containing sshd-core reads CLASSPATH="$CLASSPATH:$KARAF_HOME/system/org/apache/sshd/sshd-core/0.14.0/sshd-core-0.14.0.jar" (It logs sensible stuff on my system but I then get the "EC KeyPairGenerator not available" error.) |
| Comment by Stephen Kitt [ 03/Aug/16 ] |
|
(In reply to Stephen Kitt from comment #9) After upgrading my JDK it works for me, I'll update the odlparent patch. |
| Comment by Tomas Cere [ 04/Aug/16 ] |
|
Ok now we have a weird behavior. It works fine the first time when you run karaf and install odl-netconf-connector-all, but when you restart karaf the java.lang.NoSuchMethodError: org.apache.mina.core.service.SimpleIoProcessorPool.<init>(Ljava/lang/Class;Ljava/util/concurrent/Executor;ILjava/nio/channels/spi/SelectorProvider;)V is back. |
| Comment by Robert Varga [ 20/Apr/17 ] |
|
We need karaf-4.1.x, after which we can jump to 1.4.0. |
| Comment by Jeff Hartley [ 19/Mar/18 ] |
|
Now that Karaf 4 is in place, any interest in resuming work on updating to 1.6.0 or 1.7.0?
|
| Comment by Robert Varga [ 19/Mar/18 ] |
|
We are currently using 1.6.0, which is what is shipping with karaf-4.1.x – that bump occurred in Oxygen. I would suggest integrating 1.7.0 when we bump to karaf-4.2.x, as keeping the versions aligned is beneficial in side-stepping issues. |
| Comment by Robert Varga [ 19/Mar/18 ] |
|
Fixed with bump to odlparent-3.0.x. If upgrading to 1.7.0 before karaf-4.2.x comes down (which is not happening in Fluorine) is of interest, please file a separate issue. |
| Comment by Jeff Hartley [ 20/Mar/18 ] |
|
Excellent; thanks. I'll commence testing a variety of netconf devices with Oxygen to benefit from 1.6.0, and file separate bugs if/as they occur.
|