Skip to content

Commit cb2dd6c

Browse files
committed
4.15 - OADP-5354: Backup is failing on validation PartiallyFailed
Signed-off-by: A.Arnold <[email protected]>
1 parent 793e66c commit cb2dd6c

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

cloud_experts_tutorials/cloud-experts-deploy-api-data-protection.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,13 @@ $ cat <<EOF > ${SCRATCH}/credentials
160160
[default]
161161
role_arn = ${ROLE_ARN}
162162
web_identity_token_file = /var/run/secrets/openshift/serviceaccount/token
163+
region=<aws_region> # <1>
163164
EOF
164165
$ oc -n openshift-adp create secret generic cloud-credentials \
165166
--from-file=${SCRATCH}/credentials
166167
----
167-
168+
+
169+
<1> Replace `<aws_region>` with the AWS region to use for the {sts-first} endpoint.
168170
. Deploy the OADP Operator:
169171
+
170172
[NOTE]
@@ -606,4 +608,4 @@ $ aws iam detach-role-policy --role-name "${ROLE_NAME}" \
606608
[source,terminal]
607609
----
608610
$ aws iam delete-role --role-name "${ROLE_NAME}"
609-
----
611+
----

modules/installing-oadp-rosa-sts.adoc

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ $ cat <<EOF > ${SCRATCH}/credentials
4646
[default]
4747
role_arn = ${ROLE_ARN}
4848
web_identity_token_file = /var/run/secrets/openshift/serviceaccount/token
49+
region = <aws_region> # <1>
4950
EOF
5051
----
51-
52+
<1> Replace `<aws_region>` with the AWS region to use for the {sts-short} endpoint.
5253
.. Create a namespace for OADP:
5354
+
5455
[source,terminal]
@@ -162,7 +163,7 @@ $ cat << EOF | oc create -f -
162163
name: ${CLUSTER_NAME}-dpa
163164
namespace: openshift-adp
164165
spec:
165-
backupImages: true <1>
166+
backupImages: true # <1>
166167
features:
167168
dataMover:
168169
enable: false
@@ -183,12 +184,14 @@ $ cat << EOF | oc create -f -
183184
- openshift
184185
- aws
185186
- csi
186-
restic:
187+
nodeAgent: # <2>
187188
enable: false
189+
uploaderType: kopia # <3>
188190
EOF
189191
----
190192
<1> ROSA supports internal image backup. Set this field to `false` if you do not want to use image backup.
191-
193+
<2> See the important note regarding the `nodeAgent` attribute.
194+
<3> The type of uploader. The possible values are `restic` or `kopia`. The built-in Data Mover uses Kopia as the default uploader mechanism regardless of the value of the `uploaderType` field.
192195
// . Create the `DataProtectionApplication` resource, which is used to configure the connection to the storage where the backups and volume snapshots are stored:
193196

194197
.. If you are using CSI or non-CSI volumes, deploy a Data Protection Application by entering the following command:
@@ -202,7 +205,7 @@ $ cat << EOF | oc create -f -
202205
name: ${CLUSTER_NAME}-dpa
203206
namespace: openshift-adp
204207
spec:
205-
backupImages: true <1>
208+
backupImages: true # <1>
206209
features:
207210
dataMover:
208211
enable: false
@@ -222,16 +225,16 @@ $ cat << EOF | oc create -f -
222225
defaultPlugins:
223226
- openshift
224227
- aws
225-
nodeAgent: <2>
228+
nodeAgent: # <2>
226229
enable: false
227230
uploaderType: restic
228231
snapshotLocations:
229232
- velero:
230233
config:
231-
credentialsFile: /tmp/credentials/openshift-adp/cloud-credentials-credentials <3>
232-
enableSharedConfig: "true" <4>
233-
profile: default <5>
234-
region: ${REGION} <6>
234+
credentialsFile: /tmp/credentials/openshift-adp/cloud-credentials-credentials # <3>
235+
enableSharedConfig: "true" # <4>
236+
profile: default # <5>
237+
region: ${REGION} # <6>
235238
provider: aws
236239
EOF
237240
----
@@ -266,4 +269,3 @@ restic:
266269
====
267270

268271
If you want to use two different clusters for backing up and restoring, the two clusters must have the same {aws-short} S3 storage names in both the cloud storage CR and the OADP `DataProtectionApplication` configuration.
269-

0 commit comments

Comments
 (0)