Skip to content

[202305][graceful reboot] Rename the platform_reboot to the pre_reboot_hook, remove the sysfs power cycle #18250

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

Merged

Conversation

vadymhlushko-mlnx
Copy link
Contributor

DEPENDS ON: [202305][graceful reboot] Add the pre_reboot_hook script execution, add the watchdog arm before the reboot

Why I did it

Add support for the graceful reboot instead of the sysfs power cycle to avoid filesystem corruption

Work item tracking
  • Microsoft ADO (number only):

How I did it

Rename the platform_reboot script to the pre_reboot_hook.
Remove the sysfs power cycle function, from now on the Debian reboot (/sbin/reboot) will be executed instead of the sysfs power cycle.

How to verify it

  1. Start watching logs by using show log -f and journalctl -p debug -f
  2. Execute the reboot command from the switch CLI
  3. Check in logs that all systemd services terminated

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)

…emove sysfs power cycle, and Debina reboot

Signed-off-by: vadymhlushko-mlnx <[email protected]>
…r all mellanox devices

Signed-off-by: vadymhlushko-mlnx <[email protected]>
@bingwang-ms
Copy link
Contributor

@prgeor Can you please also review this one?

@liat-grozovik
Copy link
Collaborator

@yxieca @prgeor kindly reminder, this is a major fix needed for 202305

@vadymhlushko-mlnx
Copy link
Contributor Author

@yxieca, @prgeor kind reminder to merge, the same changes were already merged into master

Copy link
Contributor

@prgeor prgeor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vadymhlushko-mlnx appreciate if you could point to the master PR in the description

@vadymhlushko-mlnx
Copy link
Contributor Author

@vadymhlushko-mlnx appreciate if you could point to the master PR in the description

[graceful reboot] Rename the platform_reboot to the pre_reboot_hook, remove the sysfs power cycle #18324

@vadymhlushko-mlnx
Copy link
Contributor Author

@prgeor could you please help to merge

@prgeor
Copy link
Contributor

prgeor commented Apr 30, 2024

@prgeor could you please help to merge

@liat-grozovik can you merge.

@vadymhlushko-mlnx
Copy link
Contributor Author

@liat-grozovik could you please merge

@dprital
Copy link
Collaborator

dprital commented May 6, 2024

@StormLiangMS , Can you please assist with merge ?

@prgeor
Copy link
Contributor

prgeor commented May 6, 2024

@StormLiangMS @yxieca can you merge

@vadymhlushko-mlnx
Copy link
Contributor Author

@StormLiangMS @yxieca can you please merge

@StormLiangMS
Copy link
Contributor

hi @bingwang-ms could you help to comment on this? Is this needed for 202305?

@StormLiangMS StormLiangMS merged commit a015cd9 into sonic-net:202305 May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants