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

Enhance Mellanox reboot cause test case #6944

Merged
merged 1 commit into from
Dec 5, 2022

Conversation

echuawu
Copy link
Contributor

@echuawu echuawu commented Dec 2, 2022

Add new reboot cause script for additional bios cpu and asic causes

Description of PR

Summary:
Add new script to cover following reboot cause scenarios:

BIOS - In case the BIOS upgrade process ended with failure and cause the switch to reset.
CPU - Reset is initiated by SW on the CPU. it could be that SW encountered some catastrophic situation like a memory leak, eventually, the kernel reset the whole switch.
Reset from ASIC - Reset which is caused by ASIC.

Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

Add test for sonic-net/sonic-platform-common#277

How did you do it?

How did you verify/test it?

Add test script for enhance reboot cause

Any platform specific information?

Mellanox platforms, except for SPC1 and SIMX

Supported testbed topology if it's a new test case?

Any topology

Documentation

Add new reboot cause script for bios cpu and asic causes
@lgtm-com
Copy link

lgtm-com bot commented Dec 2, 2022

This pull request fixes 2 alerts when merging d5db9ec into 4e28deb - view on LGTM.com

fixed alerts:

  • 1 for Unused local variable
  • 1 for 'import *' may pollute namespace

Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog.

@liat-grozovik liat-grozovik merged commit 0e46b47 into sonic-net:master Dec 5, 2022
liat-grozovik pushed a commit that referenced this pull request Jan 25, 2023
Add new reboot cause script for additional bios cpu and asic causes
This is related with PR #6944
Due to it did not backport to 202205, I create this PR for that.

Add new script to cover following reboot cause scenarios:
BIOS - In case the BIOS upgrade process ended with failure and cause the switch to reset.
CPU - Reset is initiated by SW on the CPU. it could be that SW encountered some catastrophic situation like a memory leak, eventually, the kernel reset the whole switch.
Reset from ASIC - Reset which is caused by ASIC.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants