-
Bug
-
Resolution: Done
-
Normal
-
OADP 1.0.3
-
False
-
-
False
-
ToDo
-
0
-
0
-
0
-
None
Description of problem: On GCP cluster, When attempting to snapshot a volume using velero-native snapshots (VSL) with PVs on CSI driver, the backup PartiallyFails with the following error complaining about missing zone:
[mperetz@mperetz oadp-e2e-qe]$ velero backup logs -n openshift-adp backup2 | grep error time="2022-04-05T15:54:48Z" level=info msg="1 errors encountered backup up item" backup=openshift-adp/backup2 logSource="pkg/backup/backup.go:431" name=mysql-78967d75db-nvgfn time="2022-04-05T15:54:48Z" level=error msg="Error backing up item" backup=openshift-adp/backup2 error="error getting volume info: rpc error: code = Unknown desc = googleapi: Error 400: Invalid value for field 'zone': ''. Must be a match of regex '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?', invalid" logSource="pkg/backup/backup.go:435" name=mysql-78967d75db-nvgfn
However, with CSI snapshots it succeeds and seems like it's able to get the correct zone:
Version-Release number of selected component (if applicable): 1.02
How reproducible: Always
Steps to reproduce:
1. Deploy an application with PVs on CSI driver:
storageclass.storage.k8s.io/standard-csi annotated [mperetz@mperetz oadp-e2e-qe]$ oc get pvc -n django-ns NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE postgresql Bound pvc-e05aae86-ae7b-4ad3-b519-980bc895a1c2 1Gi RWO standard-csi 36m [mperetz@mperetz oadp-e2e-qe]$
2. Create a VSL and a backup using that VSL to snapshot.
Expected result: Expecting to be able to use VSL snapshots for PVs on CSI driver.