Skip to content

[Nvidia] Use Debian reboot in Nvidia platform reboot when it is invoked from kdump capture boot#141

Closed
stephenxs wants to merge 1 commit intomasterfrom
fix-kdump-reboot
Closed

[Nvidia] Use Debian reboot in Nvidia platform reboot when it is invoked from kdump capture boot#141
stephenxs wants to merge 1 commit intomasterfrom
fix-kdump-reboot

Conversation

@stephenxs
Copy link
Copy Markdown
Owner

@stephenxs stephenxs commented Jul 3, 2023

Why I did it

When a kernel crash occurs, the system will reboot to the kdump capture kernel if kdump is enabled (config kdump enable). In the kdump capture boot, it only stores the crash information, and then reboot the system to a normal boot.
In this boot, no SONiC service is started but it invokes reboot which is actually the SONiC reboot that depends on SONiC services. There is a logic to skip all SONiC stuff and invoke platform reboot in SONiC reboot to avoid issues.
However, on Nvidia platforms, the platform reboot still depends on SONiC services, which can cause issues.
So, the Debian reboot is called directly in platform reboot if it is invoked from the kdump capture boot.

Work item tracking
  • Microsoft ADO (number only):

How I did it

How to verify it

Manual test.

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

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

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

@stephenxs stephenxs changed the title Use Debian reboot instead of SONiC reboot in kdump boot [Mellanox] Use Debian reboot in Nvidia platform reboot when it is invoked from kdump capture boot Jul 4, 2023
@stephenxs stephenxs changed the title [Mellanox] Use Debian reboot in Nvidia platform reboot when it is invoked from kdump capture boot [Nvidia] Use Debian reboot in Nvidia platform reboot when it is invoked from kdump capture boot Jul 4, 2023
@stephenxs stephenxs force-pushed the fix-kdump-reboot branch 2 times, most recently from c434d90 to 82dfcf4 Compare July 10, 2023 10:21
The kdump capture boot is to record and store a kernel crash only.
In this boot, no SONiC service is loaded.
But Nvidia platform reboot depends on hw-management service which is part of SONiC service
In this case, we should use Debian reboot

Signed-off-by: Stephen Sun <stephens@nvidia.com>
@stephenxs
Copy link
Copy Markdown
Owner Author

ci 2772 passed.

@stephenxs stephenxs closed this Jul 13, 2023
stephenxs pushed a commit that referenced this pull request Aug 10, 2023
…lly (sonic-net#16024)

#### Why I did it
src/sonic-gnmi
```
* c548cc2 - (HEAD -> master, origin/master, origin/HEAD) Support empty protobytes (#141) (2 hours ago) [ganglv]
```
#### How I did it
#### How to verify it
#### Description for the changelog
stephenxs pushed a commit that referenced this pull request Dec 26, 2023
…matically (sonic-net#15777)

src/sonic-py-swsssdk

* 1109e49 - (HEAD -> 202305, origin/master, origin/HEAD, origin/202305, master) add semgrep (#141) (4 weeks ago) [Mai Bui]
How I did it
How to verify it
stephenxs pushed a commit that referenced this pull request May 6, 2024
…automatically (sonic-net#18856)

#### Why I did it
src/sonic-mgmt-framework
```
* 2248203 - (HEAD -> master, origin/master, origin/HEAD) Adding go.mod and go.sum files to resolve build issues. (#141) (2 days ago) [Nikita Agarwal]
```
#### How I did it
#### How to verify it
#### Description for the changelog
stephenxs pushed a commit that referenced this pull request May 31, 2024
…omatically (sonic-net#19119)

#### Why I did it
src/sonic-mgmt-common
```
* 8b18795 - (HEAD -> master, origin/master, origin/HEAD) fix for the nil check in the subscribe request (#141) (6 hours ago) [Balachandar Mani]
```
#### 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.

2 participants