Thanks, Giles.

I tried adding the line "mvn\:org.bouncycastle/bcprov-jdk15on/1.56 = 14" to
the file "startup.properties", and restarted ODL, but nothing happened.

I guess this needs to be done before the ODL 1st run after building it from
source, however, in my case, i have an ongoing working ODL that has some
modifications, and I don't want to rebuild from scratch.

A few weeks ago, I also tried the other workaround, removing
";resolution:=optional" from the "sshd-core-0.14.0.jar" file, and restarted
ODL, but nothing happened also.

Appreciate if someone has a way to correct this bug without needing to
rebuild ODL from source.

Thanks.


Abdelmuhaimen Seaudi, CCIE # 25265
Email: [email protected]
Skype: aseaudi
LinkedIn: www.linkedin.com/in/aseaudi
Telephone: +2012 84644 733


On Wed, Nov 15, 2017 at 11:43 AM, Giles Heron <[email protected]> wrote:

> I think your issue is caused by this:
>
> https://bugs.opendaylight.org/show_bug.cgi?id=8431
>
> There’s a workaround noted in the bug report.
>
> Giles
>
> On 15 Nov 2017, at 06:16, Abdelmuhaimen Seaudi <[email protected]> wrote:
>
> Hi,
>
> In Beryllium and Boron, I can mount Juniper MX routers OK.
>
> However, in Carbon, I get the following error: Exception caught
> java.security.InvalidAlgorithmParameterException: DH key size must be
> multiple of 64, and can only range from 512 to 2048 (inclusive). The
> specific key size 4096 is not supported.
>
> Why does this happen in Carbon ? How can I correct this ?
>
>
> Full logs below:
> 2017-11-15 06:13:11,884 | INFO  | n-dispatcher-130 |
> AbstractNetconfTopology          | 365 - netconf-topology-config -
> 1.2.1.Carbon | Connecting RemoteDevice{Uri [_value=pp]} , with config
> Node{getNodeId=Uri [_value=pp], augmentations={interface
> org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.node.
> topology.rev150114.NetconfNode=NetconfNode{getActorResponseWaitTime=5,
> getBetweenAttemptsTimeoutMillis=2000, getConcurrentRpcLimit=0,
> getConnectionTimeoutMillis=20000, getCredentials=LoginPassword{
> getPassword=lab@lab, getUsername=lab, augmentations={}},
> getDefaultRequestTimeoutMillis=60000, getHost=Host [_ipAddress=IpAddress
> [_ipv4Address=Ipv4Address [_value=10.194.77.98]]], getKeepaliveDelay=120,
> getMaxConnectionAttempts=0, getPort=PortNumber [_value=830],
> getSchemaCacheDirectory=schema, getSleepFactor=1.5,
> getYangModuleCapabilities=YangModuleCapabilities{getCapability=[urn:ietf:
> params:xml:ns:netconf:base:1.0?module=ietf-netconf&revision=2011-06-01,
> http://xml.juniper.net/xnm/1.1/xnm?module=configuration&;
> revision=2015-09-11, http://xml.juniper.net/junos/
> 16.1R4/junos-routing?module=show&revision=2016-02-01,
> urn:ietf:params:xml:ns:yang:ietf-inet-types?module=ietf-
> inet-types&revision=2013-07-15], isOverride=false, augmentations={}},
> isReconnectOnChangedSchema=false, isSchemaless=false, isTcpOnly=false}}}
> 2017-11-15 06:13:16,838 | WARN  | n-dispatcher-130 |
> AbstractNetconfTopology          | 365 - netconf-topology-config -
> 1.2.1.Carbon | Adding keepalive facade, for device Uri [_value=pp]
> 2017-11-15 06:13:16,839 | INFO  | n-dispatcher-130 |
> AbstractNetconfTopology          | 365 - netconf-topology-config -
> 1.2.1.Carbon | Concurrent rpc limit is smaller than 1, no limit will be
> enforced for device RemoteDevice{pp}
> 2017-11-15 06:13:21,457 | INFO  | d]-nio2-thread-6 | ClientSessionImpl
>             | 30 - org.apache.sshd.core - 0.14.0 | Client session created
> 2017-11-15 06:13:26,150 | INFO  | d]-nio2-thread-6 | ClientSessionImpl
>             | 30 - org.apache.sshd.core - 0.14.0 | Start flagging packets
> as pending until key exchange is done
> 2017-11-15 06:13:26,151 | INFO  | d]-nio2-thread-6 | ClientSessionImpl
>             | 30 - org.apache.sshd.core - 0.14.0 | Server version string:
> SSH-2.0-OpenSSH_6.6.1
> 2017-11-15 06:13:34,445 | WARN  | d]-nio2-thread-4 | ClientSessionImpl
>             | 30 - org.apache.sshd.core - 0.14.0 | Exception caught
> java.security.InvalidAlgorithmParameterException: DH key size must be
> multiple of 64, and can only range from 512 to 2048 (inclusive). The
> specific key size 4096 is not supported
>         at com.sun.crypto.provider.DHKeyPairGenerator.initialize(
> DHKeyPairGenerator.java:128)[sunjce_provider.jar:1.8.0_151]
>         at java.security.KeyPairGenerator$Delegate.
> initialize(KeyPairGenerator.java:674)[:1.8.0_151]
>         at java.security.KeyPairGenerator.initialize(
> KeyPairGenerator.java:411)[:1.8.0_151]
>         at org.apache.sshd.common.kex.DH.getE(DH.java:65)[30:org.
> apache.sshd.core:0.14.0]
>         at org.apache.sshd.client.kex.DHGEX.next(DHGEX.java:118)[30:
> org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.session.AbstractSession.doHandleMessage(
> AbstractSession.java:425)[30:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.session.AbstractSession.
> handleMessage(AbstractSession.java:326)[30:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.client.session.ClientSessionImpl.handleMessage(
> ClientSessionImpl.java:306)[30:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.session.AbstractSession.
> decode(AbstractSession.java:780)[30:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.session.AbstractSession.messageReceived(
> AbstractSession.java:308)[30:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.AbstractSessionIoHandler.
> messageReceived(AbstractSessionIoHandler.java:
> 54)[30:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.io.nio2.Nio2Session$1.
> onCompleted(Nio2Session.java:184)[30:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.io.nio2.Nio2Session$1.
> onCompleted(Nio2Session.java:170)[30:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.
> run(Nio2CompletionHandler.java:32)[30:org.apache.sshd.core:0.14.0]
>         at java.security.AccessController.doPrivileged(Native
> Method)[:1.8.0_151]
>         at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(
> Nio2CompletionHandler.java:30)[30:org.apache.sshd.core:0.14.0]
>         at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:
> 126)[:1.8.0_151]
>         at sun.nio.ch.Invoker$2.run(Invoker.java:218)[:1.8.0_151]
>         at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(
> AsynchronousChannelGroupImpl.java:112)[:1.8.0_151]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1149)[:1.8.0_151]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:624)[:1.8.0_151]
>         at java.lang.Thread.run(Thread.java:748)[:1.8.0_151]
> 2017-11-15 06:13:34,473 | WARN  | d]-nio2-thread-4 | AsyncSshHandler
>             | 351 - org.opendaylight.netconf.netty-util - 1.2.1.Carbon |
> Unable to setup SSH connection on channel: [id: 0x9143556e]
> org.apache.sshd.common.SshException: Session is closed
>         at org.apache.sshd.client.session.ClientUserAuthServiceNew.
> preClose(ClientUserAuthServiceNew.java:220)[30:org.apache.sshd.core:
> 0.14.0]
>         at org.apache.sshd.common.util.CloseableUtils$
> AbstractCloseable.close(CloseableUtils.java:275)[30:
> org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.util.CloseableUtils$
> AbstractInnerCloseable.doCloseImmediately(CloseableUtils.java:356)[30:
> org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.util.CloseableUtils$
> AbstractCloseable.close(CloseableUtils.java:276)[30:
> org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.util.CloseableUtils$
> ParallelCloseable.doClose(CloseableUtils.java:182)[30:
> org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.util.CloseableUtils$
> SimpleCloseable.close(CloseableUtils.java:151)[30:
> org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.util.CloseableUtils$
> SequentialCloseable$1.operationComplete(CloseableUtils.java:205)[30:
> org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.util.CloseableUtils$
> SequentialCloseable$1.operationComplete(CloseableUtils.java:200)[30:
> org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.util.CloseableUtils$
> SequentialCloseable.doClose(CloseableUtils.java:215)[30:
> org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.util.CloseableUtils$
> SimpleCloseable.close(CloseableUtils.java:151)[30:
> org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.util.CloseableUtils$
> AbstractInnerCloseable.doCloseImmediately(CloseableUtils.java:356)[30:
> org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.session.AbstractSession.
> doCloseImmediately(AbstractSession.java:481)[30:
> org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.util.CloseableUtils$
> AbstractCloseable.close(CloseableUtils.java:276)[30:
> org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.session.AbstractSession.exceptionCaught(
> AbstractSession.java:468)[30:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.AbstractSessionIoHandler.
> exceptionCaught(AbstractSessionIoHandler.java:
> 47)[30:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.io.nio2.Nio2Session.
> exceptionCaught(Nio2Session.java:125)[30:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.io.nio2.Nio2Session.access$500(
> Nio2Session.java:46)[30:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.io.nio2.Nio2Session$1.onFailed(
> Nio2Session.java:199)[30:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.io.nio2.Nio2CompletionHandler$2.
> run(Nio2CompletionHandler.java:41)[30:org.apache.sshd.core:0.14.0]
>         at java.security.AccessController.doPrivileged(Native
> Method)[:1.8.0_151]
>         at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.
> failed(Nio2CompletionHandler.java:39)[30:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.io.nio2.Nio2Session$1.
> onCompleted(Nio2Session.java:195)[30:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.io.nio2.Nio2Session$1.
> onCompleted(Nio2Session.java:170)[30:org.apache.sshd.core:0.14.0]
>         at org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.
> run(Nio2CompletionHandler.java:32)[30:org.apache.sshd.core:0.14.0]
>         at java.security.AccessController.doPrivileged(Native
> Method)[:1.8.0_151]
>         at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(
> Nio2CompletionHandler.java:30)[30:org.apache.sshd.core:0.14.0]
>         at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:
> 126)[:1.8.0_151]
>         at sun.nio.ch.Invoker$2.run(Invoker.java:218)[:1.8.0_151]
>         at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(
> AsynchronousChannelGroupImpl.java:112)[:1.8.0_151]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1149)[:1.8.0_151]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:624)[:1.8.0_151]
>         at java.lang.Thread.run(Thread.java:748)[:1.8.0_151]
>
> Abdelmuhaimen Seaudi, CCIE # 25265
> Email: [email protected]
> Skype: aseaudi
> LinkedIn: www.linkedin.com/in/aseaudi
> Telephone: +2012 84644 733
>
> _______________________________________________
> netconf-dev mailing list
> [email protected]
> https://lists.opendaylight.org/mailman/listinfo/netconf-dev
>
>
>
_______________________________________________
controller-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/controller-dev

Reply via email to