-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[202205] Backport: Rename the platform_reboot to the pre_reboot_hook, remove the sysfs power cycle #21686
Conversation
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw |
b11f1ef
to
79b84b1
Compare
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
79b84b1
to
389bc0f
Compare
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
Back port from master branch. Why I did it Back port graceful reboot instead of the sysfs power cycle to avoid filesystem corruption. 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 Start watching logs by using show log -f and journalctl -p debug -f. Execute the reboot command from the switch CLI. Check in logs that all systemd services terminated. Signed-off-by: Jianyue Wu <jianyuew@nvidia.com>
389bc0f
to
d5c93e4
Compare
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
Seems failure caused by "ImportError: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.29' not found" |
/azp run Azure.sonic-buildimage |
Commenter does not have sufficient privileges for PR 21686 in repo sonic-net/sonic-buildimage |
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
Pending on build fix PR merge: sonic-net/sonic-swss-common#977 |
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw run |
/AzurePipelines run |
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
Now error is: |
Backport commit #18324.
Why I did it
Back port graceful reboot instead of the sysfs power cycle to avoid filesystem corruption.
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
Start watching logs by using show log -f and journalctl -p debug -f.
Execute the reboot command from the switch CLI.
Check in logs that all systemd services terminated.
Which release branch to backport (provide reason below if selected)
Because 202205 branch is missing this change.
Tested branch (Please provide the tested image version)
SONiC.202205_5_rc.7-3349088e1