-
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
Velero backup deletion is not deleting objects in kopia repository #8768
Comments
For the old snapshots in 2024, could you confirm below questions:
Please also collect the podVolumeBackup CR list existing in the cluster. |
Hi, Many thanks for the fast response.
Output of command: kubectl -n velero get podVolumeBackup |
What do you mean by "host command"? |
When did you reinstall Velero? Do all the leaked repo snapshots belong to PVBs of the previous namespace? |
I changed the namespace to ‘backup’ on Oct 2 2024 and changed it back on Jan 14 2025. There are two backups in velero currently from Jan 1.
So some of the backups for the previous namespace were synced to the new namespace. All of the ‘orphan’ kopia snapshots belong to the early installs either with the ‘velero’ or ‘backup’ ns. Unfortunately I can’t remember if the velero backups for those earlier backups were deleted manually or by velero. By host command, I just meant the velero cli that I run on the host to talk to the k8s instance. |
Right now, it is hard to back track the PVBs and repo snapshots. For now, I suggest you monitor the environment for some more time WITHOUT changing the installation namespace, to see if the problem still reproduce. |
In future, we have an enhancement of not relying on the existence of PVBs on repo snapshot manipulations (see #8763), which may be helpful to avoid this kind of problem. |
Thanks. Is it safe to use kopia to delete the orphan snapshots or do I need to clear down the repo? I do have a set of cloud backups in Idrive that does not seem to have this issue so losing the local mini repo would not be the end of the world. |
Yes, you can delete the orphan repo snapshots through kopia command. Just be reminded that the corresponding backup data will lose once you delete the snapshots. |
What steps did you take and what happened:
I've been running Velero and Kopia for some time now, and have noticed that there seems to be an increasing number of snapshots in the Kopia repository.
If I look at the Velero backups my old backup is from Feb 9th 2025, however my oldest Kopia snapshot is from April 7th 2024!
It is strange, that whilst there are many old snapshots, recent act
I've looked and it seems like Kopia maintanance is being run.
What did you expect to happen:
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>
As this issue is not to do with indivudly backups I have not included this information. Hopefully, this is more relevant:
Output of velero backup list:
velero_backup_get.txt
Output of command: kopia repo status
kopia_repo_status.txt
Output of command: kopia maintenance info --json
kopia_maintenance_info_--json.txt
Output of command: kopia snapshot list --all
kopia_snapshot_list_--all.txt
Output of command: kopia content stats
kopia_content_stats.txt
Output of command: kopia blob stats
kopia_blob_stats.txt
Output of command: kopia index list --json
kopia_index_list_--json.txt
Output of command: kopia content list --deleted-only
kopia_content_list_--deleted-only.txt
Output of command: kopia index epoch list
kopia_index_epoch_list.txt
Anything else you would like to add:
Environment:
velero version
):velero client config get features
):features: <NOT SET>
kubectl version
):I use a combination of local Minio and idrivee2 s3
/etc/os-release
):PRETTY_NAME="Ubuntu 24.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.2 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
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: