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
Describe the bug
When restoring to a VolumeSnapshot created by SnapshotScheduler which has retention defined, you are subject to your VolumeSnapshot being deleted. This results in the PVC having a dangling reference.
Steps to reproduce
Create a snapshot schedule with retention time/count defined.
Create PVC referencing VolumeSnapshot created by schedule
Wait for retention cycle
Observe the actively used VolumeSnapshot is deleted
Expected behavior
VolumeSnapshot should be protected/excluded from retention once it has been referenced.
Actual results
VolumeSnapshot is deleted
Additional context
Current workaround is to delete snapscheduler.backube/when, snapscheduler.backube/schedule labels.
Solution ideas are for operator to detect when it was mounted and permanently exclude that Snapshot, or for a snapscheduler.backube/retention="keep" label to exclude a Snapshot from retention cleanup
The text was updated successfully, but these errors were encountered:
I'm a bit confused about what you believe the problem to be with the current behavior.
When the snapshot name is used in the dataSource field for a PVC, it serves to set the initial contents of the PVC, but once that PVC has been provisioned, the value of the field is meaningless. Why do you believe the associated snapshot should be retained?
BTW, removing snapscheduler.backube/schedule is the correct approach if you want to retain the snapshot.
Describe the bug
When restoring to a VolumeSnapshot created by SnapshotScheduler which has retention defined, you are subject to your VolumeSnapshot being deleted. This results in the PVC having a dangling reference.
Steps to reproduce
Expected behavior
VolumeSnapshot should be protected/excluded from retention once it has been referenced.
Actual results
VolumeSnapshot is deleted
Additional context
Current workaround is to delete
snapscheduler.backube/when
,snapscheduler.backube/schedule
labels.Solution ideas are for operator to detect when it was mounted and permanently exclude that Snapshot, or for a
snapscheduler.backube/retention="keep"
label to exclude a Snapshot from retention cleanupThe text was updated successfully, but these errors were encountered: