Skip to content

[Smartwitch][reboot-cause] Log error generated when DPU is powered off and the switch is rebooted #22072

@gpunathilell

Description

@gpunathilell

Issue Summary

When the DPU is powered off (Transition from online to offline for DPU. We create a file prev_reboot_time.txt in the history folder for each of the DPU modules: Example: /host/reboot-cause/module/dpu0/history/prev_reboot_time.txt
Due to this file, if we perform switch reboot the following log error is seen:
2025 Mar 18 20:50:26.274641 sonic ERR process-reboot-cause[16633]: Unable to process reload cause file /host/reboot-cause/module/dpu0/history/prev_reboot_time.txt: Extra data: line 1 column 5 (char 4) on the switch.

Method to Reproduce

Power off one of the DPUs during runtime : config chassis modules shutdown DPU0
Wait for DPU oper status to transition to offline : show chassis modules status DPU0 -> Check that Oper-status is Offline
Confirm that the file prev_reboot_time.txt exists:
cat /host/reboot-cause/module/dpu0/history/prev_reboot_time.txt
Reboot the switch: reboot
Wait for switch to finish rebooting.
Confirm that the following log error is seen:
2025 Mar 18 20:50:26.274641 sonic ERR process-reboot-cause[16633]: Unable to process reload cause file /host/reboot-cause/module/dpu0/history/prev_reboot_time.txt: Extra data: line 1 column 5 (char 4)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions