-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BGP crashes when unconfigure bgp and configure bgp again with EVPN related configuration present #2927
Comments
@donaldsharp I will look into this isssue. |
I am working with Anuradha and waiting for inputs on this. |
Attached bgp and zebra logs from latest build |
Call Stack (gdb) bt (gdb) fr 4 |
This bug is fixed in the latest FRR master. dev(config)# no router bgp 100 Network Next Hop Metric LocPrf Weight Path *> [5]:[0]:[32]:[103.1.0.4] *> [5]:[0]:[32]:[103.2.0.4] Displayed 2 out of 2 total prefixes VRF vrf-blue: VRF vrf-red: |
Fix for the issue: |
Setup: Simple two node setup with EBGP session between them.
Configuration
==========
Node A
======
dev# show running-config
Building configuration...
Current configuration:
!
frr version 5.1-devMyOwnFRRVersion
frr defaults traditional
hostname EdgeRouter-1
log file /var/log/frr/zebra.log
log file /var/log/frr/bgp.log
hostname dev
!
debug bgp neighbor-events
debug bgp nht
debug bgp update-groups
debug bgp updates in
debug bgp updates out
debug bgp zebra
debug bgp vpn label
debug bgp vnc verbose
!
password zebra
enable password zebra
!
vrf Sri
vni 800
exit-vrf
!
router bgp 65000
bgp router-id 203.0.113.1
no bgp default ipv4-unicast
neighbor fabric peer-group
neighbor fabric remote-as 65001
neighbor fabric capability extended-nexthop
neighbor 203.0.113.2 peer-group fabric
!
address-family l2vpn evpn
neighbor fabric activate
advertise-all-vni
exit-address-family
!
router bgp 65000 vrf Sri
bgp router-id 203.0.113.1
!
address-family ipv4 unicast
network 25.25.25.0/24
network 45.45.45.0/24
exit-address-family
!
address-family l2vpn evpn
advertise ipv4 unicast
exit-address-family
!
line vty
!
end
Node B
dev# show running-config
Building configuration...
Current configuration:
!
frr version 5.1-dev-MyOwnFRRVersion
frr defaults traditional
hostname EdgeRouter-2
log file /var/log/frr/zebra.log
log file /var/log/frr/bgp.log
hostname dev
!
debug bgp neighbor-events
debug bgp nht
debug bgp update-groups
debug bgp updates in
debug bgp updates out
debug bgp zebra
debug bgp vpn label
debug bgp vnc verbose
!
password zebra
enable password zebra
!
vrf Sri
vni 800
exit-vrf
!
router bgp 65001
bgp router-id 203.0.113.2
no bgp default ipv4-unicast
neighbor fabric peer-group
neighbor fabric remote-as 65000
neighbor fabric capability extended-nexthop
neighbor 203.0.113.1 peer-group fabric
!
address-family l2vpn evpn
neighbor fabric activate
advertise-all-vni
exit-address-family
!
router bgp 65001 vrf Sri
bgp router-id 203.0.113.2
!
address-family ipv4 unicast
network 35.35.35.0/24
network 55.55.55.0/24
exit-address-family
!
address-family l2vpn evpn
advertise ipv4 unicast
exit-address-family
!
line vty
!
end
dev#
===========================
Node A
======
dev# show bgp l2vpn evpn
Route Distinguisher: ip 203.0.113.1:2
*> [5]:[0]:[24]:[25.25.25.0]
203.0.113.8 0 32768 i
*> [5]:[0]:[24]:[45.45.45.0]
203.0.113.8 0 32768 i
Route Distinguisher: ip 203.0.113.1:3
*> [3]:[0]:[32]:[203.0.113.1]
203.0.113.1 32768 i
Route Distinguisher: ip 203.0.113.1:4
*> [3]:[0]:[32]:[203.0.113.1]
203.0.113.1 32768 i
Route Distinguisher: ip 203.0.113.2:2
*> [5]:[0]:[24]:[35.35.35.0]
203.0.113.12 0 0 65001 i
*> [5]:[0]:[24]:[55.55.55.0]
203.0.113.12 0 0 65001 i
Route Distinguisher: ip 203.0.113.2:3
*> [3]:[0]:[32]:[203.0.113.2]
203.0.113.2 0 65001 i
Route Distinguisher: ip 203.0.113.2:4
*> [3]:[0]:[32]:[203.0.113.2]
203.0.113.2 0 65001 i
Displayed 8 out of 8 total prefixes
dev#
Node B
dev# show bgp l2vpn evpn
Route Distinguisher: ip 203.0.113.1:2
*> [5]:[0]:[24]:[25.25.25.0]
203.0.113.8 0 0 65000 i
*> [5]:[0]:[24]:[45.45.45.0]
203.0.113.8 0 0 65000 i
Route Distinguisher: ip 203.0.113.1:3
*> [3]:[0]:[32]:[203.0.113.1]
203.0.113.1 0 65000 i
Route Distinguisher: ip 203.0.113.1:4
*> [3]:[0]:[32]:[203.0.113.1]
203.0.113.1 0 65000 i
Route Distinguisher: ip 203.0.113.2:2
*> [5]:[0]:[24]:[35.35.35.0]
203.0.113.12 0 32768 i
*> [5]:[0]:[24]:[55.55.55.0]
203.0.113.12 0 32768 i
Route Distinguisher: ip 203.0.113.2:3
*> [3]:[0]:[32]:[203.0.113.2]
203.0.113.2 32768 i
Route Distinguisher: ip 203.0.113.2:4
*> [3]:[0]:[32]:[203.0.113.2]
203.0.113.2 32768 i
Displayed 8 out of 8 total prefixes
dev#
unconfigure bgp on Node A
no router bgp 65000
Configure back BGP
router bgp 65000
bgp router-id 203.0.113.1
no bgp default ipv4-unicast
neighbor fabric peer-group
neighbor fabric remote-as 65001
neighbor fabric capability extended-nexthop
neighbor 203.0.113.2 peer-group fabric
!
address-family l2vpn evpn
neighbor fabric activate
advertise-all-vni
exit-address-family
!
6) BGP process crashes. This can be consistently reproduced and it crashes every single time.
2018/08/27 15:33:34 BGP: vnc_import_bgp_add_route: pfx 35.35.35.0/24, nh 203.0.113.12/32
2018/08/27 15:33:34 BGP: vnc_import_bgp_add_route: bgp->rfapi_cfg is NULL, skipping
BGP: Received signal 11 at 1535409214 (si_addr 0x28, PC 0x43bd88); aborting...
Program counter: /usr/lib/frr/bgpd[0x43bd88]
Backtrace for 11 stack frames:
/usr/lib/libfrr.so.0(zlog_backtrace_sigsafe+0x41)[0x7f7270c05dcd]
/usr/lib/libfrr.so.0(zlog_signal+0x230)[0x7f7270c0631e]
/usr/lib/libfrr.so.0(+0x4d789)[0x7f7270c17789]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f72702a2390]
/usr/lib/frr/bgpd[0x43bd88]
/usr/lib/libfrr.so.0(work_queue_run+0xcb)[0x7f7270c2810b]
/usr/lib/libfrr.so.0(thread_call+0x55)[0x7f7270c21ce1]
/usr/lib/libfrr.so.0(frr_run+0x1c3)[0x7f7270c04c35]
/usr/lib/frr/bgpd(main+0x217)[0x41d37d]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f726fee7830]
/usr/lib/frr/bgpd(_start+0x29)[0x41ec69]
in thread work_queue_run scheduled from lib/workqueue.c:137
I followed the steps mentioned on topotest wiki page to generate core files, but was not successful. So no core yet on this.
The text was updated successfully, but these errors were encountered: