Remove the WaitUntilVSCHandleIsReady from vs BIA.

Becasue the pvc BIA already run WaitUntilVSCHandleIsReady,
no need to do the same work in vs BIA.

Signed-off-by: Xun Jiang <xun.jiang@broadcom.com>
This commit is contained in:
Xun Jiang
2025-07-29 17:13:42 +08:00
parent 458e01be0f
commit c84aab7f6f
4 changed files with 86 additions and 6 deletions

View File

@@ -108,12 +108,9 @@ func (p *volumeSnapshotBackupItemAction) Execute(
p.log.Infof("Getting VolumesnapshotContent for Volumesnapshot %s/%s",
vs.Namespace, vs.Name)
vsc, err := csi.WaitUntilVSCHandleIsReady(
vs,
p.crClient,
p.log,
backup.Spec.CSISnapshotTimeout.Duration,
)
ctx := context.TODO()
vsc, err := csi.GetVSCForVS(ctx, vs, p.crClient)
if err != nil {
csi.CleanupVolumeSnapshot(vs, p.crClient, p.log)
return nil, nil, "", nil, errors.WithStack(err)