Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-4669

exception in bgp app

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Labels:
    • Environment:

      ONOS BGP

    • Story Points:
      3

      Description

      Hi,

      code: https://github.com/opennetworkinglab/onos.git

      root1@root1-HP-EliteBook-840-G2:~/onos$ git branch -v

      • master 2312d22 ONOS-4171 BGP topology port problem.
        root1@root1-HP-EliteBook-840-G2:~/onos$

      issue:
      Iam trying to make up bgp ls topolgy. when trying to connect bgp peer exception occured.

      {
      "apps": {
      "org.onosproject.provider.bgp.cfg": {
      "bgpapp": {
      "routerId": "10.10.200.50", ----> peer config not done in bgp router.so onos will not get reply
      "localAs": 100,
      "maxSession": 20,
      "lsCapability": true,
      "holdTime": 180,
      "largeAsCapability": false,
      "flowSpecCapability": "IPV4",
      "bgpPeer":[

      {"peerIp": "172.19.37.111", "remoteAs": 100, "peerHoldTime": 120, "connectMode":"active"}

      ]
      }
      }
      }
      }

      Please check

      exception:
      onos> exception-display
      java.util.concurrent.RejectedExecutionException: Worker has already been shutdown
      at org.jboss.netty.channel.socket.nio.AbstractNioSelector.registerTask(AbstractNioSelector.java:120)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:72)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:36)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:56)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:36)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.socket.nio.AbstractNioChannelSink.execute(AbstractNioChannelSink.java:34)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline.execute(DefaultChannelPipeline.java:636)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.Channels.fireExceptionCaughtLater(Channels.java:496)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.AbstractChannelSink.exceptionCaught(AbstractChannelSink.java:46)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline.notifyHandlerException(DefaultChannelPipeline.java:658)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:781)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:54)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:784)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.SimpleChannelHandler.closeRequested(SimpleChannelHandler.java:334)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.SimpleChannelHandler.handleDownstream(SimpleChannelHandler.java:260)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.Channels.close(Channels.java:812)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.AbstractChannel.close(AbstractChannel.java:206)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.ChannelFutureListener$2.operationComplete(ChannelFutureListener.java:52)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:409)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelFuture.notifyListeners(DefaultChannelFuture.java:395)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelFuture.setFailure(DefaultChannelFuture.java:362)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.connect(NioClientSocketPipelineSink.java:130)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.eventSunk(NioClientSocketPipelineSink.java:70)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:779)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:54)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:784)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.SimpleChannelHandler.connectRequested(SimpleChannelHandler.java:306)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.SimpleChannelHandler.handleDownstream(SimpleChannelHandler.java:272)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.Channels.connect(Channels.java:634)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.AbstractChannel.connect(AbstractChannel.java:216)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:229)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:182)[44:org.jboss.netty:3.10.5.Final]
      at org.onosproject.bgp.controller.impl.BgpConnectPeerImpl$ConnectionRetry.run(BgpConnectPeerImpl.java:102)[180:org.onosproject.onos-bgp-ctl:1.7.0.SNAPSHOT]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_91]
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_91]
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_91]
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_91]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_91]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_91]
      at java.lang.Thread.run(Thread.java:745)[:1.8.0_91]

      onos>

      display log:
      2016-06-06 16:57:00,272 | ERROR | New I/O boss #51 | BgpConnectPeerImpl | 185 - org.onosproject.onos-bgp-ctl - 1.7.0.SNAPSHOT | Connection failed, ConnectRetryCounter 2 remote host 172.19.37.111
      2016-06-06 16:57:00,272 | INFO | New I/O boss #51 | BgpChannelHandler | 185 - org.onosproject.onos-bgp-ctl - 1.7.0.SNAPSHOT | [exceptionCaught]: [id: 0x80a6a34f] EXCEPTION: java.net.ConnectException: Connection refused: /172.19.37.111:179
      2016-06-06 16:57:00,273 | ERROR | New I/O boss #51 | BgpChannelHandler | 185 - org.onosproject.onos-bgp-ctl - 1.7.0.SNAPSHOT | Disconnecting peer [? BGP-IP[?]] due to IO Error: Connection refused: /172.19.37.111:179
      2016-06-06 16:57:14,829 | ERROR | New I/O boss #51 | BgpConnectPeerImpl | 185 - org.onosproject.onos-bgp-ctl - 1.7.0.SNAPSHOT | Connection failed, ConnectRetryCounter 4 remote host 172.19.37.111
      2016-06-06 16:57:14,830 | INFO | New I/O boss #51 | BgpChannelHandler | 185 - org.onosproject.onos-bgp-ctl - 1.7.0.SNAPSHOT | [exceptionCaught]: [id: 0xb7c09c10] EXCEPTION: java.net.ConnectException: Connection refused: /172.19.37.111:179
      2016-06-06 16:57:14,830 | ERROR | New I/O boss #51 | BgpChannelHandler | 185 - org.onosproject.onos-bgp-ctl - 1.7.0.SNAPSHOT | Disconnecting peer [? BGP-IP[?]] due to IO Error: Connection refused: /172.19.37.111:179
      2016-06-06 16:57:18,087 | ERROR | New I/O boss #51 | BgpConnectPeerImpl | 185 - org.onosproject.onos-bgp-ctl - 1.7.0.SNAPSHOT | Connection failed, ConnectRetryCounter 4 remote host 172.19.37.111
      2016-06-06 16:57:18,090 | INFO | New I/O boss #51 | BgpChannelHandler | 185 - org.onosproject.onos-bgp-ctl - 1.7.0.SNAPSHOT | [exceptionCaught]: [id: 0x76a4d907] EXCEPTION: java.net.ConnectException: Connection refused: /172.19.37.111:179
      2016-06-06 16:57:18,090 | ERROR | New I/O boss #51 | BgpChannelHandler | 185 - org.onosproject.onos-bgp-ctl - 1.7.0.SNAPSHOT | Disconnecting peer [? BGP-IP[?]] due to IO Error: Connection refused: /172.19.37.111:179
      2016-06-06 16:59:00,991 | ERROR | New I/O boss #51 | BgpConnectPeerImpl | 185 - org.onosproject.onos-bgp-ctl - 1.7.0.SNAPSHOT | Connection failed, ConnectRetryCounter 3 remote host 172.19.37.111
      2016-06-06 16:59:00,991 | INFO | New I/O boss #51 | BgpChannelHandler | 185 - org.onosproject.onos-bgp-ctl - 1.7.0.SNAPSHOT | [exceptionCaught]: [id: 0xe714410e] EXCEPTION: java.net.ConnectException: Connection refused: /172.19.37.111:179
      2016-06-06 16:59:00,992 | ERROR | New I/O boss #51 | BgpChannelHandler | 185 - org.onosproject.onos-bgp-ctl - 1.7.0.SNAPSHOT | Disconnecting peer [? BGP-IP[?]] due to IO Error: Connection refused: /172.19.37.111:179
      2016-06-06 17:00:02,587 | WARN | pool-45-thread-1 | netty | 44 - org.jboss.netty - 3.10.5.Final | [org.jboss.netty.channel.DefaultChannelPipeline] An exception was thrown by an exception handler.
      java.util.concurrent.RejectedExecutionException: Worker has already been shutdown
      at org.jboss.netty.channel.socket.nio.AbstractNioSelector.registerTask(AbstractNioSelector.java:120)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:72)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:36)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:56)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:36)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.socket.nio.AbstractNioChannelSink.execute(AbstractNioChannelSink.java:34)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline.execute(DefaultChannelPipeline.java:636)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.Channels.fireExceptionCaughtLater(Channels.java:496)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.AbstractChannelSink.exceptionCaught(AbstractChannelSink.java:46)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline.notifyHandlerException(DefaultChannelPipeline.java:658)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:781)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:54)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:784)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.SimpleChannelHandler.closeRequested(SimpleChannelHandler.java:334)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.SimpleChannelHandler.handleDownstream(SimpleChannelHandler.java:260)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.Channels.close(Channels.java:812)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.AbstractChannel.close(AbstractChannel.java:206)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.ChannelFutureListener$2.operationComplete(ChannelFutureListener.java:52)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:409)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelFuture.notifyListeners(DefaultChannelFuture.java:395)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelFuture.setFailure(DefaultChannelFuture.java:362)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.connect(NioClientSocketPipelineSink.java:130)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.eventSunk(NioClientSocketPipelineSink.java:70)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:779)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:54)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:784)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.SimpleChannelHandler.connectRequested(SimpleChannelHandler.java:306)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.SimpleChannelHandler.handleDownstream(SimpleChannelHandler.java:272)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.Channels.connect(Channels.java:634)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.channel.AbstractChannel.connect(AbstractChannel.java:216)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:229)[44:org.jboss.netty:3.10.5.Final]
      at org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:182)[44:org.jboss.netty:3.10.5.Final]
      at org.onosproject.bgp.controller.impl.BgpConnectPeerImpl$ConnectionRetry.run(BgpConnectPeerImpl.java:102)[180:org.onosproject.onos-bgp-ctl:1.7.0.SNAPSHOT]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_91]
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_91]
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_91]
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_91]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_91]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_91]
      at java.lang.Thread.run(Thread.java:745)[:1.8.0_91]
      2016-06-06 17:00:02,588 | INFO | pool-45-thread-1 | BgpChannelHandler | 180 - org.onosproject.onos-bgp-ctl - 1.7.0.SNAPSHOT | [exceptionCaught]: [id: 0xddc531bd] EXCEPTION: java.util.concurrent.RejectedExecutionException: Worker has already been shutdown
      2016-06-06 17:00:02,588 | WARN | pool-45-thread-1 | BgpChannelHandler | 180 - org.onosproject.onos-bgp-ctl - 1.7.0.SNAPSHOT | Could not process message: queue full
      2016-06-06 17:00:02,588 | ERROR | pool-45-thread-1 | BgpConnectPeerImpl | 180 - org.onosproject.onos-bgp-ctl - 1.7.0.SNAPSHOT | Connection failed, ConnectRetryCounter 5 remote host 172.19.37.111

      onos>

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            PriyankaB Priyanka B
            Reporter:
            sathishmurugesan sathishkumar murugesan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: