-
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
Backup persistence volume is not working in minikube with volumesnapshots and csi-hostpath-driver addons installed #8565
Comments
The
I'm not sure whether host path CSI driver support that or not, could you double check whether host path CSI driver supporting creating the |
The problem is this: when create the backup, velero not create the volume snaphot from backup when execute the backup command like this:
Executing this command any volume snapshot exist:
So later, when try to restore the backup, velero restore the kubernetes resources ok, but when try to restore the persistence volume from the volume snapshot content called velero-avib-mongodb-spmdc-v6wj7 (where is this volume snapshot content?, velero not create any volume snapshot as I explain), this not exist because never was created from velero in the backup process. My CSI driver called csi-hostpath-driver support create volume snapshots because you see that executing this volume snapshot from kubectl works ok, but from velero not. I followed your documentation These are backup logs related to the volume snapshot called default/velero-avib-mongodb-4j96s never created. Do you watch some special?
So what is the problem?, why from kubectl I can create volume snaphots and from velero is not possible using the same storage class?, is a bad configuration or is a bug? |
Is the backup completed successfully? |
What steps did you take and what happened:
The addons are running ok
MongoDB is running ok with the PVC with storageClass with this value csi-hostpath-sc
The minio tenant is deploying using the mini operator ok.
The velero is deployed like this:
velero is running ok
Create some documents in mongo to backup
Create a backup like this:
The restore fail. All resources are created but the PV not.
Where is the issue??**
Attached backup logs
avib-mongodb-logs.gz
Attached restore logs
restore-avib-mongodb-20241230184208-logs.gz
What did you expect to happen:
Backup the kubernetes resources and restore all resources and PV.
The following information will help us better understand what's going on:
Some velero-avib-mongodb-spmdc logs inside the backup and restore logs related to the VolumeSnapshot, but I don't see anything wrong to be honest.
If I deploy the snapshot by me it works ok, but the snapshot created by velero not:
list the snapshots. You see the velero-avib-mongodb-spmdc snapshot created by velero failed:
Environment:
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: