[BGPCEP-528] BGP peer configuration in 41-bgp-example.xml file does not take effect Created: 22/Aug/16  Updated: 03/Mar/19  Resolved: 29/Aug/16

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

Type: Bug
Reporter: Ajay L Assignee: Unassigned
Resolution: Duplicate 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
duplicates MDSAL-194 exception while configuring bgp peer ... Resolved
External issue ID: 6502

 Description   

Even when BGP peer is configured correctly in 41-bgp-example.xml config file, when the peer tries to connect, connection is rejected with error saying that the peer is not configured

2016-08-22 17:27:40,827 | ERROR | entLoopGroup-5-2 | BGPDocumentedException | 116 - org.opendaylight.bgpcep.bgp-parser-api - 0.7.0.SNAPSHOT | Error = CONNECTION_REJECTED
org.opendaylight.protocol.bgp.parser.BGPDocumentedException: BGP peer with ip: IpAddress [_ipv4Address=Ipv4Address [_value=10.18.162.241]] not configured, check configured peers in : org.opendaylight.controller.config.yang.bgp.rib.impl.StrictBgpPeerRegistryModule$1@5ec7ddb9
at org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.startNegotiation(AbstractBGPSessionNegotiator.java:100)[213:org.opendaylight.bgpcep.bgp-rib-impl:0.7.0.SNAPSHOT]
at org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.channelActive(AbstractBGPSessionNegotiator.java:271)[213:org.opendaylight.bgpcep.bgp-rib-impl:0.7.0.SNAPSHOT]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:201)[95:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:187)[95:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelActive(AbstractChannelHandlerContext.java:180)[95:io.netty.transport:4.0.37.Final]
at io.netty.channel.ChannelInboundHandlerAdapter.channelActive(ChannelInboundHandlerAdapter.java:64)[95:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:201)[95:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:187)[95:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelActive(AbstractChannelHandlerContext.java:180)[95:io.netty.transport:4.0.37.Final]
at io.netty.channel.ChannelInboundHandlerAdapter.channelActive(ChannelInboundHandlerAdapter.java:64)[95:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:201)[95:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:187)[95:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelActive(AbstractChannelHandlerContext.java:180)[95:io.netty.transport:4.0.37.Final]
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelActive(DefaultChannelPipeline.java:1268)[95:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:201)[95:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:187)[95:io.netty.transport:4.0.37.Final]
at io.netty.channel.DefaultChannelPipeline.fireChannelActive(DefaultChannelPipeline.java:866)[95:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:450)[95:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannel$AbstractUnsafe.access$200(AbstractChannel.java:368)[95:io.netty.transport:4.0.37.Final]
at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:418)[95:io.netty.transport:4.0.37.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:358)[94:io.netty.common:4.0.37.Final]
at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:307)[99:io.netty.transport-native-epoll:4.0.37.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)[94:io.netty.common:4.0.37.Final]
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:145)[94:io.netty.common:4.0.37.Final]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_72-internal]
2016-08-22 17:27:40,827 | WARN | entLoopGroup-5-2 | AbstractBGPSessionNegotiator | 213 - org.opendaylight.bgpcep.bgp-rib-impl - 0.7.0.SNAPSHOT | Channel [id: 0xc86bcc62, L:/10.18.162.90:1790 - R:/10.18.162.241:42344] negotiation failed: BGP peer with ip: IpAddress [_ipv4Address=Ipv4Address [_value=10.18.162.241]] not configured, check configured peers in : org.opendaylight.controller.config.yang.bgp.rib.impl.StrictBgpPeerRegistryModule$1@5ec7ddb9



 Comments   
Comment by Ajay L [ 29/Aug/16 ]

There are some add-path related exceptions similar to those in BUG-6497 in the log and looks like that issue happens on some machines and not on others, so that might explain why I see the BGP peer issue, but it works fine for others. If add-path dependency in bgp-peer module is commented, connection gets established fine

<module>
<type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer</type>
<name>example-bgp-peer</name>
. . .
. . .
<add-path>
<type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:add-path</type>
<name>ipv4-unicast-both</name>
</add-path>
<add-path>
<type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:add-path</type>
<name>ipv6-unicast-both</name>
</add-path>
</module>

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