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

platform pre-check for reboot in master branch #1556

Merged
merged 2 commits into from
Apr 22, 2021

Conversation

santhosh-kt
Copy link
Contributor

What I did

How I did it

On branch reboot_pre_check_master
Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)

modified:   scripts/reboot

How to verify it

  • Write a platform pre check script(platform_reboot_pre_check) and place it in /usr/share/sonic/device// directory.
  • If the script exit with status 0, reboot will be proceeded.
  • If script exit with non-zero status, the reboot script gets stopped.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

sujinmkang
sujinmkang previously approved these changes Apr 20, 2021
scripts/reboot Outdated Show resolved Hide resolved
@sujinmkang sujinmkang self-requested a review April 20, 2021 22:34
@sujinmkang sujinmkang merged commit 59ed6f3 into sonic-net:master Apr 22, 2021
gitsabari pushed a commit to gitsabari/sonic-utilities that referenced this pull request Jun 15, 2021
What I did
Added platform pre check support in reboot script.
Checking platform based changes before stopping dockers and sonic services.
Porting changes in master from 201911 branch sonic-net#1472
How I did it
On branch reboot_pre_check_master
Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)

modified:   scripts/reboot
How to verify it
Write a platform pre check script(platform_reboot_pre_check) and place it in /usr/share/sonic/device// directory.
If the script exit with status 0, reboot will be proceeded.
If script exit with non-zero status, the reboot script gets stopped.
sujinmkang pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Aug 31, 2021
Why I did it
To monitor the SSD health condition in DellEMC S6100 platform post upgrade.

A daemon is introduced to monitor the SSD every one hour.

To check for SSD status at boot time and at the time of cold-reboot.

All these changes are supported only for newer SSD firmware.

Porting changes from 201911 branch

Added a platform_reboot_pre_check script to prevent cold-reboot based on SSD status.
Depends on sonic-net/sonic-utilities#1556
DO NOT MERGE UNTIL ABOVE PR IS MERGED
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