Skip to content

Commit 84b7f49

Browse files
authored
Merge pull request #67339 from sbeskin-redhat/OADP_2736_Restoring_to_different_cluster
OADP-2736: Restoring to a different cluster with OADP with STS enabled ROSA
2 parents a5593a7 + bf9651f commit 84b7f49

File tree

2 files changed

+37
-16
lines changed

2 files changed

+37
-16
lines changed

modules/oadp-installing-oadp-rosa-sts.adoc

Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The Data Mover feature is not currently supported in ROSA clusters. You can use
2424

2525
.Prerequisites
2626

27-
* A ROSA OpenShift Cluster with the required access and tokens. For instructions, see the procedure in _Preparing AWS credentials_.
27+
* A {openshift-rosa} cluster with the required access and tokens. For instructions, see the procedure in "Preparing AWS credentials". If you plan to use two different clusters for backing up and restoring, you need to prepare AWS credentials, including `ROLE_ARN`, for each cluster.
2828
2929
3030
.Procedure
@@ -90,7 +90,7 @@ spec:
9090
EOF
9191
----
9292

93-
. Create the `DataProtectionApplication resource`, which is used to configure the connection to the storage where the backups and volume snapshots will be stored:
93+
. Create the `DataProtectionApplication` resource, which is used to configure the connection to the storage where the backups and volume snapshots are stored:
9494
+
9595
[source,terminal]
9696
----
@@ -116,28 +116,49 @@ spec:
116116
defaultPlugins:
117117
- openshift
118118
- aws
119-
restic:
119+
nodeAgent: <1>
120120
enable: false
121+
uploaderType: restic
121122
snapshotLocations:
122123
- velero:
123124
config:
124-
credentialsFile: /tmp/credentials/openshift-adp/cloud-credentials-credentials <1>
125-
enableSharedConfig: "true" <2>
126-
profile: default <3>
127-
region: ${REGION} <4>
125+
credentialsFile: /tmp/credentials/openshift-adp/cloud-credentials-credentials <2>
126+
enableSharedConfig: "true" <3>
127+
profile: default <4>
128+
region: ${REGION} <5>
128129
provider: aws
129130
EOF
130131
----
131-
132-
+
133-
<1> The `credentialsFile` is the mounted location of the bucket credential on the pod.
134-
<2> The `enableSharedConfig` allows the `snapshotLocations` to share or reuse the credential defined for the bucket.
135-
<3> Assume your Velero default for your `profile: default`.
136-
<4> Specify `region` as your AWS region. This must be the same as the cluster region.
132+
<1> See the first note below.
133+
<2> The `credentialsFile` field is the mounted location of the bucket credential on the pod.
134+
<3> The `enableSharedConfig` field allows the `snapshotLocations` to share or reuse the credential defined for the bucket.
135+
<4> Use the profile name set in the AWS credentials file.
136+
<5> Specify `region` as your AWS region. This must be the same as the cluster region.
137137
+
138+
You are now ready to backup and restore OpenShift applications, as described in the link:https://docs.openshift.com/container-platform/4.11/backup_and_restore/application_backup_and_restore/backing_up_and_restoring/backing-up-applications.html[OADP documentation].
139+
138140
[NOTE]
139141
====
140142
The `enable` parameter of `restic` is set to `false` in this configuration because OADP does not support Restic in ROSA environments.
143+
144+
If you are using OADP 1.2, replace this configuration:
145+
[source,terminal]
146+
147+
----
148+
nodeAgent:
149+
enable: false
150+
uploaderType: restic
151+
----
152+
with the following:
153+
154+
[source,terminal]
155+
----
156+
restic:
157+
enable: false
158+
----
141159
====
142-
+
143-
You are now ready to backup and restore OpenShift applications, as described in the link:https://docs.openshift.com/container-platform/4.11/backup_and_restore/application_backup_and_restore/backing_up_and_restoring/backing-up-applications.html[OADP documentation].
160+
161+
[NOTE]
162+
====
163+
If you want to use two different clusters for backing up and restoring, the two clusters must have identical AWS S3 storage names in both the cloudstorage CR and the OADP `DataProtectionApplication` configuration.
164+
====

rosa_backing_up_and_restoring_applications/backing-up-applications.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ include::modules/oadp-installing-oadp-rosa-sts.adoc[leveloffset=+1]
2525
2626
[id="rosa-backing-up-applications-known-issues"]
2727
== Known issues
28-
.Restic is not supported or recommended
28+
.Restic, Kopia, and DataMover are not supported or recommended
2929

3030
* link:https://issues.redhat.com/browse/OADP-1054[CloudStorage: openshift-adp-controller-manager crashloop seg fault with Restic enabled]
3131
* link:https://issues.redhat.com/browse/OADP-1057[Cloudstorage API: CSI Backup of an app with internal images partially fails with plugin panicked error]

0 commit comments

Comments
 (0)