-
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 does not create restic repository from manifest if its directories are deleted on s3 #4421
Comments
According to the code here, seems only the newly created restic repository can be initialized. I reproduced this issue in my environment. Tried to delete the existing resource
Need to do more investigation to check whether this is the expected behavior or not. Any input is welcome. @ishbuldin |
I also reproduce the issue in similar conditions. Any workaround available ? |
if you are talking about how to create directories in s3 If you delete the manifest:
velero will recreate it and recreate directories in the S3 repository it would be better if velero could do it automatically |
Thanks! But, yeah, it would be nice if velero could recreate it automatically. |
@ishbuldin thank you for your workaround. it helped. velero should definitely recreate the restic repos on s3. |
|
This is still happening with |
same for me , any workaround and which crds need to deleted for repo re-initialisation? |
I just faced the same issue (using S3). We should avoid manually deleting the restic folder. Deleting the backup sometimes still leave leftovers in The workaround if you deleted the restic folder in the target repository is to delete the backup repository around it. $ k -n velero delete backuprepositories server-142-sts-default-restic-j94rt
backuprepository.velero.io "server-142-sts-default-restic-j94rt" deleted This fill force the initialisation again. |
What steps did you take and what happened:
There is a configured pod and pvc/pv backup using restic
Backups work, but if you then delete the restic directory in the storage, new backups are broken, without the necessary PV
What did you expect to happen:
Velero must recreate the restic repository in storage according to the
resticrepositories
manifestThe following information will help us better understand what's going on:
velero backup describe velero-chart-mybackup-20211202073328
velero backup logs velero-chart-mybackup-20211202073328
Anything else you would like to add:
If you delete the manifest:
velero will recreate it and recreate directories in the S3 repository
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: