Skip to content

[Mellanox][202012] Skip the leftover hardware reboot cause in case of last boot is warm/fast reboot#79

Closed
keboliu wants to merge 1 commit into202012from
202012_reboot_cause
Closed

[Mellanox][202012] Skip the leftover hardware reboot cause in case of last boot is warm/fast reboot#79
keboliu wants to merge 1 commit into202012from
202012_reboot_cause

Conversation

@keboliu
Copy link
Copy Markdown
Owner

@keboliu keboliu commented Jan 13, 2023

Signed-off-by: Kebo Liu kebol@nvidia.com

Why I did it

Backport sonic-net#13246 to 202012 branch.

In case of warm/fast reboot, the hardware reboot cause will NOT be cleared because CPLD will not be touched in this flow. To not confuse the reboot cause determine logic, the leftover hardware reboot cause shall be skipped by the platform API, platform API will return the 'REBOOT_CAUSE_NON_HARDWARE' instead of the "hardware" reboot cause.

How I did it

Check the proc cmdline to see whether the last reboot is a warm or fast reboot, if yes skip checking the leftover hardware reboot cause.

How to verify it

a. Manual test:

  1. Perform a power loss
  2. Perform a warm/fast reboot
  3. check the reboot cause should be "warm-reboot" or "fast-reboot" instead of "power loss"

b. Run reboot cause related regression test.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@keboliu keboliu closed this Jan 16, 2023
@keboliu keboliu deleted the 202012_reboot_cause branch June 14, 2023 10:01
keboliu pushed a commit that referenced this pull request Aug 18, 2023
…atically (sonic-net#15373)

src/sonic-telemetry

* 5a83c07 - (HEAD -> 202205, origin/202205) Merge pull request #109 from zbud-msft/backport-202205 (86 minutes ago) [Ying Xie]
* 0f75a64 - [202012] Workaround gomonkey for armhf (#88) (3 weeks ago) [Zain Budhwani]
* 1b0dc75 - Fix Makefile error (3 weeks ago) [Zain Budhwani]
* 72e4540 - Add diff cov (#85) (3 weeks ago) [Zain Budhwani]
* 11aace5 - Add get-update to azp yml (#79) (3 weeks ago) [Zain Budhwani]
* 3eaaccc - Add net core and code coverage results (#77) (3 weeks ago) [Zain Budhwani]
* 3cf3883 - Enable unit test (3 weeks ago) [ganglyu]
* 2a0928f - Change dir name in pipeline (#75) (4 weeks ago) [Zain Budhwani]
* baa845a - Update yml (4 weeks ago) [Zain Budhwani]
* c533d52 - Fix format (4 weeks ago) [ganglyu]
keboliu pushed a commit that referenced this pull request Nov 1, 2024
…utomatically (sonic-net#20570)

#### Why I did it
src/sonic-host-services
```
* 47fd128 - (HEAD -> master, origin/master, origin/HEAD) [Banner] Added BannerCfg class to hostcfgd to handle Banner messages (#79) (19 hours ago) [Sviatoslav Boichuk]
```
#### How I did it
#### How to verify it
#### Description for the changelog
keboliu pushed a commit that referenced this pull request Dec 22, 2025
…ly (sonic-net#24654)

#### Why I did it
src/sonic-stp
```
* 6be3721 - (HEAD -> master, origin/master, origin/HEAD) Correcting stp-stpmgrd IPC data structure similar to structure defined in stpmgr.h file (#80) (4 days ago) [Divya Kumaran Chandralekha]
* e80c7be - [stpctl] stpctl enhancements for mstp debugging commands (#79) (5 days ago) [vganesan-nokia]
* bfcb492 - [mstp] Fix for port enable handlinging and rx pkt type check (#78) (5 days ago) [vganesan-nokia]
```
#### How I did it
#### How to verify it
#### Description for the changelog
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.

1 participant