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
oc.logger.Infof("Orphan instance %v is scheduled back to current node %v. Skip cleaning up the instance resource and finalize the orphan CR.", instance, orphan.Spec.NodeID)
424
-
returntrue, nil
424
+
returntrue
425
425
}
426
426
427
+
// If the instance manager client is unavailable or failed to delete the instance, continue finalizing the orphan.
428
+
// Later if the orphaned instance is still reachable, the orphan will be recreated.
returnfalse, errors.Wrapf(err, "failed to get running instance manager client for orphan %v", orphan.Name)
431
+
oc.logger.WithError(err).Warnf("Failed to delete orphan instance %v due to instance manager client initialization failure. Continue to finalize orphan %v", instance, orphan.Name)
oc.logger.WithError(err).Warnf("Failed to delete orphan instance %v due to instance manager client error. Continue to finalize orphan %v", instance, orphan.Name)
oc.logger.Infof("Orphan instance %v cleanup in progress", instance)
448
+
switch {
449
+
casecleanupErr!=nil:
450
+
oc.logger.WithError(err).Warnf("Failed to confirm deletion of orphan instance %v due to instance manager client error. Continue to finalize orphan %v", instance, orphan.Name)
451
+
returntrue
452
+
case!isCleanupComplete:
453
+
oc.logger.Infof("Orphan instance %v cleanup in progress, waiting for instance state update", instance)
0 commit comments