sonic-buildimage/dockers
Liping Xu 36e65035ba
add check connetction between zebra and bgp (#16675)
Why I did it
Back port #6478 and #6519 to 201911 branch.

Work item tracking
Microsoft ADO (number only):
24978836
How I did it
Add checking the connection between zebra and bgp during bgpd start.

How to verify it
Modify start.h, add debug log and check the syslog

  _Sep 22 02:41:29.716356 str-a7060cx-acs-10 INFO bgp#root: ####: start zebra
  Sep 22 02:41:30.815341 str-a7060cx-acs-10 INFO bgp#root: ####: start check connection
  Sep 22 02:41:30.868784 str-a7060cx-acs-10 INFO bgp#root: ####: It took 0.029979 seconds to wait for zebra to be ready to accept connections
  Sep 22 02:41:30.873685 str-a7060cx-acs-10 INFO bgp#root: ####: start bgpd
  Sep 22 02:41:35.270569 str-a7060cx-acs-10 INFO bgp#root: ####: done_

  _Sep 22 03:28:02.423438 str-a7060cx-acs-10 INFO bgp#root: ####: start zebra
  Sep 22 03:28:03.731320 str-a7060cx-acs-10 INFO bgp#root: ####: start check connection
  Sep 22 03:28:33.749152 str-a7060cx-acs-10 INFO bgp#root: ####: Error: zebra is not ready to accept connections
  Sep 22 03:28:33.752490 str-a7060cx-acs-10 INFO bgp#root: ####: start bgpd
  Sep 22 03:28:34.259735 str-a7060cx-acs-10 INFO bgp#root: ####: start bgpd done
  Sep 22 03:28:34.755538 str-a7060cx-acs-10 INFO bgp#root: ####: start bgpcfgd
  Sep 22 03:28:35.800906 str-a7060cx-acs-10 INFO bgp#root: ####: done_
2023-09-25 23:29:40 +08:00
..
docker-base [Build][201911] Fix the stretch/jessie mirror removed issue (#15083) 2023-05-17 22:52:26 -07:00
docker-base-stretch [Build][201911] Fix the stretch/jessie mirror removed issue (#15083) 2023-05-17 22:52:26 -07:00
docker-basic_router Fix build break for jessie apt key expiration. (#13328) 2023-01-30 12:04:05 -08:00
docker-config-engine Fix build break for jessie apt key expiration. (#13328) 2023-01-30 12:04:05 -08:00
docker-config-engine-stretch [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00
docker-database [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
docker-dhcp-relay [201911] Add dhcp6relay as dhcprelay submodule (#12052) 2022-11-07 15:27:52 -08:00
docker-fpm-frr add check connetction between zebra and bgp (#16675) 2023-09-25 23:29:40 +08:00
docker-fpm-gobgp [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
docker-fpm-quagga Fix build break for jessie apt key expiration. (#13328) 2023-01-30 12:04:05 -08:00
docker-lldp-sv2 [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
docker-nat [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
docker-orchagent Enable PG drop counters by default, set default values only on the first start (#10935) 2022-06-22 09:43:02 -07:00
docker-platform-monitor [Mellanox] [201911] Support new sensor conf file for MSN4700 A1/A0 (#7536) 2021-05-06 15:01:35 -07:00
docker-ptf [Build][201911] Fix the stretch/jessie mirror removed issue (#15083) 2023-05-17 22:52:26 -07:00
docker-ptf-saithrift [docker-ptf-*]: Use buildimage infrastructure to build docker-ptf-* (#638) 2017-05-26 17:18:11 -07:00
docker-router-advertiser [201911][radv] Support multiple ipv6 prefixes per vlan interface and change radv interval to 3min (#10016) 2022-02-18 07:40:55 -08:00
docker-sflow [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
docker-snmp-sv2 [buildfix-201911] Fix the snmp docker build error. (#7452) 2021-04-28 01:28:55 -07:00
docker-sonic-mgmt [ci] Set default ACR in UpgrateVersion/PR/official pipeline. (#11002) 2022-06-22 17:33:20 +08:00
docker-sonic-mgmt-framework [Security]: Upgrade urllib3 to fix CVE-2021-33503 2022-02-25 01:29:39 +00:00
docker-sonic-restapi [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
docker-sonic-telemetry [201911][Monit] Restart telemetry container if memory usage is beyond the threshold (#7618) 2021-05-17 16:51:13 -07:00
docker-teamd [docker-teamd]: Increase teammgrd timeout to allow graceful shutdown. (#7662) 2021-05-27 11:24:59 -07:00
dockerfile-macros.j2 [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00