[BGPCEP-304] BGP peer registry lookup false negative result Created: 06/Nov/15  Updated: 03/Mar/19  Due: 19/Nov/15  Resolved: 12/Nov/15

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

Type: Bug
Reporter: Milos Fabian Assignee: Iveta Halanova
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 4593
Priority: Normal

 Description   

steps to reproduce:
-configure BGP peer with host address "::1"
-start exabgp with configured neighbor "::1"
-observe negotiation failure

BGP fails to connect peer when IPv6 address has a different format.
Configured peers should be stored in registry with "normalized" form of IPv6 address.

2015-11-06 20:00:07,334 | DEBUG | oupCloseable-3-2 | AbstractSessionNegotiator | 101 - org.opendaylight.controller.protocol-framework - 0.6.3.SNAPSHOT | Negotiation on channel [id: 0x56ee3879, /0:0:0:0:0:0:0:1:59186 => /0:0:0:0:0:0:0:1:1790] failed
org.opendaylight.protocol.bgp.parser.BGPDocumentedException: BGP peer with ip: IpAddress [_ipv6Address=Ipv6Address [_value=0:0:0:0:0:0:0:1], _value=[0, :, 0, :, 0, :, 0, :, 0, :, 0, :, 0, :, 1]] not configured, check configured peers in : GlobalBGPPeerRegistryWrapper{peers=StrictBGPPeerRegistry{peers=[IpAddress [_ipv6Address=Ipv6Address [_value=::1], _value=[:, :, 1]]]}}
at org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.startNegotiation(AbstractBGPSessionNegotiator.java:95)[199:org.opendaylight.bgpcep.bgp-rib-impl:0.4.3.SNAPSHOT]
at org.opendaylight.protocol.framework.AbstractSessionNegotiator.channelActive(AbstractSessionNegotiator.java:81)[101:org.opendaylight.controller.protocol-framework:0.6.3.SNAPSHOT]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:212)[100:io.netty.transport:4.0.26.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelActive(AbstractChannelHandlerContext.java:198)[100:io.netty.transport:4.0.26.Final]
at io.netty.channel.ChannelInboundHandlerAdapter.channelActive(ChannelInboundHandlerAdapter.java:64)[100:io.netty.transport:4.0.26.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:212)[100:io.netty.transport:4.0.26.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelActive(AbstractChannelHandlerContext.java:198)[100:io.netty.transport:4.0.26.Final]
at io.netty.channel.ChannelInboundHandlerAdapter.channelActive(ChannelInboundHandlerAdapter.java:64)[100:io.netty.transport:4.0.26.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:212)[100:io.netty.transport:4.0.26.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelActive(AbstractChannelHandlerContext.java:198)[100:io.netty.transport:4.0.26.Final]
at io.netty.channel.DefaultChannelPipeline.fireChannelActive(DefaultChannelPipeline.java:818)[100:io.netty.transport:4.0.26.Final]
at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:454)[100:io.netty.transport:4.0.26.Final]
at io.netty.channel.AbstractChannel$AbstractUnsafe.access$100(AbstractChannel.java:378)[100:io.netty.transport:4.0.26.Final]
at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:424)[100:io.netty.transport:4.0.26.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:357)[89:io.netty.common:4.0.26.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)[100:io.netty.transport:4.0.26.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)[89:io.netty.common:4.0.26.Final]
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[89:io.netty.common:4.0.26.Final]
at java.lang.Thread.run(Thread.java:724)[:1.7.0_25]



 Comments   
Comment by Iveta Halanova [ 09/Nov/15 ]

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

Comment by Milos Fabian [ 12/Nov/15 ]

please, cherry-pick to master

Comment by Iveta Halanova [ 12/Nov/15 ]

cherry-pick
https://git.opendaylight.org/gerrit/#/c/29592/

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