CSI backups #8655
Replies: 1 comment 1 reply
-
`time="2025-01-27T10:00:03Z" level=info msg="Unable to handle CSI driver: blockvolume.csi.oraclecloud.com" backup=velero/yo cmd=/plugins/velero-plugin-for-aws logSource="/go/src/velero-plugin-for-aws/velero-plugin-for-aws/volume_snapshotter.go:269" pluginName=velero-plugin-for-aws time="2025-01-27T10:00:03Z" level=warning msg="No volume ID returned by volume snapshotter for persistent volume" backup=velero/yo logSource="pkg/backup/item_backupper.go:641" name=csi-fac3e121-5ac4-48ed-bbbb-82fa215e3c32 namespace= persistentVolume=csi-fac3e121-5ac4-48ed-bbbb-82fa215e3c32 resource=persistentvolumes volumeSnapshotLocation=default time="2025-01-27T10:00:03Z" level=info msg="Persistent volume is not a supported volume type for Velero-native volumeSnapshotter snapshot, skipping." backup=velero/yo logSource="pkg/backup/item_backupper.go:653" name=csi-fac3e121-5ac4-48ed-bbbb-82fa215e3c32 namespace= persistentVolume=csi-fac3e121-5ac4-48ed-bbbb-82fa215e3c32 resource=persistentvolumes time="2025-01-27T10:00:03Z" level=info msg="Executing custom action" backup=velero/yo logSource="pkg/backup/item_backupper.go:357" name=mynginxclaim namespace=test resource=persistentvolumeclaims time="2025-01-27T10:00:03Z" level=info msg="Skip action velero.io/csi-pvc-backupper for resource But my user supplied values : CSI is well activated. |
Beta Was this translation helpful? Give feedback.
-
Hi i tried the CSI method to backup my volumes. I'm running on oracle oci cluster. First i deployed my snapshot class :
apiVersion: snapshot.storage.k8s.io/v1 kind: VolumeSnapshotClass metadata: name: oci-snapclass labels: velero.io/csi-volumesnapshot-class: "true" driver: blockvolume.csi.oraclecloud.com parameters: backupType: full deletionPolicy: Delete
Then i deployed velero and a pod with a pvc :
helm install velero vmware-tanzu/velero --namespace velero --create-namespace --set-file credentials.secretContents.cloud=cred --set configuration.backupStorageLocation[0].provider=aws --set configuration.backupStorageLocation[0].bucket=dng-backup-test --set configuration.backupStorageLocation[0].config.region=eu-central-1 --set features=EnableCSI --set deployNodeAgent=true --set configuration.volumeSnapshotLocation[0].provider=aws --set configuration.volumeSnapshotLocation[0].config.region=eu-central-1 --set initContainers[0].name=velero-plugin-for-aws --set initContainers[0].image=velero/velero-plugin-for-aws:v1.10.0 --set initContainers[0].volumeMounts[0].mountPath=/target --set initContainers[0].volumeMounts[0].name=plugins
But when i'm describing the backup i got this :
`Name: test
Namespace: velero
Labels: velero.io/storage-location=default
Annotations: kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"velero.io/v1","kind":"Backup","metadata":{"annotations":{},"name":"test","namespace":"velero"},"spec":{"includedNamespaces":["test"]}}
velero.io/resource-timeout=10m0s
velero.io/source-cluster-k8s-gitversion=v1.29.1
velero.io/source-cluster-k8s-major-version=1
velero.io/source-cluster-k8s-minor-version=29
Phase: Completed
Warnings:
Velero:
Cluster: resource: /persistentvolumes name: /csi-fac3e121-5ac4-48ed-bbbb-82fa215e3c32 message: /No volume ID returned by volume snapshotter for persistent volume
Namespaces:
Namespaces:
Included: test
Excluded:
Resources:
Included: *
Excluded:
Cluster-scoped: auto
Label selector:
Or label selector:
Storage Location: default
Velero-Native Snapshot PVs: auto
Snapshot Move Data: false
Data Mover: velero
TTL: 720h0m0s
CSISnapshotTimeout: 10m0s
ItemOperationTimeout: 4h0m0s
Hooks:
Backup Format Version: 1.1.0
Started: 2025-01-27 09:29:16 +0000 UTC
Completed: 2025-01-27 09:29:18 +0000 UTC
Expiration: 2025-02-26 09:29:16 +0000 UTC
Total items to be backed up: 26
Items backed up: 26
Backup Volumes:
Velero-Native Snapshots:
CSI Snapshots:
Pod Volume Backups:
HooksAttempted: 0
HooksFailed: 0`
I tried volumesnapshot manually just to check if it worked and yeah it worked.
Can anyone can help me please ?
Beta Was this translation helpful? Give feedback.
All reactions