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

"Peer for IpAddress.. already present" error occurs when features-bgp starts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Bugzilla Migration
    • Bugzilla Migration
    • BGP
    • None
    • Operating System: All
      Platform: All

    • 8827

      We introduce features-bgp in our feature pom as following:

      <dependency>
      <groupId>org.opendaylight.bgpcep</groupId>
      <artifactId>features-bgp</artifactId>
      <classifier>features</classifier>
      <version>${bgpcep.version}</version>
      <type>xml</type>
      </dependency>

      and changed protocols-config.xml(in the attachment).

      When we start our feature and there is an error in bgp:
      -----------------------------------------------------------------

      2017-07-10 10:51:30,209 | INFO | ult-dispatcher-5 | BgpPeer | 308 - org.opendaylight.bgpcep.bgp-rib-impl - 0.8.0.SNAPSHOT | Peer Singleton Service example-bgp-rib-service-group instantiated, Peer IpAddress [_ipv4Address=Ipv4Address [_value=192.168.50.13]]
      2017-07-10 10:51:30,237 | ERROR | ult-dispatcher-5 | ClusterSingletonServiceGroupImpl | 139 - org.opendaylight.mdsal.singleton-dom-impl - 2.3.0.SNAPSHOT | Unexpected exception state for service Provider example-bgp-rib-service-group in TakeLeadership
      java.lang.IllegalArgumentException: Peer for IpAddress [_ipv4Address=Ipv4Address [_value=192.168.50.13]] already present
      at com.google.common.base.Preconditions.checkArgument(Preconditions.java:203)[13:com.google.guava:22.0.0]
      at org.opendaylight.protocol.bgp.rib.impl.StrictBGPPeerRegistry.addPeer(StrictBGPPeerRegistry.java:85)[308:org.opendaylight.bgpcep.bgp-rib-impl:0.8.0.SNAPSHOT]
      at org.opendaylight.protocol.bgp.rib.impl.config.BgpPeer$BgpPeerSingletonService.instantiateServiceInstance(BgpPeer.java:274)[308:org.opendaylight.bgpcep.bgp-rib-impl:0.8.0.SNAPSHOT]
      at org.opendaylight.mdsal.singleton.dom.impl.ClusterSingletonServiceRegistrationDelegator.instantiateServiceInstance(ClusterSingletonServiceRegistrationDelegator.java:47)[139:org.opendaylight.mdsal.singleton-dom-impl:2.3.0.SNAPSHOT]
      at org.opendaylight.mdsal.singleton.dom.impl.ClusterSingletonServiceGroupImpl.takeOwnership(ClusterSingletonServiceGroupImpl.java:305)[139:org.opendaylight.mdsal.singleton-dom-impl:2.3.0.SNAPSHOT]
      at org.opendaylight.mdsal.singleton.dom.impl.ClusterSingletonServiceGroupImpl.ownershipChanged(ClusterSingletonServiceGroupImpl.java:249)[139:org.opendaylight.mdsal.singleton-dom-impl:2.3.0.SNAPSHOT]
      at org.opendaylight.mdsal.singleton.dom.impl.AbstractClusterSingletonServiceProviderImpl.ownershipChanged(AbstractClusterSingletonServiceProviderImpl.java:146)[139:org.opendaylight.mdsal.singleton-dom-impl:2.3.0.SNAPSHOT]
      at org.opendaylight.mdsal.singleton.dom.impl.DOMClusterSingletonServiceProviderImpl.ownershipChanged(DOMClusterSingletonServiceProviderImpl.java:23)[139:org.opendaylight.mdsal.singleton-dom-impl:2.3.0.SNAPSHOT]
      at org.opendaylight.controller.cluster.datastore.entityownership.EntityOwnershipListenerActor.onEntityOwnershipChanged(EntityOwnershipListenerActor.java:44)[355:org.opendaylight.controller.sal-distributed-datastore:1.6.0.SNAPSHOT]
      at org.opendaylight.controller.cluster.datastore.entityownership.EntityOwnershipListenerActor.handleReceive(EntityOwnershipListenerActor.java:33)[355:org.opendaylight.controller.sal-distributed-datastore:1.6.0.SNAPSHOT]
      at org.opendaylight.controller.cluster.common.actor.AbstractUntypedActor.onReceive(AbstractUntypedActor.java:28)[353:org.opendaylight.controller.sal-clustering-commons:1.6.0.SNAPSHOT]
      at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:165)[171:com.typesafe.akka.actor:2.4.18]
      at akka.actor.Actor$class.aroundReceive(Actor.scala:502)[171:com.typesafe.akka.actor:2.4.18]
      at akka.actor.UntypedActor.aroundReceive(UntypedActor.scala:95)[171:com.typesafe.akka.actor:2.4.18]
      at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)[171:com.typesafe.akka.actor:2.4.18]
      at akka.actor.ActorCell.invoke(ActorCell.scala:495)[171:com.typesafe.akka.actor:2.4.18]
      at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)[171:com.typesafe.akka.actor:2.4.18]
      at akka.dispatch.Mailbox.run(Mailbox.scala:224)[171:com.typesafe.akka.actor:2.4.18]
      at akka.dispatch.Mailbox.exec(Mailbox.scala:234)[171:com.typesafe.akka.actor:2.4.18]
      at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)[408:org.scala-lang.scala-library:2.11.11.v20170413-090219-8a413ba7cc]
      at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)[408:org.scala-lang.scala-library:2.11.11.v20170413-090219-8a413ba7cc]
      at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)[408:org.scala-lang.scala-library:2.11.11.v20170413-090219-8a413ba7cc]
      at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)[408:org.scala-lang.scala-library:2.11.11.v20170413-090219-8a413ba7cc]

            YrineuRodrigues Yrineu Felipe Rodrigues
            gu.min1@zte.com.cn GU Min
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: