Skip to content

Commit ba8c768

Browse files
authored
🌱 Tiny change, better error message if reboot times out. (#1698)
1 parent c3b5748 commit ba8c768

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/services/baremetal/host/host.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ func (s *Service) handleErrorTypeHardwareRebootFailed(ctx context.Context, isSSH
550550

551551
// if hardware reboots time out, we should fail
552552
if hasTimedOut(s.scope.HetznerBareMetalHost.Spec.Status.LastUpdated, hardwareResetTimeout) {
553-
msg := "reboot timed out - please check if server is working properly"
553+
msg := "reboot to node timed out - please check if server is working properly"
554554
if wantsRescue {
555555
msg = "The rescue system could not be reached. Please ensure that the machine tries to boot from network before booting from disk. This setting needs to be enabled permanently in the BIOS."
556556
}
@@ -565,7 +565,7 @@ func (s *Service) handleErrorTypeHardwareRebootFailed(ctx context.Context, isSSH
565565

566566
record.Warn(s.scope.HetznerBareMetalHost, "HardwareRebootTimedOut", msg)
567567

568-
return true, fmt.Errorf("hardware reboot timed out")
568+
return true, fmt.Errorf("hardware reboot (to %s) timed out", rebootInto)
569569
}
570570

571571
return false, nil

0 commit comments

Comments
 (0)