@@ -273,6 +273,7 @@ func (optr *Operator) syncStatus(ctx context.Context, original, config *configv1
273
273
Message : fmt .Sprintf ("Error while reconciling %s: %s" , version , msg ),
274
274
LastTransitionTime : now ,
275
275
})
276
+ klog .Infof ("!!!! %s" , fmt .Sprintf ("Error while reconciling %s: %s" , version , msg ))
276
277
} else {
277
278
resourcemerge .SetOperatorStatusCondition (& config .Status .Conditions , configv1.ClusterOperatorStatusCondition {
278
279
Type : configv1 .OperatorProgressing ,
@@ -281,6 +282,7 @@ func (optr *Operator) syncStatus(ctx context.Context, original, config *configv1
281
282
Message : fmt .Sprintf ("Unable to apply %s: %s" , version , msg ),
282
283
LastTransitionTime : now ,
283
284
})
285
+ klog .Infof ("!!!! %s" , fmt .Sprintf ("Unable to apply %s: %s" , version , msg ))
284
286
}
285
287
286
288
} else {
@@ -331,6 +333,7 @@ func (optr *Operator) syncStatus(ctx context.Context, original, config *configv1
331
333
Message : message ,
332
334
LastTransitionTime : now ,
333
335
})
336
+ klog .Infof ("!!!! %s" , message )
334
337
}
335
338
}
336
339
@@ -357,33 +360,44 @@ func (optr *Operator) syncStatus(ctx context.Context, original, config *configv1
357
360
// its last update to go ready, or an hour has elapsed since the update began, before the condition is ignored.
358
361
func convertErrorToProgressing (history []configv1.UpdateHistory , now time.Time , status * SyncWorkerStatus ) (reason string , message string , ok bool ) {
359
362
if len (history ) == 0 || status .Failure == nil || status .Reconciling {
363
+ klog .Infof ("!!!! 1" )
360
364
return "" , "" , false
361
365
}
362
366
uErr , ok := status .Failure .(* payload.UpdateError )
363
367
if ! ok {
368
+ klog .Infof ("!!!! 2" )
364
369
return "" , "" , false
365
370
}
366
371
if uErr .Reason == "ClusterOperatorNotAvailable" || uErr .Reason == "ClusterOperatorsNotAvailable" {
367
372
switch uErr .UpdateEffect {
368
373
case payload .UpdateEffectNone :
374
+ klog .Infof ("!!!! 3" )
369
375
return uErr .Reason , fmt .Sprintf ("waiting on %s" , uErr .Name ), true
370
376
case payload .UpdateEffectFail :
377
+ klog .Infof ("!!!! 4" )
371
378
return "" , "" , false
372
379
case payload .UpdateEffectFailAfterInterval :
373
380
var exceeded []string
374
- threshold := now .Add (- (40 * time .Minute ))
381
+ //threshold := now.Add(-(40 * time.Minute))
382
+ threshold := now .Add (- (20 * time .Minute ))
375
383
for _ , name := range strings .Split (uErr .Name , ", " ) {
376
384
if payload .COUpdateStartTimesGet (name ).Before (threshold ) {
385
+ klog .Infof ("!!!! exceeded=%s" , name )
377
386
exceeded = append (exceeded , name )
378
387
}
379
388
}
380
389
if len (exceeded ) > 0 {
381
- return uErr .Reason , fmt .Sprintf ("wait has exceeded 40 minutes for these operators: %s" , strings .Join (exceeded , ", " )), false
390
+ klog .Infof ("!!!! 5" )
391
+ //return uErr.Reason, fmt.Sprintf("wait has exceeded 40 minutes for these operators: %s", strings.Join(exceeded, ", ")), false
392
+ return uErr .Reason , fmt .Sprintf ("wait has exceeded 20 minutes for these operators: %s" , strings .Join (exceeded , ", " )), false
382
393
} else {
383
- return uErr .Reason , fmt .Sprintf ("waiting up to 40 minutes on %s" , uErr .Name ), true
394
+ klog .Infof ("!!!! 6" )
395
+ //return uErr.Reason, fmt.Sprintf("waiting up to 40 minutes on %s", uErr.Name), true
396
+ return uErr .Reason , fmt .Sprintf ("waiting up to 20 minutes on %s" , uErr .Name ), true
384
397
}
385
398
}
386
399
}
400
+ klog .Infof ("!!!! 7" )
387
401
return "" , "" , false
388
402
}
389
403
0 commit comments