-
Sub-task
-
Resolution: Done
-
Undefined
-
None
-
None
-
2
-
False
-
-
False
-
ToDo
-
-
-
0
-
0.000
-
Very Likely
-
0
-
None
-
Unset
-
Unknown
Description of problem:
DPA complains about key cloud not found in the secret. This happens with ROSA cluster when VSL spec is specified. It works fine without VSL spec.
Version-Release number of selected component (if applicable):
OADP 1.4.2-16
How reproducible:
Always
Steps to Reproduce:
1. Install OADP operator with ROLE_ARN
2. Create cloudStorage CR
$ oc get cloudstorage oadpbucketrosa -o yaml apiVersion: oadp.openshift.io/v1alpha1 kind: CloudStorage metadata: creationTimestamp: "2025-01-09T12:32:17Z" finalizers: - oadp.openshift.io/bucket-protection generation: 1 name: oadpbucketrosa namespace: openshift-adp resourceVersion: "344984" uid: 886d930d-36e6-4acf-a59b-6ff709dc9b3a spec: creationSecret: key: credentials name: cloud-credentials enableSharedConfig: true name: oadprosa2001dvkng provider: aws region: us-east-1 status: lastSyncTimestamp: "2025-01-09T12:32:18Z" name: oadprosa2001dvkng
3. Create DPA with VSL
$ oc get dpa ts-dpa -o yaml apiVersion: oadp.openshift.io/v1alpha1 kind: DataProtectionApplication metadata: creationTimestamp: "2025-01-09T12:32:30Z" generation: 2 name: ts-dpa namespace: openshift-adp resourceVersion: "345373" uid: f72cdd84-6b6e-40e8-a4e2-9a4dc840ecf5 spec: backupLocations: - bucket: cloudStorageRef: name: oadpbucketrosa config: region: us-east-1 credential: key: credentials name: cloud-credentials default: true prefix: velero configuration: velero: defaultPlugins: - openshift - aws snapshotLocations: - velero: config: credentialsFile: /tmp/credentials/openshift-adp/cloud-credentials-credentials enableSharedConfig: "true" profile: default region: us-east-1 provider: aws status: conditions: - lastTransitionTime: "2025-01-09T12:32:30Z" message: Secret name cloud-credentials is missing data for key cloud reason: Error status: "False" type: Reconciled
Actual results:
DPA fails with error secret not found when VSL spec if specified
Expected results:
DPA should reconcile successfully without any error.
Additional info: