[BGPCEP-504] boron: bmp does not show routes Created: 02/Aug/16  Updated: 03/Mar/19  Resolved: 15/Aug/16

Status: Resolved
Project: bgpcep
Component/s: BGP
Affects Version/s: Bugzilla Migration
Fix Version/s: Bugzilla Migration

Type: Bug
Reporter: Peter Gubka Assignee: Milos Fabian
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:
Duplicate
is duplicated by BGPCEP-510 BMP: IndexOutOfBoundsException Resolved
External issue ID: 6331

 Description   

odl:distribution-karaf-0.5.0-20160801.143523-4024.tar.gz
bmp: bgp-bmp-mock-0.6.0-20160801.215713-240-executable.jar

to reproduce run tool with: java -jar bgp-bmp-mock-0.6.0-20160801.215713-240-executable.jar --local_address <ip> --remote_address <odl-ip> --routers_count 1
--peers_count 1 --log_level DEBUG

odl's log shows:
2016-08-02 09:20:42,569 | INFO | entLoopGroup-7-1 | BmpSessionImpl | 297 - org.opendaylight.bgpcep.bgp-bmp-impl - 0.6.0.SNAPSHOT | Starting session /10.25.2.11:12345 <-> /10.25.2.11:58350.
2016-08-02 09:20:42,584 | INFO | entLoopGroup-7-1 | BmpRouterImpl | 297 - org.opendaylight.bgpcep.bgp-bmp-impl - 0.6.0.SNAPSHOT | BMP session with remote router 10.25.2.11 (BmpSessionImpl

{channel=[id: 0x664caa3c, L:/10.25.2.11:12345 - R:/10.25.2.11:58350]}

) is up now.
2016-08-02 09:20:42,679 | ERROR | entLoopGroup-7-1 | BmpSessionImpl | 297 - org.opendaylight.bgpcep.bgp-bmp-impl - 0.6.0.SNAPSHOT | Exception caught in BMP Session.
io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: index: 84, length: 2 (expected: range(0, 68))
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:442)[69:io.netty.codec:4.0.37.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)[69:io.netty.codec:4.0.37.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)[68:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:328)[68:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:321)[68:io.netty.transport:4.0.37.Final]
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)[69:io.netty.codec:4.0.37.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)[69:io.netty.codec:4.0.37.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)[68:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:328)[68:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:321)[68:io.netty.transport:4.0.37.Final]
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1280)[68:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)[68:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:328)[68:io.netty.transport:4.0.37.Final]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:890)[68:io.netty.transport:4.0.37.Final]
at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:879)[72:io.netty.transport-native-epoll:4.0.37.Final]
at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:387)[72:io.netty.transport-native-epoll:4.0.37.Final]
at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:303)[72:io.netty.transport-native-epoll:4.0.37.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)[67:io.netty.common:4.0.37.Final]
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:145)[67:io.netty.common:4.0.37.Final]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_65]
Caused by: java.lang.IndexOutOfBoundsException: index: 84, length: 2 (expected: range(0, 68))
at io.netty.buffer.AbstractByteBuf.checkIndex0(AbstractByteBuf.java:1141)[66:io.netty.buffer:4.0.37.Final]
at io.netty.buffer.SlicedByteBuf.getShort(SlicedByteBuf.java:131)[66:io.netty.buffer:4.0.37.Final]
at io.netty.buffer.AbstractByteBuf.getUnsignedShort(AbstractByteBuf.java:380)[66:io.netty.buffer:4.0.37.Final]
at org.opendaylight.protocol.bmp.parser.message.PeerUpHandler.getBgpMessageLength(PeerUpHandler.java:141)[296:org.opendaylight.bgpcep.bgp-bmp-parser-impl:0.6.0.SNAPSHOT]
at org.opendaylight.protocol.bmp.parser.message.PeerUpHandler.parseMessageBody(PeerUpHandler.java:96)[296:org.opendaylight.bgpcep.bgp-bmp-parser-impl:0.6.0.SNAPSHOT]
at org.opendaylight.protocol.bmp.spi.parser.AbstractBmpMessageParser.parseMessage(AbstractBmpMessageParser.java:38)[295:org.opendaylight.bgpcep.bgp-bmp-spi:0.6.0.SNAPSHOT]
at org.opendaylight.protocol.bmp.spi.registry.SimpleBmpMessageRegistry.parseMessage(SimpleBmpMessageRegistry.java:52)[295:org.opendaylight.bgpcep.bgp-bmp-spi:0.6.0.SNAPSHOT]
at org.opendaylight.protocol.bmp.impl.BmpByteToMessageDecoder.decode(BmpByteToMessageDecoder.java:35)[297:org.opendaylight.bgpcep.bgp-bmp-impl:0.6.0.SNAPSHOT]
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:411)[69:io.netty.codec:4.0.37.Final]
... 19 more
2016-08-02 09:20:42,685 | INFO | entLoopGroup-7-1 | BmpSessionImpl | 297 - org.opendaylight.bgpcep.bgp-bmp-impl - 0.6.0.SNAPSHOT | Closing session: BmpSessionImpl

{channel=[id: 0x664caa3c, L:/10.25.2.11:12345 - R:/10.25.2.11:58350]}

2016-08-02 09:20:42,691 | INFO | entLoopGroup-7-1 | BmpRouterImpl | 297 - org.opendaylight.bgpcep.bgp-bmp-impl - 0.6.0.SNAPSHOT | BMP Session with remote router 10.25.2.11 (BmpSessionImpl

{channel=null}

) went down.



 Comments   
Comment by Milos Fabian [ 08/Aug/16 ]

https://git.opendaylight.org/gerrit/#/c/43308/

Comment by Milos Fabian [ 15/Aug/16 ]

stable/boron: https://git.opendaylight.org/gerrit/#/c/44014/

Generated at Wed Feb 07 19:13:16 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.