Skip to content

[9332][platform_tests] test_power_off_reboot fails since reboot-cause is not recognized after power-cycle #8605

@tjchadaga

Description

@tjchadaga

Description

Platform API is not recognizing reboot-cause after powercycle of 9332.

show reboot-cause 
Unknown
root@str2-z9332f-01:~# show reboot-cause history
Name                 Cause        Time                             User    Comment
-------------------  -----------  -------------------------------  ------  ---------
2021_08_26_14_08_39  Unknown      N/A                              N/A     N/A
2021_08_26_13_58_46  reboot       Thu 26 Aug 2021 01:57:33 PM UTC  admin   N/A
2021_08_26_13_52_18  reboot       Thu 26 Aug 2021 01:51:01 PM UTC  admin   N/A
2021_08_26_13_46_27  reboot       Thu 26 Aug 2021 01:45:12 PM UTC  admin   N/A
2021_08_26_13_36_41  Unknown      N/A                              N/A     N/A
2021_08_26_13_29_37  warm-reboot  Thu 26 Aug 2021 01:28:35 PM UTC  admin   N/A
2021_08_26_13_23_24  fast-reboot  Thu 26 Aug 2021 01:22:32 PM UTC  admin   N/A
2021_08_26_13_17_23  soft-reboot  Thu 26 Aug 2021 01:17:00 PM UTC  admin   N/A
2021_08_26_13_12_04  reboot       Thu 26 Aug 2021 01:10:50 PM UTC  admin   N/A
2021_08_26_12_17_48  reboot       Thu 26 Aug 2021 12:16:36 PM UTC  admin   N/A

Syslogs

Aug 26 14:08:39.494124 str2-z9332f-01 INFO determine-reboot-cause: Platform api returns reboot cause Non-Hardware, None
Aug 26 14:08:39.494340 str2-z9332f-01 INFO determine-reboot-cause: Platform api indicates reboot cause Non-Hardware
Aug 26 14:08:39.494484 str2-z9332f-01 INFO determine-reboot-cause: /host/reboot-cause/reboot-cause.txt indicates the reboot cause: Unknown

Steps to reproduce the issue:

  1. Powercycle device and check reboot-cause using 'show reboot-cause' or
  2. Run platform_tests/test_reboot.py::test_power_off_reboot

Describe the results you received:

Reboot-cause shows as "Unknown" after power-cycle

Describe the results you expected:

Reboot-cause should be "Power Loss"

Output of show version:

SONiC Software Version: SONiC.20201231.19
Distribution: Debian 10.10
Kernel: 4.19.0-12-2-amd64
Build commit: caa4763e25
Build date: Wed Aug 25 13:23:00 UTC 2021
Built by: AzDevOps@sonic-int-build-workers-00032R

Platform: x86_64-dellemc_z9332f_d1508-r0
HwSKU: DellEMC-Z9332f-O32
ASIC: broadcom
ASIC Count: 1
Serial Number: TH04CN21CET0004K0214
Uptime: 19:04:22 up  4:55,  3 users,  load average: 0.45, 0.51, 0.57

Output of show techsupport:

(paste your output here or download and attach the file here )

Additional information you deem important (e.g. issue happens only occasionally):

syslog.86.gz
syslog.87.gz

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions