Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

0

Error in adding TLS support: OFFrameDecoder.Decode() did not read anything but decoded a message

asked 2015-08-18 07:14:27 -0800

sankettandulwadkar gravatar image

Hi,

I am trying to add TLS support to ODL. When I try to check if the connection is established, I get a handshake failure at ODL.

On OvS VM: openssl s_client -connect 172.31.1.2:6633 -ssl3

On ODL log:

2015-08-18 09:43:14,828 | WARN | entLoopGroup-6-1 | OFFrameDecoder | 213 - org.opendaylight.openflowjava.openflow-protocol-impl - 0.6.0.Lithium | Unexpected exception from downstream. io.netty.handler.codec.DecoderException: OFFrameDecoder.decode() did not read anything but decoded a message. at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:334)[144:io.netty.codec:4.0.26.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:229)[144:io.netty.codec:4.0.26.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)[118:io.netty.transport:4.0.26.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)[118:io.netty.transport:4.0.26.Final] at io.netty.handler.timeout.ReadTimeoutHandler.channelRead(ReadTimeoutHandler.java:150)[145:io.netty.handler:4.0.26.Final] at org.opendaylight.openflowjava.protocol.impl.core.IdleHandler.channelRead(IdleHandler.java:39)[213:org.opendaylight.openflowjava.openflow-protocol-impl:0.6.0.Lithium] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)[118:io.netty.transport:4.0.26.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)[118:io.netty.transport:4.0.26.Final] at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)[118:io.netty.transport:4.0.26.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)[118:io.netty.transport:4.0.26.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)[118:io.netty.transport:4.0.26.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:847)[118:io.netty.transport:4.0.26.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)[118:io.netty.transport:4.0.26.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)[118:io.netty.transport:4.0.26.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)[118:io.netty.transport:4.0.26.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)[118:io.netty.transport:4.0.26.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:349)[118:io.netty.transport:4.0.26.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)[119:io.netty.common:4.0.26.Final] at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[119:io.netty.common:4.0.26.Final] at java.lang.Thread.run(Thread.java:745)[:1.7.079] 2015-08-18 09:43:14,828 | WARN | entLoopGroup-6-1 | OFFrameDecoder | 213 - org.opendaylight.openflowjava.openflow-protocol-impl - 0.6.0.Lithium | Closing connection. 2015-08-18 09:43:14,833 | WARN | entLoopGroup-6-1 | SessionManagerOFImpl | 216 - org.opendaylight.openflowplugin - 0.1.0.Lithium | context for invalidation not found 2015-08-18 09:43:14,834 | WARN | entLoopGroup-6-1 | OFFrameDecoder | 213 - org.opendaylight.openflowjava.openflow-protocol-impl - 0.6.0.Lithium | Unexpected exception from downstream. io.netty.handler.codec.DecoderException: OFFrameDecoder.decode() did not ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-08-27 10:01:20 -0800

icarocamelo gravatar image

updated 2015-08-27 10:22:16 -0800

To use TLS/SSL connections, modify the "42-openflowplugin.xml" or "42-openflowplugin-new.xml" file (depending on your version) from: ../openflowplugin/openflowplugin-controller-config/src/main/resources/initial/.

Check here the TLS configuration

Use it to debug:

 
./karaf  -Djavax.net.debug=ssl,handshake 

Set openflowjava log level to TRACE and verify messages

opendaylight-user@root> set TRACE org.opendaylight.openflowjava
edit flag offensive delete publish link more

Comments

Hi, Thanks for the reponse. However, I am not able to find the src directory in the controller-config sanket@sanket-ubuntu-ovs:~/lithium/distribution-karaf-0.3.0-Lithium/system/org/opendaylight/openflowplugin$ cd openflowplugin-controller-config/ sanket@sanket-ubuntu-ovs:~/lithium/distribution-karaf-0.3.0-Lithium/system/org/opendaylight/openflowplugin/openflowplugin-controller-config$ ls 0.1.0-Lithium maven-metadata-local.xml sanket@sanket-ubuntu-ovs:~/lithium/distribution-karaf-0.3.0-Lithium/system/org/opendaylight/openflowplugin/openflowplugin-controller-config/0.1.0-Lithium$ ls openflowplugin-controller-config-0.1.0-Lithium-config-He.xml openflowplugin-controller-config-0.1.0-Lithium-config-Li.xml openflowplugin-controller-config-0.1.0-Lithium-configmsgspy.xml _remote.repositories Should I change the config-Li.xml file here?

sankettandulwadkar ( 2015-08-27 10:53:31 -0800 )edit

Let me know which version you're using. Could you describe how are you doing to start karaf?

icarocamelo ( 2015-08-27 12:35:11 -0800 )edit

I am using lithium, I downloaded it straight from the OpenDaylight website. I start it using "bin/karaf" command

sankettandulwadkar ( 2015-08-27 13:08:32 -0800 )edit

I cloned the openflowplugin repository. If you're downloading from the website, take a look at the configuration folder. There you're going to find the config files.

icarocamelo ( 2015-08-27 14:11:03 -0800 )edit

I found the repository. However, when I try to "mvn clean install," I get this error: sanket@sanket-ubuntu-ovs:~/ofplugin/openflowplugin$ mvn clean install [INFO] Scanning for projects... [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project org.opendaylight.openflowplugin:openflowplugin-aggregator:0.2.0-SNAPSHOT (/home/sanket/ofplugin/openflowplugin/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.opendaylight.openflowplugin:openflowplugin-parent:0.2.0-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.6.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ org.opendaylight.openflowplugin:openflowplugin-parent:0.2.0-SNAPSHOT, /home/sanket/ofplugin/openflowplugin/parent/pom.xml, line 12, column 13 -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more informa

sankettandulwadkar ( 2015-08-28 06:54:01 -0800 )edit
0

answered 2015-08-28 06:28:33 -0800

sankettandulwadkar gravatar image

Can you post the link for the openflowplugin repository here? I downloaded it directly from the ODL website. I believe Lithium comes with OFplugin installed

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-08-18 07:14:27 -0800

Seen: 247 times

Last updated: Aug 27 '15