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

internal [202305] Rename the platform_reboot to the pre_reboot_hook, remove the sysfs power cycle #39

Closed
wants to merge 2 commits into from

Conversation

vadymhlushko-mlnx
Copy link
Owner

@vadymhlushko-mlnx vadymhlushko-mlnx commented Nov 27, 2023

DEPENDS ON: internal [202305] 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)

@vadymhlushko-mlnx vadymhlushko-mlnx force-pushed the 202305-graceful-shutdown branch 2 times, most recently from 5c10bf7 to 7e7325a Compare November 28, 2023 14:20
…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]>
@vadymhlushko-mlnx vadymhlushko-mlnx changed the title internal 202305 graceful shutdown internal [202305] Rename the platform_reboot to the pre_reboot_hook, remove the sysfs power cycle Dec 4, 2023
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