You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
funcconvertErrorToProgressingForUpdateEffectNone(uErr*payload.UpdateError, now time.Time) (string, string, bool) {
578
+
varexceeded []string
579
+
names:=uErr.Names
580
+
iflen(names) ==0 {
581
+
names= []string{uErr.Name}
582
+
}
583
+
varmachineConfigbool
584
+
for_, name:=rangenames {
585
+
m:=30*time.Minute
586
+
// It takes longer to upgrade MCO
587
+
ifname=="machine-config" {
588
+
m=3*m
589
+
}
590
+
t:=payload.COUpdateStartTimesGet(name)
591
+
if (!t.IsZero()) &&t.Before(now.Add(-(m))) {
592
+
ifname=="machine-config" {
593
+
machineConfig=true
594
+
} else {
570
595
exceeded=append(exceeded, name)
571
596
}
572
597
}
573
-
iflen(exceeded) >0 {
574
-
returnuErr.Reason, fmt.Sprintf("wait has exceeded 40 minutes for these operators: %s", strings.Join(exceeded, ", ")), false
575
-
} else {
576
-
returnuErr.Reason, fmt.Sprintf("waiting up to 40 minutes on %s", uErr.Name), true
598
+
}
599
+
// returns true in those slow cases because it is still only a suspicion
600
+
iflen(exceeded) >0&&!machineConfig {
601
+
returnslowCOUpdatePrefix+uErr.Reason, fmt.Sprintf("waiting on %s over 30 minutes which is longer than expected", strings.Join(exceeded, ", ")), true
602
+
}
603
+
iflen(exceeded) >0&&machineConfig {
604
+
returnslowCOUpdatePrefix+uErr.Reason, fmt.Sprintf("waiting on %s over 30 minutes and machine-config over 90 minutes which is longer than expected", strings.Join(exceeded, ", ")), true
605
+
}
606
+
iflen(exceeded) ==0&&machineConfig {
607
+
returnslowCOUpdatePrefix+uErr.Reason, "waiting on machine-config over 90 minutes which is longer than expected", true
608
+
}
609
+
returnuErr.Reason, fmt.Sprintf("waiting on %s", strings.Join(names, ", ")), true
610
+
}
611
+
612
+
funcconvertErrorToProgressingForUpdateEffectFailAfterInterval(uErr*payload.UpdateError, now time.Time) (string, string, bool) {
0 commit comments