Uploaded image for project: 'bgpcep'
  1. bgpcep
  2. BGPCEP-787

Local-address connection failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Medium Medium
    • Fluorine
    • Fluorine
    • BGP
    • None

      Overview: Configure talking internal peer with local-address set.
      Connect exabgp with it's local address equal to the local-addres of the peer.
      Expected: connects with local-address.

      Log

      2018-04-13T15:06:42,347 | ERROR | epollEventLoopGroup-5-6 | BGPDocumentedException           | 204 - org.opendaylight.bgpcep.bgp-parser-api - 0.10.0.SNAPSHOT | Error = CONNECTION_REJECTED
      org.opendaylight.protocol.bgp.parser.BGPDocumentedException: BGP peer with ip: IpAddress{_ipv4Address=Ipv4Address{_value=127.0.0.3}} not configured, check configured peers in : StrictBGPPeerRegistry{peers=[IpAddress{_ipv4Address=Ipv4Address{_value=192.0.2.1}}, IpAddress{_ipv4Address=Ipv4Address{_value=192.0.2.5}}, IpAddress{_ipv4Address=Ipv4Address{_value=127.0.0.2}}]}
      	at org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.startNegotiation(AbstractBGPSessionNegotiator.java:104) [210:org.opendaylight.bgpcep.bgp-rib-impl:0.10.0.SNAPSHOT]
      	at org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.channelActive(AbstractBGPSessionNegotiator.java:279) [210:org.opendaylight.bgpcep.bgp-rib-impl:0.10.0.SNAPSHOT]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:213) [103:io.netty.transport:4.1.16.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:199) [103:io.netty.transport:4.1.16.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelActive(AbstractChannelHandlerContext.java:192) [103:io.netty.transport:4.1.16.Final]
      	at io.netty.channel.ChannelInboundHandlerAdapter.channelActive(ChannelInboundHandlerAdapter.java:64) [103:io.netty.transport:4.1.16.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:213) [103:io.netty.transport:4.1.16.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:199) [103:io.netty.transport:4.1.16.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelActive(AbstractChannelHandlerContext.java:192) [103:io.netty.transport:4.1.16.Final]
      	at io.netty.channel.ChannelInboundHandlerAdapter.channelActive(ChannelInboundHandlerAdapter.java:64) [103:io.netty.transport:4.1.16.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:213) [103:io.netty.transport:4.1.16.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:199) [103:io.netty.transport:4.1.16.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelActive(AbstractChannelHandlerContext.java:192) [103:io.netty.transport:4.1.16.Final]
      	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelActive(DefaultChannelPipeline.java:1347) [103:io.netty.transport:4.1.16.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:213) [103:io.netty.transport:4.1.16.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:199) [103:io.netty.transport:4.1.16.Final]
      	at io.netty.channel.DefaultChannelPipeline.fireChannelActive(DefaultChannelPipeline.java:911) [103:io.netty.transport:4.1.16.Final]
      	at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:518) [103:io.netty.transport:4.1.16.Final]
      	at io.netty.channel.AbstractChannel$AbstractUnsafe.access$200(AbstractChannel.java:423) [103:io.netty.transport:4.1.16.Final]
      	at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:482) [103:io.netty.transport:4.1.16.Final]
      	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) [100:io.netty.common:4.1.16.Final]
      	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403) [100:io.netty.common:4.1.16.Final]
      	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:309) [104:io.netty.transport-native-epoll:4.1.16.Final]
      	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) [100:io.netty.common:4.1.16.Final]
      	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138) [100:io.netty.common:4.1.16.Final]
      	at java.lang.Thread.run(Thread.java:748) [?:?]
      

      Steps to reproduce:

      • fluorine karaf with ( tested on version 4.11.2018 )
        feature:install odl-restconf odl-bgpcep-bgp odl-bgpcep-bgp-config-example
        
      • configure peer
        ./conf1.py
        
      • start exabgp
        env exabgp.tcp.port=1790 exabgp --debug default1.cfg
        

      I think it is getting stopped way before we even get to the local-address functionality. Or I am missing something.

        1. conf1.py
          2 kB
        2. default1.cfg
          0.3 kB

            cdgasparini Claudio David Gasparini
            tomas.markovic Tomas Markovic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: