[BGPCEP-139] Ghost BGP session could not be cleaned Created: 29/Sep/14  Updated: 03/Mar/19  Resolved: 10/Nov/14

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

Type: Bug
Reporter: Bin Pan Assignee: Dana Kutenicsova
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: 2109

 Description   

I still got “Duplicate BGP session” error even if hold timer expired.

2014-09-28 20:43:25.255 PDT [nettyThreadgroupModule$NioEventLoopGroupCloseable-7-2] INFO o.o.p.bgp.rib.impl.BGPSessionImpl - Failed to send message Keepalive [augmentation=[]] to socket java.nio.channels.ClosedChannelException
2014-09-28 20:43:45.257 PDT [nettyThreadgroupModule$NioEventLoopGroupCloseable-7-2] INFO o.o.p.bgp.rib.impl.BGPSessionImpl - Failed to send message Keepalive [augmentation=[]] to socket java.nio.channels.ClosedChannelException
2014-09-28 20:43:59.256 PDT [nettyThreadgroupModule$NioEventLoopGroupCloseable-7-2] INFO o.o.p.bgp.rib.impl.BGPSessionImpl - Failed to send message Notify [_errorCode=4, _errorSubcode=0, augmentation=[]] to socket java.nio.channels.ClosedChannelException
2014-09-28 20:43:59.258 PDT [nettyThreadgroupModule$NioEventLoopGroupCloseable-7-2] INFO o.o.protocol.bgp.rib.impl.BGPPeer - Session with peer 147.128.12.112 terminated: BGPTerminationReason

{error=HOLD_TIMER_EXPIRED}

osgi>
osgi>
osgi>
osgi>
osgi>
osgi>
osgi>
osgi> 2014-09-28 22:20:39.804 PDT [nettyThreadgroupModule$NioEventLoopGroupCloseable-7-1] WARN o.o.p.b.r.impl.StrictBGPPeerRegistry - Duplicate BGP session established with IpAddress [_ipv4Address=Ipv4Address [_value=147.128.12.112], _value=[1, 4, 7, ., 1, 2, 8, ., 1, 2, ., 1, 1, 2]]

Test step:
1. Start BGP peer.
2. Shut down BGP peer.
3. Wait for hold timer expired.
4. Re-start BGP peer.



 Comments   
Comment by Dana Kutenicsova [ 01/Oct/14 ]

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

Comment by Vratko Polak [ 08/Oct/14 ]

Hi Dana.

> https://git.opendaylight.org/gerrit/#/c/11693/

This patch seem to do what it says to do: "cleaned Holdtimer and BGP sessions when session is closed".
But to fix the reported bug, I believe, additionally StrictBGPPeerRegistry would have to obtain something like "deconfigurePeer(final IpAddress ip)" method, which would be called whenever (configured) session goes down, and which main job would be to perform
this.sessionIds.remove(ip);
so that a call to getPeer could be successful again later on.

Comment by Dana Kutenicsova [ 22/Oct/14 ]

https://git.opendaylight.org/gerrit/11858

Comment by Dana Kutenicsova [ 06/Nov/14 ]

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

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

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