Skip to content

Commit

Permalink
nodeagent: clarifies reboot reason message
Browse files Browse the repository at this point in the history
SMART power cycle counter does not expose much and stays same
(previous counter and current counter) if system was reset,
rebooted or paniced. Previous quite pessimistic reboot message
said "kernel crash", which was not always the case and confused
our support and customers. More clear message should be
"system reset, reboot or kernel panic due to watchdog or kernel
bug (no kdump)".

Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
  • Loading branch information
rouming committed Jul 17, 2024
1 parent 6cff366 commit c998eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pillar/cmd/nodeagent/nodeagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ func handleLastRebootReason(ctx *nodeagentContext) {
dateStr)
bootReason = types.BootReasonPowerFail
} else {
reason = fmt.Sprintf("Reboot reason - kernel crash (no kdump) - at %s",
reason = fmt.Sprintf("Reboot reason - system reset, reboot or kernel panic due to watchdog or kernel bug (no kdump) - at %s",
dateStr)
bootReason = types.BootReasonKernel
}
Expand Down

0 comments on commit c998eec

Please sign in to comment.