sonic-buildimage/src
Yaqiang Zhu da80593ecb
[dhcp_relay] Use dhcprelayd to manage critical processes (#17236)
Modify j2 template files in docker-dhcp-relay. Add dhcprelayd to group dhcp-relay instead of isc-dhcp-relay-VlanXXX, which would make dhcprelayd to become critical process.
In dhcprelayd, subscribe FEATURE table to check whether dhcp_server feature is enabled.
2.1 If dhcp_server feature is disabled, means we need original dhcp_relay functionality, dhcprelayd would do nothing. Because dhcrelay/dhcpmon configuration is generated in supervisord configuration, they will automatically run.
2.2 If dhcp_server feature is enabled, dhcprelayd will stop dhcpmon/dhcrelay processes started by supervisord and subscribe dhcp_server related tables in config_db to start dhcpmon/dhcrelay processes.
2.3 While dhcprelayd running, it will regularly check feature status (by default per 5s) and would encounter below 4 state change about dhcp_server feature:
A) disabled -> enabled
In this scenario, dhcprelayd will subscribe dhcp_server related tables and stop dhcpmon/dhcrelay processes started by supervisord and start new pair of dhcpmon/dhcrelay processes. After this, dhcpmon/dhcrelay processes are totally managed by dhcprelayd.
B) enabled -> enabled
In this scenaro, dhcprelayd will monitor db changes in dhcp_server related tables to determine whether to restart dhcpmon/dhrelay processes.
C) enabled -> disabled
In this scenario, dhcprelayd would unsubscribe dhcp_server related tables and kill dhcpmon/dhcrelay processes started by itself. And then dhcprelayd will start dhcpmon/dhcrelay processes via supervisorctl.
D) disabled -> disabled
dhcprelayd will check whether dhcrelay processes running status consistent with supervisord configuration file. If they are not consistent, dhcprelayd will kill itself, then dhcp_relay container will stop because dhcprelayd is critical process.
2023-11-27 09:30:01 -08:00
..
bash [CI][doc][build] Trim src folder files trailing blanks (#15162) 2023-05-24 10:01:43 -07:00
dhcpmon@7c55e502a1 [submodule] Update submodule dhcpmon to the latest HEAD automatically (#16550) 2023-09-21 16:33:33 +08:00
dhcprelay@40c68778d4 [submodule] Update submodule dhcprelay to the latest HEAD automatically (#17140) 2023-11-12 16:32:31 +08:00
flashrom Flashrom refactoring for broadcom platforms (#7693) 2021-06-22 15:29:21 -07:00
gobgp [CI][doc][build] Trim src folder files trailing blanks (#15162) 2023-05-24 10:01:43 -07:00
iccpd [CI][doc][build] Trim src folder files trailing blanks (#15162) 2023-05-24 10:01:43 -07:00
ifupdown2 Patch ifupdown2 (#9630) (#11548) 2022-09-26 09:30:38 -07:00
initramfs-tools Ported Marvell armhf build on amd64 host for debian buster to use cross-comp… (#8035) 2022-07-21 14:15:16 -07:00
iproute2 Upgrade docker-sonic-vs and docker-syncd-vs to Bullseye (#13294) 2023-03-19 21:14:27 -07:00
iptables [nat] Switch to bullseye (#14495) 2023-04-02 14:02:33 -07:00
isc-dhcp [dhcp-relay]: Modify dhcp relay to pick primary address (#17012) 2023-11-22 15:05:32 -08:00
ixgbe Reorganize .gitignore files (#4707) 2020-06-09 21:04:55 -07:00
kdump-tools Ported Marvell armhf build on amd64 host for debian buster to use cross-comp… (#8035) 2022-07-21 14:15:16 -07:00
libnl3 [libnl3]: Reduce build time of libnl3. (#15536) 2023-09-23 01:00:06 -07:00
libteam Fix LAG going down after warm reboot with SONiC neighbors (#17040) 2023-11-02 22:05:09 -07:00
libyang [CI][doc][build] Trim src folder files trailing blanks (#15162) 2023-05-24 10:01:43 -07:00
libyang1 Ported Marvell armhf build on amd64 host for debian buster to use cross-comp… (#8035) 2022-07-21 14:15:16 -07:00
libyang2 Revert "[build] Migrate libyang2 sources download from wget to dget (#13394)" 2023-01-25 02:17:40 -08:00
linkmgrd@489f6cee95 [submodule] Update submodule linkmgrd to the latest HEAD automatically (#17141) 2023-11-11 15:31:57 +08:00
lldpd Upgrade lldpd to 1.0.16 2023-11-21 18:53:15 -08:00
lm-sensors Fix sensord service install (#12376) 2022-10-21 14:25:24 +08:00
monit Ported Marvell armhf build on amd64 host for debian buster to use cross-comp… (#8035) 2022-07-21 14:15:16 -07:00
mpdecimal Ported Marvell armhf build on amd64 host for debian buster to use cross-comp… (#8035) 2022-07-21 14:15:16 -07:00
ntp [CI][doc][build] Trim src folder files trailing blanks (#15162) 2023-05-24 10:01:43 -07:00
openssh Update openssh to 9.2p1-2+deb12u1 (the version in Debian Bookworm) 2023-11-21 18:53:15 -08:00
protobuf [protobuf]: Disable debian verification (#17168) 2023-11-15 23:55:04 -08:00
ptf@36a3e3d9ac [docker-sonic-mgmt] install ptf framework in mgmt container and upgrade ptf (#3239) 2019-07-30 10:19:48 -07:00
ptf-py3@405513bcad Add python3 virtual environment for docker-ptf (#10599) 2022-04-26 09:13:26 +08:00
ptf-py3.patch Add python3 virtual environment for docker-ptf (#10599) 2022-04-26 09:13:26 +08:00
ptf.patch [PTF] Patch PTF library to use correct VXLAN module (#13155) 2023-01-17 15:03:13 -08:00
radius [radius]: Use execl instead of popen in RADIUS NSS code to fix vulnerability. (#15512) 2023-08-07 09:48:18 -07:00
redis Ported Marvell armhf build on amd64 host for debian buster to use cross-comp… (#8035) 2022-07-21 14:15:16 -07:00
redis-dump-load@7585497951 [redis-dump-load] Update submodule (#5215) 2020-08-19 11:23:42 -07:00
redis-dump-load.patch [build] Use pip to install setup.py dependency instead of python setup.py install (#8997) 2021-10-26 21:12:45 -07:00
scapy@8b63d73a17 [scapy] update scapy to 2.4.5 and patch it (#10457) 2022-04-07 14:23:35 +03:00
scapy.patch [scapy]: Patch scapy 2.4.5 for sniffing on intfs (#10644) 2022-05-18 13:01:27 -07:00
sflow [sflow]: Remove the ENABLE_SFLOW_DROPMON flag (#16607) 2023-10-10 19:27:12 +03:00
snmpd [build]: enable parallel build for snmpd 5.9 (#16671) 2023-09-30 01:45:58 -07:00
socat Ported Marvell armhf build on amd64 host for debian buster to use cross-comp… (#8035) 2022-07-21 14:15:16 -07:00
sonic-bgpcfgd Update pyyaml in sonic-bgpcfgd and sonic-frr-mgmt-framework to 6.0 2023-11-21 18:53:15 -08:00
sonic-build-hooks [build] Add config to set pip http timeout (#16748) 2023-10-23 18:05:22 +08:00
sonic-config-engine [dhcp_relay] Use dhcprelayd to manage critical processes (#17236) 2023-11-27 09:30:01 -08:00
sonic-containercfgd [infra] Support syslog rate limit configuration (#12490) 2022-12-20 10:53:58 +02:00
sonic-ctrmgrd [ctnmgd]: Fixing netaddr build issue (#16668) 2023-09-23 00:00:38 -07:00
sonic-dash-api [submodule] Update submodule sonic-dash-api/sonic-dash-api to the latest HEAD automatically (#15725) 2023-07-06 16:39:13 +08:00
sonic-dbsyncd@e294eb0777 [submodule] Update submodule sonic-dbsyncd to the latest HEAD automatically (#17207) 2023-11-17 16:33:54 +08:00
sonic-device-data Update CPU transmitted packets to queue 7 for chassis (#16254) 2023-08-29 18:33:16 -07:00
sonic-dhcp-server [dhcp_relay] Use dhcprelayd to manage critical processes (#17236) 2023-11-27 09:30:01 -08:00
sonic-eventd [eventd]: Disabling eventd tests (#17053) 2023-10-31 15:51:48 -07:00
sonic-fips Touch the donwload files to change the modified time (#10929) 2022-05-26 21:55:13 +08:00
sonic-frr [FRR]Fixing CVEs CVE-2023-46752 CVE-2023-46753 CVE-2023-47234 CVE-2023-47235 (#17259) 2023-11-27 21:32:39 +08:00
sonic-frr-mgmt-framework Update pyyaml in sonic-bgpcfgd and sonic-frr-mgmt-framework to 6.0 2023-11-21 18:53:15 -08:00
sonic-genl-packet@829cc21762 Add genl packet to sonic-buildimage (#13032) 2022-12-14 15:15:47 -05:00
sonic-gnmi@07e0b36437 [submodule] Update submodule sonic-gnmi to the latest HEAD automatically (#16900) 2023-10-18 18:34:15 +08:00
sonic-host-services@5dcd1e581c [submodule] Update submodule sonic-host-services to the latest HEAD automatically (#17256) 2023-11-22 18:36:53 +08:00
sonic-linux-kernel@b2601c7b1a Update sonic-linux-kernel to use 6.1.38 2023-11-21 18:53:15 -08:00
sonic-mgmt-common@faa2a51b8f [submodule] Update submodule sonic-mgmt-common to the latest HEAD automatically (#17188) 2023-11-16 18:36:35 +08:00
sonic-mgmt-framework@dfac87c2b8 Update submodules mgmt-common and mgmt-framework (#17054) 2023-11-13 01:32:04 -08:00
sonic-p4rt Update sonic-pins submodule (#16825) 2023-10-24 19:11:11 -07:00
sonic-pit/pit-sysdiag [sonic-pit] Add PIT(Platform Integration Test) feature, second part, … (#12530) 2023-06-27 07:09:23 -07:00
sonic-platform-common@cb80f176d2 [submodule] Update submodule sonic-platform-common to the latest HEAD automatically (#17273) 2023-11-23 16:33:33 +08:00
sonic-platform-daemons@55a682834b [submodule] Update submodule sonic-platform-daemons to the latest HEAD automatically (#17209) 2023-11-17 16:33:46 +08:00
sonic-platform-pde@77090359ca [submodule] Update submodule sonic-platform-pde to the latest HEAD automatically (#15552) 2023-06-20 15:36:42 +08:00
sonic-py-common [dpu]: Add DPU database service (#17161) 2023-11-17 09:10:03 -08:00
sonic-py-swsssdk@1109e49601 [submodule] Update submodule sonic-py-swsssdk to the latest HEAD automatically (#15553) 2023-06-20 16:23:18 +08:00
sonic-restapi@ccad4a24b3 [submodule] Update submodule sonic-restapi to the latest HEAD automatically (#16932) 2023-10-18 18:33:53 +08:00
sonic-sairedis@9804bd7100 [submodule] Update submodule sonic-sairedis to the latest HEAD automatically (#17257) 2023-11-23 18:35:02 +08:00
sonic-snmpagent@3b6a4ad338 [submodule] Update submodule sonic-snmpagent to the latest HEAD automatically (#17274) 2023-11-23 18:35:45 +08:00
sonic-swss@2ca3deb01a [submodule] Update submodule sonic-swss to the latest HEAD automatically (#17275) 2023-11-23 18:34:56 +08:00
sonic-swss-common@05e024e573 [submodule] Update submodule sonic-swss-common to the latest HEAD automatically (#17213) 2023-11-17 15:25:54 +08:00
sonic-utilities@9018f3aca3 Update sonic-utilities for changes in Python 2023-11-21 18:53:15 -08:00
sonic-yang-mgmt [yang]Fixing sonic-cfg-help to handle nested container (#17260) 2023-11-23 20:59:31 +08:00
sonic-yang-models [minigraph]: Adding new secondary field to VLAN_INTERFACE table (#16827) 2023-11-22 15:06:20 -08:00
sonic-ztp@739470d666 [submodule] Update submodule sonic-ztp to the latest HEAD automatically (#16876) 2023-10-14 09:28:41 +08:00
swig Ported Marvell armhf build on amd64 host for debian buster to use cross-comp… (#8035) 2022-07-21 14:15:16 -07:00
system-health Share image for gnmi and telemetry (#16863) 2023-11-08 08:54:36 +08:00
systemd-sonic-generator [systemd-sonic-generator] replace sscanf with strtol (#15357) 2023-06-22 13:16:11 -07:00
tacacs Fix libnss-tacplus compilation 2023-11-21 18:53:15 -08:00
thrift Ported Marvell armhf build on amd64 host for debian buster to use cross-comp… (#8035) 2022-07-21 14:15:16 -07:00
thrift_0_14_1 add build target thrift 014 for python2 (#12790) 2022-11-21 21:25:19 -08:00
wpasupplicant [submodule] Update submodule wpasupplicant/sonic-wpa-supplicant to the latest HEAD automatically (#17143) 2023-11-11 15:48:11 +08:00