OADP failed to restore PV using restic
Issue
PVrestore failed with restoring pv withrestic.nodeagentpod log shows below error:
$ oc logs node-agent-xxx -n openshift-adp
....
2023-11-20T03:07:23.598346892Z time="2023-11-20T03:07:23Z" level=info msg="Run command=restore, stdout=restoring <Snapshot 0e9f0344 of [mount_path] at 2023-11-20 02:54:50.009211932 +0000 UTC by root@velero> to .\n, stderr=ignoring error for /aa.txt: lchown /host_pods/171b6dd7-b6db-4c6a-9caf-0b4ed3f5e79f/volumes/kubernetes.io~nfs/pvc-eb0866bb-b230-416b-85c9-97debd777b73/aa.txt: operation not permitted\nFatal: There were 1 errors\n\n" PodVolumeRestore=openshift-adp/<pod_volume_restore> controller=PodVolumeRestore logSource="/remote-source/velero/app/pkg/uploader/provider/restic.go:184" pod=nginx-example/<pod_name> restore=openshift-adp/<PVC_name> snapshotID=0e9f0344 volumePath="/host_pods/171b6dd7-b6db-4c6a-9caf-0b4ed3f5e79f/volumes/kubernetes.io~nfs/pvc-eb0866bb-b230-416b-85c9-97debd777b73"
....
Environment
- Red Hat OpenShift Container Platform(RHOCP)
- 4.x
- OADP operator
- 1.2.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.