Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 0743c4c

Browse files
fix vsc backup plugin progress method to not fail on temporary errors
1 parent 763d3dc commit 0743c4c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/backup/volumesnapshotcontent_action.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,11 @@ func (p *VolumeSnapshotContentBackupItemAction) Progress(operationID string, bac
153153
if boolptr.IsSetToTrue(vsc.Status.ReadyToUse) {
154154
progress.Completed = true
155155
} else if vsc.Status.Error != nil {
156-
progress.Completed = true
156+
errorMessage := ""
157157
if vsc.Status.Error.Message != nil {
158-
progress.Err = *vsc.Status.Error.Message
158+
errorMessage = *vsc.Status.Error.Message
159159
}
160+
p.Log.Warnf("VolumeSnapshotContent has a temporary error %s. SnapshotContent controller will retry later.", errorMessage)
160161
}
161162

162163
return progress, nil

0 commit comments

Comments
 (0)