@@ -216,7 +216,6 @@ func (r *RayClusterReconciler) rayClusterReconcile(ctx context.Context, request
216
216
"finalizer" , utils .GCSFaultToleranceRedisCleanupFinalizer )
217
217
controllerutil .AddFinalizer (instance , utils .GCSFaultToleranceRedisCleanupFinalizer )
218
218
if err := r .Update (ctx , instance ); err != nil {
219
- logger .Error (err , fmt .Sprintf ("Failed to add the finalizer %s to the RayCluster." , utils .GCSFaultToleranceRedisCleanupFinalizer ))
220
219
return ctrl.Result {RequeueAfter : DefaultRequeueDuration }, err
221
220
}
222
221
// Only start the RayCluster reconciliation after the finalizer is added.
@@ -287,7 +286,6 @@ func (r *RayClusterReconciler) rayClusterReconcile(ctx context.Context, request
287
286
logger .Info (fmt .Sprintf ("Redis cleanup Job already exists. Requeue the RayCluster CR %s." , instance .Name ))
288
287
return ctrl.Result {RequeueAfter : DefaultRequeueDuration }, nil
289
288
}
290
- logger .Error (err , "Failed to create Redis cleanup Job" )
291
289
return ctrl.Result {RequeueAfter : DefaultRequeueDuration }, err
292
290
}
293
291
logger .Info ("Successfully created Redis cleanup Job" , "Job name" , redisCleanupJob .Name )
@@ -439,7 +437,6 @@ func (r *RayClusterReconciler) reconcileRouteOpenShift(ctx context.Context, inst
439
437
headRoutes := routev1.RouteList {}
440
438
filterLabels := client.MatchingLabels {utils .RayClusterLabelKey : instance .Name }
441
439
if err := r .List (ctx , & headRoutes , client .InNamespace (instance .Namespace ), filterLabels ); err != nil {
442
- logger .Error (err , "Route Listing error!" , "Route.Error" , err )
443
440
return err
444
441
}
445
442
@@ -451,7 +448,6 @@ func (r *RayClusterReconciler) reconcileRouteOpenShift(ctx context.Context, inst
451
448
if headRoutes .Items == nil || len (headRoutes .Items ) == 0 {
452
449
route , err := common .BuildRouteForHeadService (* instance )
453
450
if err != nil {
454
- logger .Error (err , "Failed building route!" , "Route.Error" , err )
455
451
return err
456
452
}
457
453
@@ -461,7 +457,6 @@ func (r *RayClusterReconciler) reconcileRouteOpenShift(ctx context.Context, inst
461
457
462
458
err = r .createHeadRoute (ctx , route , instance )
463
459
if err != nil {
464
- logger .Error (err , "Failed creating route!" , "Route.Error" , err )
465
460
return err
466
461
}
467
462
}
@@ -925,7 +920,6 @@ func (r *RayClusterReconciler) createHeadIngress(ctx context.Context, ingress *n
925
920
logger .Info ("Ingress already exists, no need to create" )
926
921
return nil
927
922
}
928
- logger .Error (err , "Ingress create error!" , "Ingress.Error" , err )
929
923
return err
930
924
}
931
925
logger .Info ("Ingress created successfully" , "ingress name" , ingress .Name )
@@ -944,7 +938,6 @@ func (r *RayClusterReconciler) createHeadRoute(ctx context.Context, route *route
944
938
logger .Info ("Route already exists, no need to create" )
945
939
return nil
946
940
}
947
- logger .Error (err , "Route create error!" , "Route.Error" , err )
948
941
return err
949
942
}
950
943
logger .Info ("Route created successfully" , "route name" , route .Name )
@@ -967,7 +960,6 @@ func (r *RayClusterReconciler) createService(ctx context.Context, raySvc *corev1
967
960
logger .Info ("Pod service already exist, no need to create" )
968
961
return nil
969
962
}
970
- logger .Error (err , "Pod Service create error!" , "Pod.Service.Error" , err )
971
963
return err
972
964
}
973
965
logger .Info ("Pod Service created successfully" , "service name" , raySvc .Name )
@@ -999,7 +991,6 @@ func (r *RayClusterReconciler) createHeadPod(ctx context.Context, instance rayv1
999
991
// the pod might be in terminating state, we need to check
1000
992
if errPod := r .Get (ctx , podIdentifier , & fetchedPod ); errPod == nil {
1001
993
if fetchedPod .DeletionTimestamp != nil {
1002
- logger .Error (errPod , "create pod error!" , "pod is in a terminating state, we will wait until it is cleaned up" , podIdentifier )
1003
994
return err
1004
995
}
1005
996
}
@@ -1036,13 +1027,11 @@ func (r *RayClusterReconciler) createWorkerPod(ctx context.Context, instance ray
1036
1027
// the pod might be in terminating state, we need to check
1037
1028
if errPod := r .Get (ctx , podIdentifier , & fetchedPod ); errPod == nil {
1038
1029
if fetchedPod .DeletionTimestamp != nil {
1039
- logger .Error (errPod , "create pod error!" , "pod is in a terminating state, we will wait until it is cleaned up" , podIdentifier )
1040
1030
return err
1041
1031
}
1042
1032
}
1043
1033
logger .Info ("Creating pod" , "Pod already exists" , pod .Name )
1044
1034
} else {
1045
- logger .Error (fmt .Errorf ("createWorkerPod error" ), "error creating pod" , "pod" , pod , "err = " , err )
1046
1035
return err
1047
1036
}
1048
1037
}
@@ -1262,7 +1251,6 @@ func (r *RayClusterReconciler) getHeadPodIP(ctx context.Context, instance *rayv1
1262
1251
runtimePods := corev1.PodList {}
1263
1252
filterLabels := client.MatchingLabels {utils .RayClusterLabelKey : instance .Name , utils .RayNodeTypeLabelKey : string (rayv1 .HeadNode )}
1264
1253
if err := r .List (ctx , & runtimePods , client .InNamespace (instance .Namespace ), filterLabels ); err != nil {
1265
- logger .Error (err , "Failed to list pods while getting head pod ip." )
1266
1254
return "" , err
1267
1255
}
1268
1256
if len (runtimePods .Items ) != 1 {
@@ -1366,10 +1354,6 @@ func (r *RayClusterReconciler) reconcileAutoscalerServiceAccount(ctx context.Con
1366
1354
// zero-downtime rolling updates when RayService is performed. See https://github.com/ray-project/kuberay/issues/1123
1367
1355
// for more details.
1368
1356
if instance .Spec .HeadGroupSpec .Template .Spec .ServiceAccountName == namespacedName .Name {
1369
- logger .Error (err , fmt .Sprintf (
1370
- "If users specify ServiceAccountName for the head Pod, they need to create a ServiceAccount themselves. " +
1371
- "However, ServiceAccount %s is not found. Please create one. " +
1372
- "See the PR description of https://github.com/ray-project/kuberay/pull/1128 for more details." , namespacedName .Name ), "ServiceAccount" , namespacedName )
1373
1357
return err
1374
1358
}
1375
1359
@@ -1392,7 +1376,6 @@ func (r *RayClusterReconciler) reconcileAutoscalerServiceAccount(ctx context.Con
1392
1376
logger .Info ("Pod service account already exist, no need to create" )
1393
1377
return nil
1394
1378
}
1395
- logger .Error (err , "Pod Service Account create error!" , "Pod.ServiceAccount.Error" , err )
1396
1379
return err
1397
1380
}
1398
1381
logger .Info ("Pod ServiceAccount created successfully" , "service account name" , serviceAccount .Name )
@@ -1434,7 +1417,6 @@ func (r *RayClusterReconciler) reconcileAutoscalerRole(ctx context.Context, inst
1434
1417
logger .Info ("role already exist, no need to create" )
1435
1418
return nil
1436
1419
}
1437
- logger .Error (err , "Role create error!" , "Role.Error" , err )
1438
1420
return err
1439
1421
}
1440
1422
logger .Info ("Role created successfully" , "role name" , role .Name )
@@ -1476,7 +1458,6 @@ func (r *RayClusterReconciler) reconcileAutoscalerRoleBinding(ctx context.Contex
1476
1458
logger .Info ("role binding already exist, no need to create" )
1477
1459
return nil
1478
1460
}
1479
- logger .Error (err , "Role binding create error!" , "RoleBinding.Error" , err )
1480
1461
return err
1481
1462
}
1482
1463
logger .Info ("RoleBinding created successfully" , "role binding name" , roleBinding .Name )
0 commit comments