Skip to content
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

[202405][FRR] Fixing FRR to make route node lock #105

Closed
wants to merge 31 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d9770a6
[202405][FRR] Fixing FRR to make route node lock
dgsudharsan Nov 19, 2024
e11d27a
[Arista]: Change the TH5 Yaml settings to use 8 UC and 4 MC queues (#…
Pterosaur Nov 19, 2024
e63d359
Added package to compile and link yaml file parser in C++ (#20856)
abdosi Nov 20, 2024
0f9e0db
Module detection flow update to tag copper passive cables as software…
tshalvi Oct 27, 2024
b461ea6
Update asic table template for shared headroom pool relevant informat…
stephenxs Sep 25, 2024
c1e7fad
[202405][FC] remove FC delay status field (#20554)
stepanblyschak Nov 21, 2024
98d2161
Revert "[FC] Put default counters in init_cfg.json (#20555)" (#20880)
StormLiangMS Nov 21, 2024
24b0190
[Yang] Fix Yang model of BGP Allowed Prefix (#20550)
lizhijianrd Nov 21, 2024
4ca1e66
[submodule] Update submodule sonic-swss to the latest HEAD automatica…
mssonicbld Nov 22, 2024
70e4361
Delay pmon non-critical daemon (#20879)
yuazhe Nov 22, 2024
69cbc10
[submodule] Update submodule sonic-sairedis to the latest HEAD automa…
mssonicbld Nov 22, 2024
d83acdd
Revert "[202405][FC] remove FC delay status field (#20554)" (#20888)
bingwang-ms Nov 22, 2024
d2a73d7
[syslog] Add default syslog ip to interfaces.j2 (#20340)
wen587 Oct 25, 2024
58ef4cc
[master] DNX SAI update to 11.2.13.1 (#20839)
wenyiz2021 Nov 22, 2024
78b4653
[submodule] Update submodule sonic-swss to the latest HEAD automatica…
mssonicbld Nov 23, 2024
29cbc54
[submodule] Update submodule sonic-host-services to the latest HEAD a…
mssonicbld Nov 23, 2024
6ad2cb9
[202405] Added patch in FRR to send tag value associated with route v…
abdosi Nov 27, 2024
6684ebd
add startup_tsa_tsb_service_files (#20804)
arlakshm Nov 26, 2024
616a68e
Update cisco-8000.ini to 202405.0.9 release (#20909)
anamehra Nov 25, 2024
e64125c
[Mellanox] Update Mellanox-SN5600-C256S1 SKU name and update buffers …
noaOrMlnx Nov 14, 2024
78aa787
[Mellanox] Update SAI/SDK/FW to SAIBuild2405.30.0.0/4.7.2092/2014.209…
volodymyrsamotiy Nov 23, 2024
ace4cb4
[macsec/show_macsec]: Only cache macsec stats (#20654)
liamkearney-msft Nov 19, 2024
58255e7
Add quotes to tr constructs to fix command syntax (#20464)
spilkey-cisco Nov 18, 2024
8b4e567
[database-chassis][lagid] Initialize SYSTEM_LAG_IDS_FREE_LIST in CHAS…
mlok-nokia Nov 22, 2024
ea22c5c
[Nokia-7215][Nokia-7215-A1] Update EZB files (#20838)
Pavan-Nokia Nov 21, 2024
2bf3d24
Revert "Move eventd enabled check from build time to runtime (#20248)…
zbud-msft Dec 1, 2024
d7a5cb0
[submodule] Update submodule sonic-platform-daemons to the latest HEA…
mssonicbld Dec 1, 2024
7eb63be
[Nokia][Device] Set the BCM linkscan interval via bcm config (#20858)
saksarav-nokia Nov 27, 2024
e1114fa
[submodule] Update submodule sonic-sairedis to the latest HEAD automa…
mssonicbld Dec 1, 2024
a3608dc
[submodule] Update submodule sonic-swss to the latest HEAD automatica…
mssonicbld Dec 1, 2024
d1ce820
Merge remote-tracking branch 'upstream/202405' into 202405_frr_atomic…
dgsudharsan Dec 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Move eventd enabled check from build time to runtime (sonic-n…
…et#20248)" (sonic-net#20946)

This reverts commit c5dbba3.
zbud-msft authored Dec 1, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 2bf3d24eb23a083e435d5d37f8fd0260e91bf41c
15 changes: 9 additions & 6 deletions dockers/docker-dhcp-relay/Dockerfile.j2
Original file line number Diff line number Diff line change
@@ -50,11 +50,14 @@ COPY ["files/supervisor-proc-exit-listener", "/usr/bin"]
COPY ["critical_processes", "/etc/supervisor"]
COPY ["cli", "/cli/"]

RUN mkdir -p /usr/share/sonic/templates/rsyslog_plugin

# Copy rsyslog plugin configuration file and regexes to docker
COPY ["dhcp_relay_regex.json", "/etc/rsyslog.d/"]
COPY ["events_info.json", "/usr/share/sonic/templates/rsyslog_plugin/"]
COPY ["files/rsyslog_plugin.conf.j2", "/usr/share/sonic/templates/rsyslog_plugin/"]
{% 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"]
3 changes: 0 additions & 3 deletions dockers/docker-dhcp-relay/docker_init.sh
Original file line number Diff line number Diff line change
@@ -21,7 +21,4 @@ chmod +x /usr/bin/wait_for_intf.sh
# The docker container should start this script as PID 1, so now that supervisord is
# properly configured, we exec /usr/local/bin/supervisord so that it runs as PID 1 for the
# duration of the container's lifetime
export EVENTD_STATE=$(sonic-db-cli -s CONFIG_DB HGET 'FEATURE|eventd' 'state')
j2 -f json --import-env=ENVIRONMENT /usr/share/sonic/templates/rsyslog_plugin/rsyslog_plugin.conf.j2 /usr/share/sonic/templates/rsyslog_plugin/events_info.json > /etc/rsyslog.d/dhcp_relay_events.conf

exec /usr/local/bin/supervisord
13 changes: 7 additions & 6 deletions dockers/docker-fpm-frr/Dockerfile.j2
Original file line number Diff line number Diff line change
@@ -59,11 +59,12 @@ RUN chmod a+x /usr/bin/TSA && \
chmod a+x /usr/bin/TSC && \
chmod a+x /usr/bin/zsocket.sh

RUN mkdir -p /usr/share/sonic/templates/rsyslog_plugin

# Copy rsyslog plugin configuration file and regexes to docker
COPY ["bgp_regex.json", "/etc/rsyslog.d/"]
COPY ["events_info.json", "/usr/share/sonic/templates/rsyslog_plugin/"]
COPY ["files/rsyslog_plugin.conf.j2", "/usr/share/sonic/templates/rsyslog_plugin/"]
{% 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"]
3 changes: 0 additions & 3 deletions dockers/docker-fpm-frr/docker_init.sh
Original file line number Diff line number Diff line change
@@ -111,7 +111,4 @@ TZ=$(cat /etc/timezone)
rm -rf /etc/localtime
ln -sf /usr/share/zoneinfo/$TZ /etc/localtime

export EVENTD_STATE=$(sonic-db-cli -s CONFIG_DB HGET 'FEATURE|eventd' 'state')
j2 -f json --import-env=ENVIRONMENT /usr/share/sonic/templates/rsyslog_plugin/rsyslog_plugin.conf.j2 /usr/share/sonic/templates/rsyslog_plugin/events_info.json > /etc/rsyslog.d/bgp_events.conf

exec /usr/local/bin/supervisord
15 changes: 9 additions & 6 deletions dockers/docker-orchagent/Dockerfile.j2
Original file line number Diff line number Diff line change
@@ -80,11 +80,14 @@ 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

RUN mkdir -p /usr/share/sonic/templates/rsyslog_plugin

# Copy rsyslog plugin configuration file and regexes to docker
COPY ["swss_regex.json", "/etc/rsyslog.d/"]
COPY ["events_info.json", "/usr/share/sonic/templates/rsyslog_plugin/"]
COPY ["files/rsyslog_plugin.conf.j2", "/usr/share/sonic/templates/rsyslog_plugin/"]
{% 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"]
3 changes: 0 additions & 3 deletions dockers/docker-orchagent/docker-init.j2
Original file line number Diff line number Diff line change
@@ -74,7 +74,4 @@ TZ=$(cat /etc/timezone)
rm -rf /etc/localtime
ln -sf /usr/share/zoneinfo/$TZ /etc/localtime

export EVENTD_STATE=$(sonic-db-cli -s CONFIG_DB HGET 'FEATURE|eventd' 'state')
j2 -f json --import-env=ENVIRONMENT /usr/share/sonic/templates/rsyslog_plugin/rsyslog_plugin.conf.j2 /usr/share/sonic/templates/rsyslog_plugin/events_info.json > /etc/rsyslog.d/swss_events.conf

exec /usr/local/bin/supervisord
5 changes: 0 additions & 5 deletions files/build_templates/docker_image_ctl.j2
Original file line number Diff line number Diff line change
@@ -333,11 +333,6 @@ function postStartAction()
docker cp $PSENSOR pmon:/usr/bin/
fi
fi
{%- elif docker_container_name == "eventd" %}
export EVENTD_STATE=$(sonic-db-cli -s CONFIG_DB HGET 'FEATURE|eventd' 'state')
j2 -f json --import-env=ENVIRONMENT /usr/share/sonic/templates/rsyslog_plugin/rsyslog_plugin.conf.j2 /usr/share/sonic/templates/rsyslog_plugin/events_info.json > /etc/rsyslog.d/host_events.conf
j2 -f json --import-env=ENVIRONMENT /usr/share/sonic/templates/rsyslog_plugin/rsyslog_plugin.conf.j2 /usr/share/sonic/templates/rsyslog_plugin/syncd_events_info.json > /etc/rsyslog.d/syncd_events.conf
systemctl restart rsyslog
{%- else %}
: # nothing
{%- endif %}
4 changes: 2 additions & 2 deletions files/build_templates/rsyslog_plugin.conf.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## rsyslog-plugin for streaming telemetry via gnmi

{% if ENVIRONMENT['EVENTD_STATE'] == "enabled" %}


template(name="prog_msg" type="list") {
property(name="msg")
constant(value="\n")
@@ -15,4 +16,3 @@ if re_match($programname, "{{ proc.name }}") then {
template="prog_msg")
}
{% endfor %}
{% endif %}
11 changes: 6 additions & 5 deletions files/build_templates/sonic_debian_extension.j2
Original file line number Diff line number Diff line change
@@ -353,16 +353,13 @@ sudo dpkg --root=$FILESYSTEM_ROOT -i $debs_path/sonic-db-cli_*.deb || \
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install -f


{% if include_system_eventd == "y" %}
{% if include_system_eventd == "y" and build_reduce_image_size != "y" %}
# 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
sudo mkdir -p $FILESYSTEM_ROOT_USR_SHARE_SONIC_TEMPLATES/rsyslog_plugin
sudo cp $BUILD_TEMPLATES/rsyslog_plugin.conf.j2 $FILESYSTEM_ROOT_USR_SHARE_SONIC_TEMPLATES/rsyslog_plugin/
sudo cp $BUILD_TEMPLATES/events_info.json $FILESYSTEM_ROOT_USR_SHARE_SONIC_TEMPLATES/rsyslog_plugin/
sudo cp $BUILD_TEMPLATES/syncd_events_info.json $FILESYSTEM_ROOT_USR_SHARE_SONIC_TEMPLATES/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/
@@ -371,7 +368,11 @@ 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