-
Task
-
Resolution: Done
-
Normal
-
None
-
ACM 2.8.0, ACM 2.7.0
-
False
-
None
-
False
-
-
-
No
This is a known issue
It is an issue with OADP 1.1.2 which is used by ACM backup; so not a bug with the ACM backup but affecting ACM backup and restore
related to
https://issues.redhat.com/browse/OADP-1511
Title for known issue :
OADP 1.1.2 BackupSchedule gets into a FailedValidation status when using OADP 1.1.2 or above
Content:
Problem description:
You enable the backup and restore ACM component and successfully create a DataProtectionApplication resource, which creates a BackupStorageLocation resource with a status of Available
You create a BackupSchedule resource and the status goes into FailedValidation, with the following message:
oc get backupschedule -n open-cluster-management-backup
NAME PHASE MESSAGE
rosa-backup-schedule FailedValidation Backup storage location is not available. Check velero.io.BackupStorageLocation and validate storage credentials.
Issue:
The BackupStorageLocation resource has no ownerReference. It should be the DataProtectionApplication resource as the ownerReference
Workaround:
To workaround the problem, manually add this ownerReference to the BackupStorageLocation:
- Edit replicas from 1 to 0 in OADP operator CSV
oc edit csv -n open-cluster-management-backup
oadp-operator.v1.1.2
- Patch ownerReference annotations on the BSL as below
- Turn back the oadp-operator.v1.1.2 replica to 1 for normal processing of dpa
metadata:
resourceVersion: '273482'
name: dpa-sample-1
uid: 4701599a-cdf5-48ac-9264-695a95b935a0
namespace: open-cluster-management-backup
ownerReferences: <<
- apiVersion: oadp.openshift.io/v1alpha1
blockOwnerDeletion: true
controller: true
kind: DataProtectionApplication
name: dpa-sample
uid: 52acd151-52fd-440a-a846-95a0d7368ff7