-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[barefoot][platform] Chassis.get_reboot_cause #7794
[barefoot][platform] Chassis.get_reboot_cause #7794
Conversation
Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>
@jleveque to me it looks confusing that if platform does not support determining any of REBOOT_CAUSE_ it should return Non-Hardware to make determine-reboot-cause work. |
Your platform doesn't support detecting any hardware-initiated reboot causes? |
@jleveque For now we will not support it in SONiC. |
If the platform API returns |
@jleveque Yes, specifically for determine-reboot-cause, it makes sense to return NON_HARDWARE in combination with sw cause check. |
1 similar comment
To fix determine-reboot-cause service which was failing due to non-implemented thrown from get_reboot_case, if the reboot was done with `sudo reboot` (cold reboot) Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>
To fix determine-reboot-cause service which was failing due to non-implemented thrown from get_reboot_case, if the reboot was done with `sudo reboot` (cold reboot) Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>
To fix determine-reboot-cause service which was failing due to non-implemented thrown from get_reboot_case, if the reboot was done with `sudo reboot` (cold reboot) Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>
Signed-off-by: Volodymyr Boyko volodymyrx.boiko@intel.com
Why I did it
To fix determine-reboot-cause service which was failing due to non-implemented thrown from get_reboot_case, if the reboot was done with
sudo reboot
(cold reboot)How I did it
Added get_reboot_case implementation that will always return Non-Hardware reason.
How to verify it
Which release branch to backport (provide reason below if selected)
Description for the changelog
barefoot implementation of sonic_platform.chassis.Chassis.get_reboot_cause
A picture of a cute animal (not mandatory but encouraged)