-
Sub-task
-
Resolution: Done
-
Undefined
-
None
-
None
-
2
-
False
-
-
False
-
Passed
-
-
-
0
-
Very Likely
-
0
-
None
-
Unset
-
Unknown
Description of problem:
When there is a completed pod that mounted volumes in a namespace covered by restic (podvolumebackup) velero backup, backup will not complete successfully.
Occurs when defaultVolumesToFsBackup is `true`
OADP-1075 contain info on documentation based workaround which applies when OADP-1870 is not yet resolved.
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. Create a pod that runs to completion and has volumeMounts
2. Create velero restic backup
Actual results:
PodVolumeBackup fails
Expected results:
Backup complete successfully
Additional info:
Verified with OADP 1.2.5 from stage build.
1. Deployed application consisting a pod with status completed and has a pvc attached to it.
$ oc get pvc -n test NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE pvc-for-data Bound pvc-435456e0-9874-4f7b-a6bb-e01ca2db4264 1Gi RWO standard-csi 16m
2. Created DPA with restic enabled.
3. Backed up test namespace via Restic.
$ velero describe backup test-backup -n openshift-adp --details Namespaces: test: resource: /pods name: /data-generation-job-4pgqr error: /backup for volume volume is skipped: pod is not in the expected status, name=data-generation-job-4pgqr, namespace=test, phase=Succeeded: pod is not running
Verified that the backup completed successfully. Moving this to verified status.