Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
f10e725
Intgerate HW-MGMT 7.0030.2008 Changes
keboliu Jan 3, 2024
48885b6
[image_config]: Update DHCP rate-limit for mgmt TOR devices (#17630) …
mssonicbld Jan 3, 2024
a936829
[Mellanox] Don't populate arm64 Kconfig when integrating hw-mgmt
vivekrnv Nov 10, 2023
658a22e
[Mellanox] Remove thermal zone related code and replace with new one
Junchao-Mellanox Oct 19, 2023
f7c3d8e
Revert "Revert "[Mellanox] Align PSU temperature sysfs node name with…
Junchao-Mellanox Oct 30, 2023
1a1cf4a
Update copyright header
keboliu Jan 3, 2024
6d43d2f
[Mellanox] Provide default implementation for sfp error description w…
Junchao-Mellanox Dec 5, 2023
c5473c1
Update backend_acl.py to specify ACL table name (#17553) (#17668)
mssonicbld Jan 4, 2024
ac4f6fc
[docker_image_ctl.j2]: swss docker initialization improvements (#1762…
mssonicbld Jan 4, 2024
aafbf5b
Update Dockerfile.j2 (#17663) (#17682)
mssonicbld Jan 4, 2024
7368df7
[Mellanox] Enable CMIS host management (#16846) (#17684)
Junchao-Mellanox Jan 5, 2024
fb7bad2
[Mellanox] Implement low power mode for cmis host management (#17159)…
mssonicbld Jan 5, 2024
4060f5c
[Mellanox] Remove EEPROM write limitation if it is software control (…
mssonicbld Jan 7, 2024
8de7cb5
[202311] [Mellanox] update asic and module temperature in a thread fo…
Junchao-Mellanox Jan 8, 2024
767944d
[Mellanox] Fix race condition while creating SFP (#17441)
Junchao-Mellanox Dec 14, 2023
88ee9f7
[Nokia-IXR7250E] Modify the platform_reboot on the IXR7250E for PMON …
mlok-nokia Jan 8, 2024
bcdbaf1
[Nokia][sonic-platform] Update Nokia sonic-platform submodule and dev…
snider-nokia Jan 8, 2024
4b6feaa
Optimize syslog rate limit feature for fast and warm boot (#17458)
Junchao-Mellanox Dec 20, 2023
6a13686
Merge branch '202311' into 202311_27c1e9b_integrate_7.0030.2008_2024-…
keboliu Jan 10, 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
22 changes: 21 additions & 1 deletion device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/platform_ndk.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
{
"key": "monitor_action",
"stringval": "warn"
"stringval": "reboot"
},
{
"key": "grpc_thermal_monitor",
Expand Down Expand Up @@ -43,6 +43,26 @@
{
"key": "sonic_log_level",
"stringval": "debug"
},
{
"key": "thermal_low_margin_threshold",
"intval": 10
},
{
"key": "thermal_log_current_threshold",
"intval": 2
},
{
"key": "thermal_log_margin_threshold",
"intval": 2
},
{
"key": "thermal_log_min_threshold",
"intval": 2
},
{
"key": "thermal_log_max_threshold",
"intval": 1
}
]
}
4 changes: 4 additions & 0 deletions device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/platform_reboot
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ update_reboot_cause()
sync
}

echo "Disable all SFPs"
python3 -c 'import sonic_platform.platform; platform_chassis = sonic_platform.platform.Platform().get_chassis(); platform_chassis.tx_disable_all_sfps()'
sleep 3

# update the reboot_cuase file when reboot is trigger by device-mgr
update_reboot_cause

Expand Down
20 changes: 20 additions & 0 deletions device/nokia/x86_64-nokia_ixr7250e_sup-r0/platform_ndk.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,26 @@
{
"key": "sonic_log_level",
"stringval": "debug"
},
{
"key": "thermal_low_margin_threshold",
"intval": 10
},
{
"key": "thermal_log_current_threshold",
"intval": 3
},
{
"key": "thermal_log_margin_threshold",
"intval": 3
},
{
"key": "thermal_log_min_threshold",
"intval": 5
},
{
"key": "thermal_log_max_threshold",
"intval": 1
}
]
}
34 changes: 29 additions & 5 deletions device/nokia/x86_64-nokia_ixr7250e_sup-r0/platform_reboot
Original file line number Diff line number Diff line change
@@ -1,15 +1,39 @@
#!/bin/bash
echo "Rebooting all Linecards"
python3 -c 'import sonic_platform.platform; platform_chassis = sonic_platform.platform.Platform().get_chassis(); platform_chassis.reboot_imms()'
sleep 3

DEVICE_MGR_REBOOT_FILE="/tmp/device_mgr_reboot"

update_reboot_cause()
{
DEVICE_MGR_REBOOT_FILE=/tmp/device_mgr_reboot
REBOOT_CAUSE_FILE=/host/reboot-cause/reboot-cause.txt
DEVICE_REBOOT_CAUSE_FILE=/etc/opt/srlinux/reboot-cause.txt
if [ -e $DEVICE_MGR_REBOOT_FILE ]; then
if [ -e $DEVICE_REBOOT_CAUSE_FILE ]; then
cp -f $DEVICE_REBOOT_CAUSE_FILE $REBOOT_CAUSE_FILE
fi
rm -f $DEVICE_MGR_REBOOT_FILE
else
touch /etc/opt/srlinux/devmgr_reboot_cause.done
rm -f $DEVICE_REBOOT_CAUSE_FILE &> /dev/null
fi
sync
}

if [ ! -e $DEVICE_MGR_REBOOT_FILE ]; then
echo "Rebooting all Linecards"
python3 -c 'import sonic_platform.platform; platform_chassis = sonic_platform.platform.Platform().get_chassis(); platform_chassis.reboot_imms()'
sleep 3
fi

# update the reboot_cuase file when reboot is trigger by device-mgr
update_reboot_cause

systemctl stop nokia-watchdog.service
sleep 2
echo "w" > /dev/watchdog
kick_date=`date -u`
echo "last watchdog kick $kick_date" > /var/log/nokia-watchdog-last.log
rm -f /sys/firmware/efi/efivars/dump-*
touch /etc/opt/srlinux/devmgr_reboot_cause.done
rm -f /etc/opt/srlinux/reboot-cause.txt
echo "Shutdown midplane"
ifconfig xe0 down
sync
Expand Down
2 changes: 1 addition & 1 deletion dockers/docker-base-bullseye/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ RUN apt-get clean -y && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* /tmp/* ~/.cache

COPY ["etc/rsyslog.conf", "/etc/rsyslog.conf"]
COPY ["etc/rsyslog.d/*", "/etc/rsyslog.d/"]
COPY ["root/.vimrc", "/root/.vimrc"]

RUN ln /usr/bin/vim.tiny /usr/bin/vim

COPY ["etc/supervisor/supervisord.conf", "/etc/supervisor/"]
COPY ["etc/supervisor/containercfgd.conf", "/etc/supervisor/conf.d/"]
78 changes: 78 additions & 0 deletions dockers/docker-base-bullseye/etc/rsyslog.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
#
# /etc/rsyslog.conf Configuration file for rsyslog.
#
# For more information see
# /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html


#################
#### MODULES ####
#################

$ModLoad imuxsock # provides support for local system logging

#
# Set a rate limit on messages from the container
#
$SystemLogRateLimitInterval 300
$SystemLogRateLimitBurst 20000

#$ModLoad imklog # provides kernel logging support
#$ModLoad immark # provides --MARK-- message capability

# provides UDP syslog reception
#$ModLoad imudp
#$UDPServerRun 514

# provides TCP syslog reception
#$ModLoad imtcp
#$InputTCPServerRun 514


###########################
#### GLOBAL DIRECTIVES ####
###########################

set $.CONTAINER_NAME=getenv("CONTAINER_NAME");

# Set remote syslog server
template (name="ForwardFormatInContainer" type="string" string="<%PRI%>%TIMESTAMP:::date-rfc3339% %HOSTNAME% %$.CONTAINER_NAME%#%syslogtag%%msg:::sp-if-no-1st-sp%%msg%")
*.* action(type="omfwd" target=`echo $SYSLOG_TARGET_IP` port="514" protocol="udp" Template="ForwardFormatInContainer")

#
# Use traditional timestamp format.
# To enable high precision timestamps, comment out the following line.
#
#$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

# Define a custom template
$template SONiCFileFormat,"%TIMESTAMP%.%timestamp:::date-subseconds% %HOSTNAME% %syslogseverity-text:::uppercase% %$.CONTAINER_NAME%#%syslogtag%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"
$ActionFileDefaultTemplate SONiCFileFormat

#
# Set the default permissions for all log files.
#
$FileOwner root
$FileGroup adm
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022

#
# Where to place spool and state files
#
$WorkDirectory /var/spool/rsyslog

#
# Include all config files in /etc/rsyslog.d/
#
$IncludeConfig /etc/rsyslog.d/*.conf

#
# Suppress duplicate messages and report "message repeated n times"
#
$RepeatedMsgReduction on

###############
#### RULES ####
###############
2 changes: 1 addition & 1 deletion dockers/docker-base-buster/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ RUN apt-get clean -y && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* /tmp/* ~/.cache/

COPY ["etc/rsyslog.conf", "/etc/rsyslog.conf"]
COPY ["etc/rsyslog.d/*", "/etc/rsyslog.d/"]
COPY ["root/.vimrc", "/root/.vimrc"]

RUN ln /usr/bin/vim.tiny /usr/bin/vim

COPY ["etc/supervisor/supervisord.conf", "/etc/supervisor/"]
COPY ["etc/supervisor/containercfgd.conf", "/etc/supervisor/conf.d/"]
78 changes: 78 additions & 0 deletions dockers/docker-base-buster/etc/rsyslog.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
#
# /etc/rsyslog.conf Configuration file for rsyslog.
#
# For more information see
# /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html


#################
#### MODULES ####
#################

$ModLoad imuxsock # provides support for local system logging

#
# Set a rate limit on messages from the container
#
$SystemLogRateLimitInterval 300
$SystemLogRateLimitBurst 20000

#$ModLoad imklog # provides kernel logging support
#$ModLoad immark # provides --MARK-- message capability

# provides UDP syslog reception
#$ModLoad imudp
#$UDPServerRun 514

# provides TCP syslog reception
#$ModLoad imtcp
#$InputTCPServerRun 514


###########################
#### GLOBAL DIRECTIVES ####
###########################

set $.CONTAINER_NAME=getenv("CONTAINER_NAME");

# Set remote syslog server
template (name="ForwardFormatInContainer" type="string" string="<%PRI%>%TIMESTAMP:::date-rfc3339% %HOSTNAME% %$.CONTAINER_NAME%#%syslogtag%%msg:::sp-if-no-1st-sp%%msg%")
*.* action(type="omfwd" target=`echo $SYSLOG_TARGET_IP` port="514" protocol="udp" Template="ForwardFormatInContainer")

#
# Use traditional timestamp format.
# To enable high precision timestamps, comment out the following line.
#
#$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

# Define a custom template
$template SONiCFileFormat,"%TIMESTAMP%.%timestamp:::date-subseconds% %HOSTNAME% %syslogseverity-text:::uppercase% %$.CONTAINER_NAME%#%syslogtag%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"
$ActionFileDefaultTemplate SONiCFileFormat

#
# Set the default permissions for all log files.
#
$FileOwner root
$FileGroup adm
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022

#
# Where to place spool and state files
#
$WorkDirectory /var/spool/rsyslog

#
# Include all config files in /etc/rsyslog.d/
#
$IncludeConfig /etc/rsyslog.d/*.conf

#
# Suppress duplicate messages and report "message repeated n times"
#
$RepeatedMsgReduction on

###############
#### RULES ####
###############
9 changes: 0 additions & 9 deletions dockers/docker-base-buster/etc/supervisor/containercfgd.conf

This file was deleted.

2 changes: 1 addition & 1 deletion dockers/docker-base-stretch/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ RUN apt-get clean -y && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* /tmp/*

COPY ["etc/rsyslog.conf", "/etc/rsyslog.conf"]
COPY ["etc/rsyslog.d/*", "/etc/rsyslog.d/"]
COPY ["root/.vimrc", "/root/.vimrc"]

RUN ln /usr/bin/vim.tiny /usr/bin/vim

COPY ["etc/supervisor/supervisord.conf", "/etc/supervisor/"]
COPY ["etc/supervisor/containercfgd.conf", "/etc/supervisor/conf.d/"]
Loading