diff --git a/dockers/docker-config-engine-bookworm/00-load-omprog.conf b/dockers/docker-config-engine-bookworm/00-load-omprog.conf deleted file mode 100644 index f59297370e78..000000000000 --- a/dockers/docker-config-engine-bookworm/00-load-omprog.conf +++ /dev/null @@ -1 +0,0 @@ -$ModLoad omprog diff --git a/dockers/docker-config-engine-bookworm/Dockerfile.j2 b/dockers/docker-config-engine-bookworm/Dockerfile.j2 index f31f996aba9e..c7c1d9cdc825 100644 --- a/dockers/docker-config-engine-bookworm/Dockerfile.j2 +++ b/dockers/docker-config-engine-bookworm/Dockerfile.j2 @@ -47,7 +47,6 @@ RUN pip3 install redis==5.0.1 COPY ["files/swss_vars.j2", "/usr/share/sonic/templates/"] COPY ["files/readiness_probe.sh", "/usr/bin/"] COPY ["files/container_startup.py", "/usr/share/sonic/scripts/"] -COPY ["00-load-omprog.conf", "/etc/rsyslog.d/"] ## Clean up RUN apt-get purge -y \ diff --git a/dockers/docker-config-engine-bullseye/00-load-omprog.conf b/dockers/docker-config-engine-bullseye/00-load-omprog.conf deleted file mode 100644 index f59297370e78..000000000000 --- a/dockers/docker-config-engine-bullseye/00-load-omprog.conf +++ /dev/null @@ -1 +0,0 @@ -$ModLoad omprog diff --git a/dockers/docker-config-engine-bullseye/Dockerfile.j2 b/dockers/docker-config-engine-bullseye/Dockerfile.j2 index 4d0345c4b5b8..700af660a91d 100644 --- a/dockers/docker-config-engine-bullseye/Dockerfile.j2 +++ b/dockers/docker-config-engine-bullseye/Dockerfile.j2 @@ -50,7 +50,6 @@ RUN pip3 install redis==4.5.4 COPY ["files/swss_vars.j2", "/usr/share/sonic/templates/"] COPY ["files/readiness_probe.sh", "/usr/bin/"] COPY ["files/container_startup.py", "/usr/share/sonic/scripts/"] -COPY ["00-load-omprog.conf", "/etc/rsyslog.d/"] ## Clean up RUN apt-get purge -y \ diff --git a/dockers/docker-dhcp-relay/Dockerfile.j2 b/dockers/docker-dhcp-relay/Dockerfile.j2 index 5b0dc82c314b..40e65381eacf 100644 --- a/dockers/docker-dhcp-relay/Dockerfile.j2 +++ b/dockers/docker-dhcp-relay/Dockerfile.j2 @@ -50,14 +50,4 @@ COPY ["files/supervisor-proc-exit-listener", "/usr/bin"] COPY ["critical_processes", "/etc/supervisor"] COPY ["cli", "/cli/"] -{% if include_system_eventd == "y" and build_reduce_image_size != "y" %} -# Copy regex json and rsyslog_plugin.conf file into rsyslog.d -COPY ["*.json", "/etc/rsyslog.d/"] -COPY ["files/rsyslog_plugin.conf.j2", "/etc/rsyslog.d/"] -# Create dhcp_relay_regex.conf -RUN j2 -f json /etc/rsyslog.d/rsyslog_plugin.conf.j2 /etc/rsyslog.d/events_info.json > /etc/rsyslog.d/dhcp_relay_events.conf -RUN rm -f /etc/rsyslog.d/rsyslog_plugin.conf.j2 -RUN rm -f /etc/rsyslog.d/events_info.json -{% endif %} - ENTRYPOINT ["/usr/bin/docker_init.sh"] diff --git a/dockers/docker-eventd/Dockerfile.j2 b/dockers/docker-eventd/Dockerfile.j2 index adf7fbfe6d2d..8e2f905f7860 100644 --- a/dockers/docker-eventd/Dockerfile.j2 +++ b/dockers/docker-eventd/Dockerfile.j2 @@ -28,9 +28,27 @@ RUN apt-get clean -y && \ apt-get autoremove -y && \ rm -rf /debs +RUN mkdir -p /etc/rsyslog.d/rsyslog_plugin_conf + COPY ["start.sh", "/usr/bin/"] COPY ["supervisord.conf", "/etc/supervisor/conf.d/"] COPY ["files/supervisor-proc-exit-listener", "/usr/bin"] COPY ["critical_processes", "/etc/supervisor"] +COPY ["*.json", "/etc/rsyslog.d/rsyslog_plugin_conf/"] +COPY ["files/rsyslog_plugin.conf.j2", "/etc/rsyslog.d/rsyslog_plugin_conf/"] + +RUN j2 -f json /etc/rsyslog.d/rsyslog_plugin_conf/rsyslog_plugin.conf.j2 /etc/rsyslog.d/rsyslog_plugin_conf/host_events_info.json > /etc/rsyslog.d/rsyslog_plugin_conf/host_events.conf +RUN j2 -f json /etc/rsyslog.d/rsyslog_plugin_conf/rsyslog_plugin.conf.j2 /etc/rsyslog.d/rsyslog_plugin_conf/bgp_events_info.json > /etc/rsyslog.d/rsyslog_plugin_conf/bgp_events.conf +RUN j2 -f json /etc/rsyslog.d/rsyslog_plugin_conf/rsyslog_plugin.conf.j2 /etc/rsyslog.d/rsyslog_plugin_conf/dhcp_relay_events_info.json > /etc/rsyslog.d/rsyslog_plugin_conf/dhcp_relay_events.conf +RUN j2 -f json /etc/rsyslog.d/rsyslog_plugin_conf/rsyslog_plugin.conf.j2 /etc/rsyslog.d/rsyslog_plugin_conf/swss_events_info.json > /etc/rsyslog.d/rsyslog_plugin_conf/swss_events.conf +RUN j2 -f json /etc/rsyslog.d/rsyslog_plugin_conf/rsyslog_plugin.conf.j2 /etc/rsyslog.d/rsyslog_plugin_conf/syncd_events_info.json > /etc/rsyslog.d/rsyslog_plugin_conf/syncd_events.conf + + +RUN rm -f /etc/rsyslog.d/rsyslog_plugin_conf/rsyslog_plugin.conf.j2 +RUN rm -f /etc/rsyslog.d/rsyslog_plugin_conf/host_events_info.json +RUN rm -f /etc/rsyslog.d/rsyslog_plugin_conf/bgp_events_info.json +RUN rm -f /etc/rsyslog.d/rsyslog_plugin_conf/dhcp_relay_events_info.json +RUN rm -f /etc/rsyslog.d/rsyslog_plugin_conf/swss_events_info.json +RUN rm -f /etc/rsyslog.d/rsyslog_plugin_conf/syncd_events_info.json ENTRYPOINT ["/usr/local/bin/supervisord"] diff --git a/dockers/docker-fpm-frr/events_info.json b/dockers/docker-eventd/bgp_events_info.json similarity index 100% rename from dockers/docker-fpm-frr/events_info.json rename to dockers/docker-eventd/bgp_events_info.json diff --git a/dockers/docker-fpm-frr/bgp_regex.json b/dockers/docker-eventd/bgp_regex.json similarity index 100% rename from dockers/docker-fpm-frr/bgp_regex.json rename to dockers/docker-eventd/bgp_regex.json diff --git a/files/build_templates/bgpd_regex.json b/dockers/docker-eventd/bgpd_regex.json similarity index 100% rename from files/build_templates/bgpd_regex.json rename to dockers/docker-eventd/bgpd_regex.json diff --git a/dockers/docker-dhcp-relay/events_info.json b/dockers/docker-eventd/dhcp_relay_events_info.json similarity index 100% rename from dockers/docker-dhcp-relay/events_info.json rename to dockers/docker-eventd/dhcp_relay_events_info.json diff --git a/dockers/docker-dhcp-relay/dhcp_relay_regex.json b/dockers/docker-eventd/dhcp_relay_regex.json similarity index 100% rename from dockers/docker-dhcp-relay/dhcp_relay_regex.json rename to dockers/docker-eventd/dhcp_relay_regex.json diff --git a/files/build_templates/dockerd_regex.json b/dockers/docker-eventd/dockerd_regex.json similarity index 100% rename from files/build_templates/dockerd_regex.json rename to dockers/docker-eventd/dockerd_regex.json diff --git a/files/build_templates/events_info.json b/dockers/docker-eventd/host_events_info.json similarity index 87% rename from files/build_templates/events_info.json rename to dockers/docker-eventd/host_events_info.json index e997a6a5352d..4e39e5bbf882 100644 --- a/files/build_templates/events_info.json +++ b/dockers/docker-eventd/host_events_info.json @@ -5,10 +5,6 @@ "name": "monit", "parse_json": "monit_regex.json" }, - { - "name": "sshd", - "parse_json": "sshd_regex.json" - }, { "name": "systemd", "parse_json": "systemd_regex.json" diff --git a/files/build_templates/kernel_regex.json b/dockers/docker-eventd/kernel_regex.json similarity index 100% rename from files/build_templates/kernel_regex.json rename to dockers/docker-eventd/kernel_regex.json diff --git a/files/build_templates/monit_regex.json b/dockers/docker-eventd/monit_regex.json similarity index 100% rename from files/build_templates/monit_regex.json rename to dockers/docker-eventd/monit_regex.json diff --git a/files/build_templates/seu_regex.json b/dockers/docker-eventd/seu_regex.json similarity index 100% rename from files/build_templates/seu_regex.json rename to dockers/docker-eventd/seu_regex.json diff --git a/dockers/docker-eventd/start.sh b/dockers/docker-eventd/start.sh index 60cd6a00aecb..afc72031c305 100755 --- a/dockers/docker-eventd/start.sh +++ b/dockers/docker-eventd/start.sh @@ -3,4 +3,3 @@ if [ "${RUNTIME_OWNER}" == "" ]; then RUNTIME_OWNER="kube" fi - diff --git a/dockers/docker-orchagent/events_info.json b/dockers/docker-eventd/swss_events_info.json similarity index 100% rename from dockers/docker-orchagent/events_info.json rename to dockers/docker-eventd/swss_events_info.json diff --git a/dockers/docker-orchagent/swss_regex.json b/dockers/docker-eventd/swss_regex.json similarity index 100% rename from dockers/docker-orchagent/swss_regex.json rename to dockers/docker-eventd/swss_regex.json diff --git a/files/build_templates/syncd_events_info.json b/dockers/docker-eventd/syncd_events_info.json similarity index 100% rename from files/build_templates/syncd_events_info.json rename to dockers/docker-eventd/syncd_events_info.json diff --git a/files/build_templates/syncd_regex.json b/dockers/docker-eventd/syncd_regex.json similarity index 100% rename from files/build_templates/syncd_regex.json rename to dockers/docker-eventd/syncd_regex.json diff --git a/files/build_templates/systemd_regex.json b/dockers/docker-eventd/systemd_regex.json similarity index 100% rename from files/build_templates/systemd_regex.json rename to dockers/docker-eventd/systemd_regex.json diff --git a/dockers/docker-fpm-frr/Dockerfile.j2 b/dockers/docker-fpm-frr/Dockerfile.j2 index 98c4593811f7..7a4a7f9bb55f 100644 --- a/dockers/docker-fpm-frr/Dockerfile.j2 +++ b/dockers/docker-fpm-frr/Dockerfile.j2 @@ -59,12 +59,4 @@ RUN chmod a+x /usr/bin/TSA && \ chmod a+x /usr/bin/TSC && \ chmod a+x /usr/bin/zsocket.sh -{% if include_system_eventd == "y" and build_reduce_image_size != "y" %} -COPY ["*.json", "/etc/rsyslog.d/"] -COPY ["files/rsyslog_plugin.conf.j2", "/etc/rsyslog.d/"] -RUN j2 -f json /etc/rsyslog.d/rsyslog_plugin.conf.j2 /etc/rsyslog.d/events_info.json > /etc/rsyslog.d/bgp_events.conf -RUN rm -f /etc/rsyslog.d/rsyslog_plugin.conf.j2 -RUN rm -f /etc/rsyslog.d/events_info.json -{% endif %} - ENTRYPOINT ["/usr/bin/docker_init.sh"] diff --git a/dockers/docker-orchagent/Dockerfile.j2 b/dockers/docker-orchagent/Dockerfile.j2 index fb90b4f09c22..b03f13e749ca 100755 --- a/dockers/docker-orchagent/Dockerfile.j2 +++ b/dockers/docker-orchagent/Dockerfile.j2 @@ -80,14 +80,4 @@ RUN sonic-cfggen -a "{\"ENABLE_ASAN\":\"{{ENABLE_ASAN}}\"}" -t /usr/share/sonic/ RUN rm -f /usr/share/sonic/templates/docker-init.j2 RUN chmod 755 /usr/bin/docker-init.sh -{% if include_system_eventd == "y" and build_reduce_image_size != "y" %} -# Copy all regex json files and rsyslog_plugin.conf to rsyslog.d -COPY ["*.json", "/etc/rsyslog.d/"] -COPY ["files/rsyslog_plugin.conf.j2", "/etc/rsyslog.d/"] -# Create swss rsyslog_plugin conf file -RUN j2 -f json /etc/rsyslog.d/rsyslog_plugin.conf.j2 /etc/rsyslog.d/events_info.json > /etc/rsyslog.d/swss_events.conf -RUN rm -f /etc/rsyslog.d/rsyslog_plugin.conf.j2 -RUN rm -f /etc/rsyslog.d/events_info.json -{% endif %} - ENTRYPOINT ["/usr/bin/docker-init.sh"] diff --git a/files/build_templates/docker_image_ctl.j2 b/files/build_templates/docker_image_ctl.j2 index 3a7159d9e4ff..5b27a2f44333 100644 --- a/files/build_templates/docker_image_ctl.j2 +++ b/files/build_templates/docker_image_ctl.j2 @@ -339,6 +339,13 @@ function postStartAction() docker cp $PSENSOR pmon:/usr/bin/ fi fi +{%- elif docker_container_name == "eventd" %} + HOST_RSYSLOG_PLUGIN_CONF_FILE="/etc/rsyslog.d/host_events.conf" + if [ ! -f ${HOST_RSYSLOG_PLUGIN_CONF_FILE} ]; then + for f in $(docker exec -i eventd ls /etc/rsyslog.d/rsyslog_plugin_conf); do docker cp eventd:/etc/rsyslog.d/rsyslog_plugin_conf/$f /etc/rsyslog.d/; done + systemctl reset-failed rsyslog + systemctl restart rsyslog + fi {%- else %} : # nothing {%- endif %} diff --git a/files/build_templates/eventd.service.j2 b/files/build_templates/eventd.service.j2 index 95e2805f7cad..5d9379cfab5d 100644 --- a/files/build_templates/eventd.service.j2 +++ b/files/build_templates/eventd.service.j2 @@ -1,7 +1,7 @@ [Unit] Description=EVENTD container -Requires=config-setup.service -After=config-setup.service +Requires=rsyslog-config.service +After=rsyslog-config.service BindsTo=sonic.target After=sonic.target StartLimitIntervalSec=1200 diff --git a/files/build_templates/sonic_debian_extension.j2 b/files/build_templates/sonic_debian_extension.j2 index 2217859dd827..83f352b1e18d 100644 --- a/files/build_templates/sonic_debian_extension.j2 +++ b/files/build_templates/sonic_debian_extension.j2 @@ -367,22 +367,6 @@ sudo dpkg --root=$FILESYSTEM_ROOT -i $debs_path/sonic-db-cli_*.deb || \ # Install sonic-rsyslog-plugin sudo dpkg --root=$FILESYSTEM_ROOT -i $debs_path/sonic-rsyslog-plugin_*.deb || \ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install -f - -# Generate host conf for rsyslog_plugin -j2 -f json $BUILD_TEMPLATES/rsyslog_plugin.conf.j2 $BUILD_TEMPLATES/events_info.json | sudo tee $FILESYSTEM_ROOT_ETC/rsyslog.d/host_events.conf -sudo cp $BUILD_TEMPLATES/monit_regex.json $FILESYSTEM_ROOT_ETC/rsyslog.d/ -sudo cp $BUILD_TEMPLATES/sshd_regex.json $FILESYSTEM_ROOT_ETC/rsyslog.d/ -sudo cp $BUILD_TEMPLATES/systemd_regex.json $FILESYSTEM_ROOT_ETC/rsyslog.d/ -sudo cp $BUILD_TEMPLATES/kernel_regex.json $FILESYSTEM_ROOT_ETC/rsyslog.d/ -sudo cp $BUILD_TEMPLATES/dockerd_regex.json $FILESYSTEM_ROOT_ETC/rsyslog.d/ -sudo cp $BUILD_TEMPLATES/seu_regex.json $FILESYSTEM_ROOT_ETC/rsyslog.d/ -sudo cp $BUILD_TEMPLATES/zebra_regex.json $FILESYSTEM_ROOT_ETC/rsyslog.d/ -sudo cp $BUILD_TEMPLATES/bgpd_regex.json $FILESYSTEM_ROOT_ETC/rsyslog.d/ - - -j2 -f json $BUILD_TEMPLATES/rsyslog_plugin.conf.j2 $BUILD_TEMPLATES/syncd_events_info.json | sudo tee $FILESYSTEM_ROOT_ETC/rsyslog.d/syncd_events.conf -sudo cp $BUILD_TEMPLATES/syncd_regex.json $FILESYSTEM_ROOT_ETC/rsyslog.d/ - {% endif %} # Install custom-built monit package and SONiC configuration files diff --git a/files/build_templates/sshd_regex.json b/files/build_templates/sshd_regex.json deleted file mode 100644 index dd664bd1ea75..000000000000 --- a/files/build_templates/sshd_regex.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "tag": "event-sshd", - "regex": "auth fail: Password Incorrect. user:.([a-zA-Z0-9-_]*)", - "params": [ "username" ] - } -] diff --git a/files/build_templates/zebra_regex.json b/files/build_templates/zebra_regex.json deleted file mode 100644 index bdbd68ec4644..000000000000 --- a/files/build_templates/zebra_regex.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "tag": "zebra-no-buff", - "regex": "No buffer space available", - "params": [] - } -] diff --git a/files/image_config/rsyslog/rsyslog.d/00-sonic.conf.j2 b/files/image_config/rsyslog/rsyslog.d/00-sonic.conf.j2 index a5b4689741dc..1aa223db2197 100644 --- a/files/image_config/rsyslog/rsyslog.d/00-sonic.conf.j2 +++ b/files/image_config/rsyslog/rsyslog.d/00-sonic.conf.j2 @@ -13,12 +13,6 @@ $ModLoad omprog if re_match($programname, "bgp[0-9]*#(frr|zebra|staticd|watchfrr)") then { /var/log/frr/zebra.log - {% if include_system_eventd == "y" and build_reduce_image_size != "y" %} - action(type="omprog" - binary="/usr/bin/rsyslog_plugin -r /etc/rsyslog.d/zebra_regex.json -m sonic-events-bgp" - output="/var/log/rsyslog_plugin.log" - template="prog_msg") - {% endif %} stop } diff --git a/rules/docker-dhcp-relay.mk b/rules/docker-dhcp-relay.mk index c8aa011d43f9..0ea0fe3db060 100644 --- a/rules/docker-dhcp-relay.mk +++ b/rules/docker-dhcp-relay.mk @@ -6,10 +6,10 @@ DOCKER_DHCP_RELAY_DBG = $(DOCKER_DHCP_RELAY_STEM)-$(DBG_IMAGE_MARK).gz $(DOCKER_DHCP_RELAY)_PATH = $(DOCKERS_PATH)/$(DOCKER_DHCP_RELAY_STEM) -$(DOCKER_DHCP_RELAY)_DEPENDS += $(ISC_DHCP_RELAY) $(SONIC_DHCPMON) $(SONIC_DHCPRELAY) $(LIBSWSSCOMMON) $(SONIC_RSYSLOG_PLUGIN) +$(DOCKER_DHCP_RELAY)_DEPENDS += $(ISC_DHCP_RELAY) $(SONIC_DHCPMON) $(SONIC_DHCPRELAY) $(LIBSWSSCOMMON) $(DOCKER_DHCP_RELAY)_DBG_DEPENDS = $($(DOCKER_CONFIG_ENGINE_BOOKWORM)_DBG_DEPENDS) -$(DOCKER_DHCP_RELAY)_DBG_DEPENDS += $(ISC_DHCP_RELAY_DBG) $(SONIC_DHCPRELAY_DBG) $(SONIC_DHCPMON_DBG) $(SONIC_RSYSLOG_PLUGIN) +$(DOCKER_DHCP_RELAY)_DBG_DEPENDS += $(ISC_DHCP_RELAY_DBG) $(SONIC_DHCPRELAY_DBG) $(SONIC_DHCPMON_DBG) $(DOCKER_DHCP_RELAY)_DBG_IMAGE_PACKAGES = $($(DOCKER_CONFIG_ENGINE_BOOKWORM)_DBG_IMAGE_PACKAGES) diff --git a/rules/docker-dhcp-server.mk b/rules/docker-dhcp-server.mk index 530fdd9a4112..83ee3a47d29d 100644 --- a/rules/docker-dhcp-server.mk +++ b/rules/docker-dhcp-server.mk @@ -6,7 +6,7 @@ DOCKER_DHCP_SERVER_DBG = $(DOCKER_DHCP_SERVER_STEM)-$(DBG_IMAGE_MARK).gz $(DOCKER_DHCP_SERVER)_PATH = $(DOCKERS_PATH)/$(DOCKER_DHCP_SERVER_STEM) -$(DOCKER_DHCP_SERVER)_DEPENDS = $(LIBSWSSCOMMON) $(SONIC_RSYSLOG_PLUGIN) +$(DOCKER_DHCP_SERVER)_DEPENDS = $(LIBSWSSCOMMON) $(DOCKER_DHCP_SERVER)_DBG_DEPENDS = $($(DOCKER_CONFIG_ENGINE_BOOKWORM)_DBG_DEPENDS) $(DOCKER_DHCP_SERVER)_DBG_IMAGE_PACKAGES = $($(DOCKER_CONFIG_ENGINE_BOOKWORM)_DBG_IMAGE_PACKAGES) diff --git a/rules/docker-eventd.mk b/rules/docker-eventd.mk index 510dc338af00..7b322fe065a5 100644 --- a/rules/docker-eventd.mk +++ b/rules/docker-eventd.mk @@ -35,7 +35,7 @@ $(DOCKER_EVENTD)_FILES += $(SUPERVISOR_PROC_EXIT_LISTENER_SCRIPT) $(DOCKER_EVENTD)_CONTAINER_NAME = eventd $(DOCKER_EVENTD)_RUN_OPT += -t $(DOCKER_EVENTD)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro -$(DOCKER_EVENTD)_RUN_OPT += -v /etc/localtime:/etc/localtime:ro +$(DOCKER_EVENTD)_RUN_OPT += -v /etc/localtime:/etc/localtime:ro SONIC_BOOKWORM_DOCKERS += $(DOCKER_EVENTD) SONIC_BOOKWORM_DBG_DOCKERS += $(DOCKER_EVENTD_DBG) diff --git a/rules/docker-fpm-frr.mk b/rules/docker-fpm-frr.mk index edfa17f5eb68..e81105caaec2 100644 --- a/rules/docker-fpm-frr.mk +++ b/rules/docker-fpm-frr.mk @@ -7,10 +7,10 @@ DOCKER_FPM_FRR_DBG = $(DOCKER_FPM_FRR_STEM)-$(DBG_IMAGE_MARK).gz $(DOCKER_FPM_FRR)_PATH = $(DOCKERS_PATH)/$(DOCKER_FPM_FRR_STEM) $(DOCKER_FPM_FRR)_PYTHON_WHEELS += $(SONIC_BGPCFGD) $(SONIC_FRR_MGMT_FRAMEWORK) -$(DOCKER_FPM_FRR)_DEPENDS += $(FRR) $(FRR_SNMP) $(SWSS) $(LIBYANG2) $(SONIC_RSYSLOG_PLUGIN) +$(DOCKER_FPM_FRR)_DEPENDS += $(FRR) $(FRR_SNMP) $(SWSS) $(LIBYANG2) $(DOCKER_FPM_FRR)_DBG_DEPENDS = $($(DOCKER_SWSS_LAYER_BOOKWORM)_DBG_DEPENDS) $(DOCKER_FPM_FRR)_DBG_DEPENDS += $(SWSS_DBG) $(LIBSWSSCOMMON_DBG) \ - $(FRR_DBG) $(FRR_SNMP_DBG) $(LIBYANG2_DBG) $(SONIC_RSYSLOG_PLUGIN) + $(FRR_DBG) $(FRR_SNMP_DBG) $(LIBYANG2_DBG) $(DOCKER_FPM_FRR)_DBG_IMAGE_PACKAGES = $($(DOCKER_SWSS_LAYER_BOOKWORM)_DBG_IMAGE_PACKAGES) diff --git a/rules/docker-orchagent.mk b/rules/docker-orchagent.mk index a1a6c34e88a7..176e92e35160 100644 --- a/rules/docker-orchagent.mk +++ b/rules/docker-orchagent.mk @@ -4,7 +4,7 @@ DOCKER_ORCHAGENT_STEM = docker-orchagent DOCKER_ORCHAGENT = $(DOCKER_ORCHAGENT_STEM).gz DOCKER_ORCHAGENT_DBG = $(DOCKER_ORCHAGENT_STEM)-$(DBG_IMAGE_MARK).gz -$(DOCKER_ORCHAGENT)_DEPENDS += $(SWSS) $(SONIC_RSYSLOG_PLUGIN) +$(DOCKER_ORCHAGENT)_DEPENDS += $(SWSS) ifeq ($(ENABLE_ASAN), y) $(DOCKER_ORCHAGENT)_DEPENDS += $(SWSS_DBG) @@ -13,8 +13,7 @@ endif $(DOCKER_ORCHAGENT)_DBG_DEPENDS = $($(DOCKER_SWSS_LAYER_BOOKWORM)_DBG_DEPENDS) $(DOCKER_ORCHAGENT)_DBG_DEPENDS += $(SWSS_DBG) \ $(LIBSWSSCOMMON_DBG) \ - $(LIBSAIREDIS_DBG) \ - $(SONIC_RSYSLOG_PLUGIN) + $(LIBSAIREDIS_DBG) $(DOCKER_ORCHAGENT)_PYTHON_WHEELS += $(SCAPY) $(DOCKER_ORCHAGENT)_DBG_IMAGE_PACKAGES = $($(DOCKER_SWSS_LAYER_BOOKWORM)_DBG_IMAGE_PACKAGES)