OADP cannot sync backup into the cluster
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4.12
- OpenShift API for Data Protection
- 1.2.1
Issue
- Backup is created but does not sync with the
Attempting to sync backup into cluster
message in the Velero logs.
Resolution
UseOwnerReferencesBackup
specifies whether to useOwnerReferences
on backups created by this schedule.-
Add
useOwnerReferencesInBackup: true
in the back-up CRD YAML as shown below.$ oc edit backup <backup-name> -n openshift-adp storageLocation: velero-1 ttl: 336h0m0s useOwnerReferencesInBackup: true <-------------
Root Cause
The application changes to OutOfSync
if the backup is linked to the schedule, the situation remains Synced.
Diagnostic Steps
-
Check for the
Attempting to sync backup into cluster
andFound 3 backups in the backup location that do not exist in the cluster and need to be synced
messages in the Velero logs:$ oc logs <velero-pod-name> -n openshift-adp time="20XX-XX-XXT19:22:ZZZ" level=info msg="Attempting to sync backup into cluster" backup=backup-secrets-14- 202020202021 backupLocation=openshift-adp/velero-1 controller=backup-sync logSource="/remote- source/velero/app/pkg/controller/backup_sync_controller.go:143"
-
The backups are not shown:
$ oc get backups -n openshift-adp No resources found in openshift-adp namespace.
-
Check for the below error in the logs.
error message: error="backups.velero.io \"backup-secrets-14-202020202021\" not found"
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments