mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
OCPBUGS-63711: Remove pending items on gcp no-op
The GCP Destroy process should remove pending items when a no-op error has occurred. Currently the process is to warn the user, but the items should be removed from the list of pending items to be deleted otherwise it will hold up the deprovision process indefinitely.
This commit is contained in:
@@ -448,11 +448,12 @@ func (o *ClusterUninstaller) handleOperation(ctx context.Context, op *compute.Op
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
o.resetRequestID(identifier...)
|
||||
if isNoOp(err) {
|
||||
o.Logger.Debugf("No operation found for %s %s", resourceType, item.name)
|
||||
o.deletePendingItems(item.typeName, []cloudResource{item})
|
||||
return nil
|
||||
}
|
||||
o.resetRequestID(identifier...)
|
||||
return fmt.Errorf("failed to delete %s %s: %w", resourceType, item.name, err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user