-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataMover: Cloned VolumeSnapshotContent remains in cluster when vsclass deletionPolicy set as Retain #6786
Comments
When VSclass deletionPolicy is set as Delete in that case volumesnapshotcontents gets removed during the backup process. |
@PrasadJoshi12 |
@Lyndon-Li so users have to manually clean it up after backup is expired or removed ? |
Velero will not use it after the backup completes, so users are free to keep or clean it. |
ack. Thank you so much. |
I think it would make sense to label on backup deletion at least that the backup associated has already been deleted. |
I think it's more consistent that we remove this vsc when backup is deleted. |
+1 prior behavior of velero cleaning up of resources resulting from a backup upon backup deletion is preferred |
Then let's remove the VSC after backup completes all the time. |
Fixed in Main branch. Will cherry pick to 1.12 branch after 1.12.0 is release. So let's keep the issue open. |
What steps did you take and what happened:
Created a backup with snapshotMoveData set as true. Backup was completed successfully.
Deleted backup resource.
$ velero delete backup test-backup -n openshift-adp
Cloned VolumesnapshotContent remains in cluster even though the backup is removed.
Vsclass yaml
What did you expect to happen:
When backup is removed it should also remove all the associated volumesnapshotContents.
The following information will help us better understand what's going on:
If you are using velero v1.7.0+:
Please use
velero debug --backup <backupname> --restore <restorename>
to generate the support bundle, and attach to this issue, more options please refer tovelero debug --help
If you are using earlier versions:
Please provide the output of the following commands (Pasting long output into a GitHub gist or other pastebin is fine.)
kubectl logs deployment/velero -n velero
velero backup describe <backupname>
orkubectl get backup/<backupname> -n velero -o yaml
velero backup logs <backupname>
velero restore describe <restorename>
orkubectl get restore/<restorename> -n velero -o yaml
velero restore logs <restorename>
Anything else you would like to add:
Environment:
velero version
):velero client config get features
):kubectl version
):/etc/os-release
):Vote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.
The text was updated successfully, but these errors were encountered: