diff --git a/internal/rbd/clone.go b/internal/rbd/clone.go index a0faa468b..701690293 100644 --- a/internal/rbd/clone.go +++ b/internal/rbd/clone.go @@ -98,12 +98,14 @@ func (rv *rbdVolume) checkCloneImage(ctx context.Context, parentVol *rbdVolume) return false, err } - err = tempClone.deleteSnapshot(ctx, snap) - if err != nil { - log.ErrorLog(ctx, "failed to delete snapshot: %v", err) + /* + err = tempClone.deleteSnapshot(ctx, snap) + if err != nil { + log.ErrorLog(ctx, "failed to delete snapshot: %v", err) - return false, err - } + return false, err + } + */ return true, nil } diff --git a/internal/rbd/snapshot.go b/internal/rbd/snapshot.go index bb420475c..38b6f3d9b 100644 --- a/internal/rbd/snapshot.go +++ b/internal/rbd/snapshot.go @@ -53,16 +53,18 @@ func createRBDClone( snap.RbdSnapName, err) } - errSnap := parentVol.deleteSnapshot(ctx, snap) - if errSnap != nil { - log.ErrorLog(ctx, "failed to delete snapshot: %v", errSnap) - delErr := cloneRbdVol.deleteImage(ctx) - if delErr != nil { - log.ErrorLog(ctx, "failed to delete rbd image: %s with error: %v", cloneRbdVol, delErr) - } + /* + errSnap := parentVol.deleteSnapshot(ctx, snap) + if errSnap != nil { + log.ErrorLog(ctx, "failed to delete snapshot: %v", errSnap) + delErr := cloneRbdVol.deleteImage(ctx) + if delErr != nil { + log.ErrorLog(ctx, "failed to delete rbd image: %s with error: %v", cloneRbdVol, delErr) + } - return err - } + return err + } + */ return nil }