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

Update process-reboot-cause to save the reboot-cause to state-db #5562

Closed
wants to merge 92 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
3cd41e6
initial commit
sujinmkang Oct 8, 2020
4bce442
initial commit2
sujinmkang Oct 8, 2020
1104b91
initial commit3
sujinmkang Oct 8, 2020
5ecb3a7
initial commit4
sujinmkang Oct 8, 2020
facbb40
initial commit5
sujinmkang Oct 8, 2020
76038db
fix errors
sujinmkang Oct 8, 2020
6fce3b7
rename the services
sujinmkang Oct 8, 2020
be07a9e
change the previous reboot-cause directory
sujinmkang Oct 9, 2020
a284f81
fix syslog missing
sujinmkang Oct 9, 2020
4b739c7
remove extra line
sujinmkang Oct 9, 2020
b7b16e1
rename the reboot process directory
sujinmkang Oct 9, 2020
10e08e7
create a symlink to the last reboot cause
sujinmkang Oct 13, 2020
2c700c8
review comments
sujinmkang Oct 14, 2020
61be6cb
review comments
sujinmkang Oct 15, 2020
a6fc962
review comments
sujinmkang Oct 15, 2020
0e6e02a
change the previous reboot-cause directory
sujinmkang Oct 15, 2020
479ef05
review comments
sujinmkang Oct 15, 2020
bc56620
review comments
sujinmkang Oct 15, 2020
5995bb3
review comment
sujinmkang Oct 16, 2020
e80c230
review comments
sujinmkang Oct 21, 2020
cdf4ca1
review comments
sujinmkang Oct 22, 2020
21356d9
missing review comments
sujinmkang Oct 23, 2020
6088bd5
[multi-ASIC] BGP internal neighbor table support (#5520)
judyjoseph Oct 28, 2020
63d95de
move reboot-cause services to sonic-host-service packages
sujinmkang Oct 29, 2020
d95e196
[swsssdk] update submodule for adding new MultiDB API (#5737)
dzhangalibaba Oct 29, 2020
42d2bf1
[devices]: DellEMC Z9264f buffer changes (#5429)
aravindmani-1 Oct 29, 2020
5ee5c13
Enable synchronous mode by default and add in minigraph parser (#5735)
shi-su Oct 29, 2020
fd7e2a1
[submodule-update][sonic-platform-daemon] Update submodule (#5741)
vboykox Oct 29, 2020
527a69d
[arista/7800r3_48cq(m)2_lc] remove platform_reboot (#5653)
Nakrez Oct 29, 2020
e111204
[caclmgrd] Convert to Python 3; Add to sonic-host-services package (…
jleveque Oct 29, 2020
6145e4f
[DellEMC]: FanDrawer and get_high_critical_threshold Platform API imp…
ArunSaravananBalachandran Oct 30, 2020
b132ca0
[build]: Upgrade pip3 before pip2 (#5743)
jleveque Oct 30, 2020
12911ba
[Arista] Update arista driver submodules (#5736)
Staphylo Oct 30, 2020
6333bb7
Explicitly call `pip2` rather than `pip` in locations where both pip2…
jleveque Oct 30, 2020
781188f
[thermalctld] Enlarge startretries value to avoid thermalctld not abl…
Junchao-Mellanox Oct 30, 2020
279943c
[sonic-swss] Update submodule (#5745)
shi-su Oct 31, 2020
8d8aadb
Load config after subscribe (#5740)
renukamanavalan Oct 31, 2020
dddf969
[monit] Adding patch to enhance syslog error message generation for m…
abdosi Nov 1, 2020
908787d
Added new method get_back_end_interface_set() to speed up back-end in…
gechiang Nov 1, 2020
c8a00ed
[mgmt ip]: mvrf ip rule priority change to 32765 (#5754)
lguohan Nov 1, 2020
f2a258a
[docker-platform-monitor] Check if sonic_platform is available before…
jleveque Nov 1, 2020
698b554
[openssh] Introduce custom openssh-server package for supporting reve…
Blueve Nov 2, 2020
98d370b
[submodule]: swss/sairedis module update (#5765)
lguohan Nov 2, 2020
1be9c4a
[Mellanox] Update SDK 4.4.1956 and FW *.2008.1956 (#5768)
Junchao-Mellanox Nov 2, 2020
10ab46f
Revert "[docker-base]: Rate limit priority INFO and lower in syslog" …
theasianpianist Nov 2, 2020
9d73552
[submodule]: update sairedis (#5772)
lguohan Nov 3, 2020
1158701
add pcied config files for mellanox platform (#5669)
keboliu Nov 3, 2020
84d3a26
[sonic-py-swsssdk] Update submodule (#5757)
jleveque Nov 3, 2020
0a1c579
[BFN] Updated SDK packages to 20201023 (#5708)
akokhan Nov 3, 2020
e3164d5
[lldpmgrd] Convert to Python 3 (#5785)
jleveque Nov 3, 2020
95c9949
update unittest and review comments
sujinmkang Nov 3, 2020
5b2adb5
lgtm
sujinmkang Nov 3, 2020
215ce13
[swss-common]: Advance submodule (#5780)
qiluo-msft Nov 3, 2020
4ed2ff8
[swss-common]: Advance submodule (#5799)
qiluo-msft Nov 4, 2020
ac3a605
[build]: ARM build: Download redis-tools and redis-server from sonics…
dflynn-Nokia Nov 4, 2020
194c7a9
[build]: Fix for - execvp: /bin/bash: Argument list too long error (#…
Kalimuthu-Velappan Nov 4, 2020
ba7fda7
[docker-platform-monitor] Install Python 2 'enum34' package to fix Ar…
jleveque Nov 4, 2020
d3262d1
[generate_asic_config_checksum.py] Convert to Python 3 (#5783)
jleveque Nov 4, 2020
ce6286e
[device/accton] Remove the use of python pickle package (#5475)
roylee123 Nov 5, 2020
1f9132d
[sonic-yang]: Yang model update fields (#5577)
Nov 5, 2020
160544f
[Mellanox] Update SAI to v.1.17.6. (#5767)
nazariig Nov 5, 2020
522a071
[core_cleanup.py] Convert to Python 3; Fix bug; Improve code reuse (#…
jleveque Nov 5, 2020
13f8e9c
[bgpcfgd]: Convert bgpcfgd and bgpmon to python3 (#5746)
pavel-shirshov Nov 5, 2020
2c9454e
[sonic-device-data] Convert Python files to Python 3 (#5816)
jleveque Nov 5, 2020
d804598
[core_uploader.py] Convert to Python 3; Use logger from sonic-py-comm…
jleveque Nov 5, 2020
13ff7b3
[docker-wait-any] Convert to Python 3, install dependency in host OS …
jleveque Nov 5, 2020
fdbef5d
initial commit
sujinmkang Oct 8, 2020
87b8426
initial commit2
sujinmkang Oct 8, 2020
36b468d
initial commit3
sujinmkang Oct 8, 2020
16cdfec
initial commit4
sujinmkang Oct 8, 2020
a007a09
initial commit5
sujinmkang Oct 8, 2020
bf1c398
fix errors
sujinmkang Oct 8, 2020
c1da203
rename the services
sujinmkang Oct 8, 2020
10a52a9
change the previous reboot-cause directory
sujinmkang Oct 9, 2020
9345f77
fix syslog missing
sujinmkang Oct 9, 2020
e6aec36
remove extra line
sujinmkang Oct 9, 2020
22c1d0c
rename the reboot process directory
sujinmkang Oct 9, 2020
4a13d7a
create a symlink to the last reboot cause
sujinmkang Oct 13, 2020
089bf9e
review comments
sujinmkang Oct 14, 2020
ecc3d49
review comments
sujinmkang Oct 15, 2020
bc10ecf
review comments
sujinmkang Oct 15, 2020
5a5e622
change the previous reboot-cause directory
sujinmkang Oct 15, 2020
0e6537a
review comments
sujinmkang Oct 15, 2020
333c38f
review comments
sujinmkang Oct 15, 2020
5113cc3
review comment
sujinmkang Oct 16, 2020
070a85e
review comments
sujinmkang Oct 21, 2020
0adf6ff
review comments
sujinmkang Oct 22, 2020
e463957
missing review comments
sujinmkang Oct 23, 2020
cd3e755
move reboot-cause services to sonic-host-service packages
sujinmkang Oct 29, 2020
d72d63c
update unittest and review comments
sujinmkang Nov 3, 2020
07779c6
lgtm
sujinmkang Nov 3, 2020
1ca1715
Merge branch 'reboot-cause-tel' of https://github.com/sujinmkang/soni…
sujinmkang Nov 5, 2020
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
6 changes: 3 additions & 3 deletions Makefile.cache
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ define SHOW_WHY
@echo "[ FLAGS FILE ] : [$($(1)_FILE_FLAGS)] " >> $($(1)_DST_PATH)/$(1).log
@echo "[ FLAGS DEPENDS ] : [$($(1)_DEP_FLAGS_ALL)] " >> $($(1)_DST_PATH)/$(1).log
@echo "[ FLAGS DIFF ] : [$($(1)_FLAGS_DIFF)] " >> $($(1)_DST_PATH)/$(1).log
@echo "[ DEP DEPENDS ] : [$($(1)_DEP_FILES_MODIFIED)] " >> $($(1)_DST_PATH)/$(1).log
@echo "[ SMDEP DEPENDS ] : [$($(1)_SMDEP_FILES_MODIFIED)] " >> $($(1)_DST_PATH)/$(1).log
@echo "[ TARGET DEPENDS ] : [$?] " >> $($(1)_DST_PATH)/$(1).log
@$(file >>$($(1)_DST_PATH)/$(1).log, "[ DEP DEPENDS ] : [$($(1)_DEP_FILES_MODIFIED)] ")
@$(file >>$($(1)_DST_PATH)/$(1).log, "[ SMDEP DEPENDS ] : [$($(1)_SMDEP_FILES_MODIFIED)] ")
@$(file >>$($(1)_DST_PATH)/$(1).log, "[ TARGET DEPENDS ] : [$?] ")
endef


Expand Down
11 changes: 7 additions & 4 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -413,13 +413,15 @@ done < files/image_config/sysctl/sysctl-net.conf

sudo augtool --autosave "$sysctl_net_cmd_string" -r $FILESYSTEM_ROOT

## docker Python API package is needed by Ansible docker module
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install 'docker==4.1.0'
# docker Python API package is needed by Ansible docker module as well as some SONiC applications
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip2 install 'docker==4.1.0'
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'docker==4.3.1'

## Note: keep pip installed for maintainance purpose

## Get gcc and python dev pkgs
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install gcc libpython2.7-dev
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install 'netifaces==0.10.7'
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip2 install 'netifaces==0.10.7'

## Create /var/run/redis folder for docker-database to mount
sudo mkdir -p $FILESYSTEM_ROOT/var/run/redis
Expand Down Expand Up @@ -463,7 +465,8 @@ EOF
sudo cp ./files/scripts/core_cleanup.py $FILESYSTEM_ROOT/usr/bin/core_cleanup.py

## Copy ASIC config checksum
python files/build_scripts/generate_asic_config_checksum.py
sudo chmod 755 files/build_scripts/generate_asic_config_checksum.py
./files/build_scripts/generate_asic_config_checksum.py
if [[ ! -f './asic_config_checksum' ]]; then
echo 'asic_config_checksum not found'
exit 1
Expand Down
19 changes: 7 additions & 12 deletions device/accton/x86_64-accton_as5812_54t-r0/plugins/sfputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
try:
import time
import os
import pickle
from ctypes import create_string_buffer
from sonic_sfp.sfputilbase import SfpUtilBase
except ImportError as e:
Expand Down Expand Up @@ -83,16 +82,13 @@ def __init__(self):

#Two i2c buses might get flipped order, check them both.
def update_i2c_order(self):
if os.path.exists("/tmp/accton_util.p"):
self.I2C_BUS_ORDER = pickle.load(open("/tmp/accton_util.p", "rb"))
else:
if self.I2C_BUS_ORDER < 0:
eeprom_path = "/sys/bus/i2c/devices/1-0057/eeprom"
if os.path.exists(eeprom_path):
self.I2C_BUS_ORDER = 0
eeprom_path = "/sys/bus/i2c/devices/0-0057/eeprom"
if os.path.exists(eeprom_path):
self.I2C_BUS_ORDER = 1
if self.I2C_BUS_ORDER < 0:
eeprom_path = "/sys/bus/i2c/devices/1-0057/eeprom"
if os.path.exists(eeprom_path):
self.I2C_BUS_ORDER = 0
eeprom_path = "/sys/bus/i2c/devices/0-0057/eeprom"
if os.path.exists(eeprom_path):
self.I2C_BUS_ORDER = 1
return self.I2C_BUS_ORDER

def get_presence(self, port_num):
Expand Down Expand Up @@ -285,4 +281,3 @@ def get_transceiver_change_event(self, timeout=2000):
else:
return True, {}
return False, {}

18 changes: 7 additions & 11 deletions device/accton/x86_64-accton_as5812_54x-r0/plugins/sfputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
try:
import time
import os
import pickle
from ctypes import create_string_buffer
from sonic_sfp.sfputilbase import SfpUtilBase
except ImportError as e:
Expand Down Expand Up @@ -132,16 +131,13 @@ def __init__(self):

#Two i2c buses might get flipped order, check them both.
def update_i2c_order(self):
if os.path.exists("/tmp/accton_util.p"):
self.I2C_BUS_ORDER = pickle.load(open("/tmp/accton_util.p", "rb"))
else:
if self.I2C_BUS_ORDER < 0:
eeprom_path = "/sys/bus/i2c/devices/1-0057/eeprom"
if os.path.exists(eeprom_path):
self.I2C_BUS_ORDER = 0
eeprom_path = "/sys/bus/i2c/devices/0-0057/eeprom"
if os.path.exists(eeprom_path):
self.I2C_BUS_ORDER = 1
if self.I2C_BUS_ORDER < 0:
eeprom_path = "/sys/bus/i2c/devices/1-0057/eeprom"
if os.path.exists(eeprom_path):
self.I2C_BUS_ORDER = 0
eeprom_path = "/sys/bus/i2c/devices/0-0057/eeprom"
if os.path.exists(eeprom_path):
self.I2C_BUS_ORDER = 1
return self.I2C_BUS_ORDER

def get_presence(self, port_num):
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,13 @@
{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "34859968",
"size": "35621248",
"type": "ingress",
"mode": "dynamic",
"xoff": "7847424"
},
"egress_lossy_pool": {
"size": "29631680",
"type": "egress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "43481152",
"size": "43468672",
"type": "egress",
"mode": "static"
}
Expand All @@ -35,12 +30,13 @@
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"1518",
"static_th":"10870288"
"size":"0",
"static_th":"43468672"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"1518",
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"1518",
"mode":"dynamic",
"dynamic_th":"3"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1003,3 +1003,4 @@ dport_map_port_66=65
dport_map_port_100=66

module_64ports=1
mmu_init_config="MSFT-TH2-Tier1"
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,13 @@
{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "33096128",
"size": "34369920",
"type": "ingress",
"mode": "dynamic",
"xoff": "9098752"
},
"egress_lossy_pool": {
"size": "28132416",
"type": "egress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "43108416",
"size": "43468672",
"type": "egress",
"mode": "static"
}
Expand All @@ -42,12 +37,13 @@
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"1518",
"static_th":"10777104"
"size":"0",
"static_th":"43468672"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"1518",
"mode":"dynamic",
"dynamic_th":"3"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1115,5 +1115,5 @@ dport_map_port_66=121
dport_map_port_100=122

module_64ports=1
mmu_init_config="MSFT-TH-Tier0"
mmu_init_config="MSFT-TH2-Tier0"

Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,13 @@
{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "38738752",
"size": "35621248",
"type": "ingress",
"mode": "dynamic",
"xoff": "3855488"
},
"egress_lossy_pool": {
"size": "37057280",
"type": "egress",
"mode": "dynamic"
"xoff": "7847424"
},
"egress_lossless_pool": {
"size": "43507776",
"size": "43468672",
"type": "egress",
"mode": "static"
}
Expand All @@ -35,12 +30,13 @@
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"1518",
"static_th":"10876944"
"size":"0",
"static_th":"43468672"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"1518",
"mode":"dynamic",
"dynamic_th":"3"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,13 @@
{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "37968320",
"size": "35621248",
"type": "ingress",
"mode": "dynamic",
"xoff": "4625920"
},
"egress_lossy_pool": {
"size": "36402496",
"type": "egress",
"mode": "dynamic"
"xoff": "7847424"
},
"egress_lossless_pool": {
"size": "43507776",
"size": "43468672",
"type": "egress",
"mode": "static"
}
Expand All @@ -35,11 +30,11 @@
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"1518",
"static_th":"10876944"
"size":"0",
"static_th":"43468672"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"1518",
"dynamic_th":"3"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1003,5 +1003,4 @@ dport_map_port_66=65
dport_map_port_100=66

module_64ports=1

mmu_init_config="MSFT-TH-Tier0"
mmu_init_config="MSFT-TH2-Tier0"
Original file line number Diff line number Diff line change
Expand Up @@ -1004,4 +1004,4 @@ dport_map_port_100=66

module_64ports=1

mmu_init_config="MSFT-TH-Tier1"
mmu_init_config="MSFT-TH2-Tier1"
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_lssn2700-r0/pcie.yaml
83 changes: 83 additions & 0 deletions device/mellanox/x86_64-mlnx_msn2010-r0/pcie.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
- bus: '00'
dev: '00'
fn: '0'
id: 1f0b
name: 'Host bridge: Intel Corporation Atom processor C2000 SoC Transaction Router
(rev 02)'
- bus: '00'
dev: '01'
fn: '0'
id: 1f10
name: 'PCI bridge: Intel Corporation Atom processor C2000 PCIe Root Port 1 (rev
02)'
- bus: '00'
dev: '02'
fn: '0'
id: 1f11
name: 'PCI bridge: Intel Corporation Atom processor C2000 PCIe Root Port 2 (rev
02)'
- bus: '00'
dev: '03'
fn: '0'
id: 1f12
name: 'PCI bridge: Intel Corporation Atom processor C2000 PCIe Root Port 3 (rev
02)'
- bus: '00'
dev: 0b
fn: '0'
id: 1f18
name: 'Co-processor: Intel Corporation Atom processor C2000 QAT (rev 02)'
- bus: '00'
dev: 0e
fn: '0'
id: 1f14
name: 'Host bridge: Intel Corporation Atom processor C2000 RAS (rev 02)'
- bus: '00'
dev: 0f
fn: '0'
id: 1f16
name: 'IOMMU: Intel Corporation Atom processor C2000 RCEC (rev 02)'
- bus: '00'
dev: '13'
fn: '0'
id: 1f15
name: 'System peripheral: Intel Corporation Atom processor C2000 SMBus 2.0 (rev
02)'
- bus: '00'
dev: '14'
fn: '0'
id: 1f41
name: 'Ethernet controller: Intel Corporation Ethernet Connection I354 (rev 03)'
- bus: '00'
dev: '16'
fn: '0'
id: 1f2c
name: 'USB controller: Intel Corporation Atom processor C2000 USB Enhanced Host
Controller (rev 02)'
- bus: '00'
dev: '17'
fn: '0'
id: 1f22
name: 'SATA controller: Intel Corporation Atom processor C2000 AHCI SATA2 Controller
(rev 02)'
- bus: '00'
dev: '18'
fn: '0'
id: 1f32
name: 'SATA controller: Intel Corporation Atom processor C2000 AHCI SATA3 Controller
(rev 02)'
- bus: '00'
dev: 1f
fn: '0'
id: 1f38
name: 'ISA bridge: Intel Corporation Atom processor C2000 PCU (rev 02)'
- bus: '00'
dev: 1f
fn: '3'
id: 1f3c
name: 'SMBus: Intel Corporation Atom processor C2000 PCU SMBus (rev 02)'
- bus: '01'
dev: '00'
fn: '0'
id: cb84
name: 'Ethernet controller: Mellanox Technologies MT52100'
Loading