Thanks Niranjana for your reply.
I have tried with with different usename/password defined in the node now I'm
getting different error than the above one. Please see below the sdnc karaf.log
for the exception.
2020-07-28T17:05:17,411 | INFO |
opendaylight-cluster-data-notification-dispatcher-158212 |
AbstractNetconfTopology | 81 - netconf-topology-config - 1.6.1 | - |
Connecting RemoteDevice{Uri{_value=0608b35a-3c47-4ee2-8bf5-4cea3a0f98f6}} ,
with config Node{getNodeId=Uri{_value=0608b35a-3c47-4ee2-8bf5-4cea3a0f98f6},
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=test, getUsername=test123,
augmentations={}}, getDefaultRequestTimeoutMillis=60000,
getHost=Host{_ipAddress=IpAddress{_ipv4Address=Ipv4Address{_value=10.97.73.74}}},
getKeepaliveDelay=120, getMaxConnectionAttempts=3,
getPort=PortNumber{_value=840}, getSchemaCacheDirectory=schema,
getSleepFactor=1.5, isReconnectOnChangedSchema=false, isSchemaless=false,
isTcpOnly=false}}}
2020-07-28T17:05:17,413 | WARN |
opendaylight-cluster-data-notification-dispatcher-158212 |
AbstractNetconfTopology | 81 - netconf-topology-config - 1.6.1 | - |
Adding keepalive facade, for device
Uri{_value=0608b35a-3c47-4ee2-8bf5-4cea3a0f98f6}
2020-07-28T17:05:17,413 | INFO |
opendaylight-cluster-data-notification-dispatcher-158212 |
AbstractNetconfTopology | 81 - netconf-topology-config - 1.6.1 | - |
Concurrent rpc limit is smaller than 1, no limit will be enforced for device
RemoteDevice{0608b35a-3c47-4ee2-8bf5-4cea3a0f98f6}
2020-07-28T17:05:17,508 | WARN | sshd-SshClient[7ca9d084]-nio2-thread-4 |
AcceptAllServerKeyVerifier | 145 - org.apache.sshd.osgi - 2.2.0 | - |
Server at /10.97.73.74:840 presented unverified EC key:
SHA256:rmEjM01Gq3zS0+bpDKAoGTgRfZBAoNSBdV4iwSn9rsI
2020-07-28T17:05:17,652 | WARN | nioEventLoopGroupCloseable-3-2 |
AbstractNetconfSessionNegotiator | 350 - org.opendaylight.netconf.netty-util -
1.6.1 | - | *An exception occurred during negotiation with null*
*io.netty.handler.codec.DecoderException: java.lang.IllegalStateException:
Malformed chunk header encountered (byte 1)*
at
io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:472)
~[?:?]
at
io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:278)
~[?:?]
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
[66:io.netty.transport:4.1.34.Final]
at
io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:38)
[66:io.netty.transport:4.1.34.Final]
at
io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:350)
[66:io.netty.transport:4.1.34.Final]
at
io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
[63:io.netty.common:4.1.34.Final]
at
io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
[63:io.netty.common:4.1.34.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:495)
[66:io.netty.transport:4.1.34.Final]
at
io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:905)
[63:io.netty.common:4.1.34.Final]
at
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
[63:io.netty.common:4.1.34.Final]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: java.lang.IllegalStateException: Malformed chunk header encountered
(byte 1)
at
org.opendaylight.netconf.nettyutil.handler.NetconfChunkAggregator.checkHash(NetconfChunkAggregator.java:55)
~[?:?]
at
org.opendaylight.netconf.nettyutil.handler.NetconfChunkAggregator.decode(NetconfChunkAggregator.java:80)
~[?:?]
at
io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:502)
~[?:?]
at
io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:441)
~[?:?]
... 10 more
2020-07-28T17:05:17,654 | WARN | nioEventLoopGroupCloseable-3-2 |
NetconfDeviceCommunicator | 357 -
org.opendaylight.netconf.sal-netconf-connector - 1.9.1 | - |
*RemoteDevice{0608b35a-3c47-4ee2-8bf5-4cea3a0f98f6}* : *Session went down*
java.io.IOException: End of input detected. Close the session.
at
org.opendaylight.netconf.nettyutil.AbstractNetconfSession.endOfInput(AbstractNetconfSession.java:94)
[350:org.opendaylight.netconf.netty-util:1.6.1]
at
org.opendaylight.netconf.nettyutil.AbstractNetconfSession.channelInactive(AbstractNetconfSession.java:174)
[350:org.opendaylight.netconf.netty-util:1.6.1]
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:242)
[66:io.netty.transport:4.1.34.Final]
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:228)
[66:io.netty.transport:4.1.34.Final]
at
io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:221)
[66:io.netty.transport:4.1.34.Final]
at
io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:390)
[61:io.netty.codec:4.1.34.Final]
at
io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:355)
[61:io.netty.codec:4.1.34.Final]
@Brian and Niranjana,
When I ssh the node with port 840 with usename/password (test:test123) from
sdnc pod, I'm able to connect and getting node's hello message BUT when I reply
back with my Hello message I'm getting an error below. Do you have any idea or
thought.
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
*<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">*
<capabilities>
<capability><![CDATA[urn:ietf:params:netconf:base:1.0]]></capability>
<capability><![CDATA[urn:ietf:params:netconf:base:1.1]]></capability>
<capability><![CDATA[urn:ietf:params:netconf:capability:rollback-on-error:1.0]]></capability>
<capability><![CDATA[urn:ietf:params:netconf:capability:writable-running:1.0]]></capability>
<capability><![CDATA[urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring]]></capability>
<capability><![CDATA[urn:ietf:params:netconf:capability:yang-library:1.0?revision=2016-06-21&module-set-id=0]]></capability>
</capabilities>
<session-id>59072552</session-id>
</hello>]]>]]>
*SDNC Hello Reply:
*
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply>
<rpc-error>
*<error-type>application</error-type>*
<error-tag>unknown-namespace</error-tag>
<error-severity>error</error-severity>
<error-path/>
<error-message> *Unknown element in specified namespace* </error-message>
<error-info>
<bad-element>hello</bad-element>
*<bad-namespace>urn:ietf:params:xml:ns:netconf:base:1.0</bad-namespace* >
</error-info>
</rpc-error>
</rpc-reply>
]]>]]>
Thanks,
Kamel
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21791): https://lists.onap.org/g/onap-discuss/message/21791
Mute This Topic: https://lists.onap.org/mt/74201211/21656
Mute #sdnc: https://lists.onap.org/g/onap+onap-discuss/mutehashtag/sdnc
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-