sonic-net / sonic-mgmt

Configuration management examples for SONiC
Other
200 stars 728 forks source link

[chassis][reboot] Chassis reboot tests for supervisor and line cards from supervisor module. #5085

Closed smaheshm closed 5 days ago

smaheshm commented 2 years ago

Description

Add reboot tests to reboot line cards and supervisor from supervisor module. example reboot test: https://github.com/Azure/sonic-mgmt/blob/master/tests/common/reboot.py

Describe the results you received:

Describe the results you expected:

Additional information you deem important:

**Output of `show version`:**

```
(paste your output here)
```

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```
rlhui commented 2 years ago

@abdosi - could you first define the expectations

rlhui commented 2 years ago

Reference CLI : https://github.com/Azure/sonic-utilities/blob/master/config/chassis_modules.py

rlhui commented 2 years ago

Three categories: power cycle, software reboot (incl. rebooting the kernel), config reload. Check/update https://github.com/mprabhu-nokia/SONiC/blob/3e857476ccc2c1b7b172bc94bc439a6e7e63f2f5/doc/pmon/pmon-chassis-design.md

arlakshm commented 4 weeks ago

The software reboot is already implemented https://github.com/sonic-net/sonic-mgmt/blob/master/tests/platform_tests/test_reboot.py.

PDU poweroff is implemented in this test https://github.com/sonic-net/sonic-mgmt/blob/master/tests/platform_tests/test_power_off_reboot.py

Kernal panic is implemented in this test https://github.com/sonic-net/sonic-mgmt/blob/master/tests/platform_tests/test_memory_exhaustion.py

arlakshm commented 4 weeks ago

We need to add a test for parallel reboots of linecards

wenyiz2021 commented 5 days ago

mark done as testcase added