Skip to content

Commit 4944160

Browse files
committed
s
1 parent af1aec1 commit 4944160

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

mantle/platform/util.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,15 @@ func WaitForMachineSoftReboot(m Machine, j *Journal, timeout time.Duration, oldU
236236
currentUserspaceTimestamp, err := GetMachineBootCount(m)
237237
if err != nil {
238238
// SSH might be temporarily unavailable during soft-reboot
239-
if strings.Contains(err.Error(), "connection") {
239+
if _, ok := err.(*ssh.ExitMissingError); ok {
240+
continue
241+
} else if strings.Contains(err.Error(), "connection reset by peer") {
242+
continue
243+
} else if strings.Contains(err.Error(), "handshake failed") {
244+
continue
245+
} else if strings.Contains(err.Error(), "dial tcp") {
246+
continue
247+
} else if strings.Contains(err.Error(), "connection") {
240248
continue
241249
}
242250
c <- err

0 commit comments

Comments
 (0)