Skip to content

Commit 3c24e84

Browse files
Merge pull request #71474 from CarmiWisemon/oadp3306-vclass-deletionpolicy-removed
OADP 3306- VolumeSnapshoClass-deletion policy-retain removed
2 parents 4340a62 + c6c6fd5 commit 3c24e84

10 files changed

+76
-21
lines changed

backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-backing-up-pvs-csi-doc.adoc

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,24 @@ For more information, see xref:../../../backup_and_restore/application_backup_an
1919

2020
* Add the `metadata.labels.velero.io/csi-volumesnapshot-class: "true"` key-value pair to the `VolumeSnapshotClass` CR:
2121
+
22+
.Example configuration file
2223
[source,yaml,subs="attributes+"]
2324
----
2425
apiVersion: snapshot.storage.k8s.io/v1
2526
kind: VolumeSnapshotClass
2627
metadata:
2728
name: <volume_snapshot_class_name>
2829
labels:
29-
velero.io/csi-volumesnapshot-class: "true"
30+
velero.io/csi-volumesnapshot-class: "true" <1>
31+
annotations:
32+
snapshot.storage.kubernetes.io/is-default-class: true <2>
3033
driver: <csi_driver>
31-
deletionPolicy: Retain
34+
deletionPolicy: <deletion_policy_type> <3>
3235
----
36+
<1> Must be set to `true`.
37+
<2> Must be set to `true`.
38+
<3> OADP supports the `Retain` and `Delete` deletion policy types for CSI and Data Mover backup and restore. For the OADP 1.2 Data Mover, set the deletion policy type to `Retain`.
3339
34-
You can now create a `Backup` CR.
40+
.Next steps
41+
42+
* You can now create a `Backup` CR.

backup_and_restore/application_backup_and_restore/installing/oadp-12-data-mover-ceph-doc.adoc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1+
:_mod-docs-content-type: ASSEMBLY
12
[id="oadp-12-data-mover-ceph-doc"]
23
= Using OADP 1.2 Data Mover with Ceph storage
34
include::_attributes/common-attributes.adoc[]
45
:context: backing-up-applications
56

67
toc::[]
78

8-
You can use OADP 1.2 Data Mover to backup and restore application data for clusters that use CephFS, CephRBD, or both.
9+
You can use OADP 1.2 Data Mover to back up and restore application data for clusters that use CephFS, CephRBD, or both.
910

1011
OADP 1.2 Data Mover leverages Ceph features that support large-scale environments. One of these is the shallow copy method, which is available for {product-title} 4.12 and later. This feature supports backing up and restoring `StorageClass` and `AccessMode` resources other than what is found on the source persistent volume claim (PVC).
1112

1213
[IMPORTANT]
1314
====
14-
The CephFS shallow copy feature is a back up feature. It is not part of restore operations.
15+
The CephFS shallow copy feature is a backup feature. It is not part of restore operations.
1516
====
1617

1718
include::modules/oadp-ceph-prerequisites.adoc[leveloffset=+1]
@@ -45,7 +46,7 @@ include::modules/oadp-ceph-cephfs-restore.adoc[leveloffset=+2]
4546
[id="oadp-ceph-split"]
4647
== Backing up and restoring data using OADP 1.2 Data Mover and split volumes (CephFS and Ceph RBD)
4748

48-
You can use OpenShift API for Data Protection (OADP) 1.2 Data Mover to back up and restore data in an environment that has _split volumes_, that is, an environment that uses both CephFS and CephRBD.
49+
You can use OpenShift API for Data Protection (OADP) 1.2 Data Mover to backup and restore data in an environment that has _split volumes_, that is, an environment that uses both CephFS and CephRBD.
4950

5051
include::snippets/oadp-ceph-cr-prerequisites.adoc[]
5152

@@ -60,3 +61,5 @@ include::modules/oadp-ceph-cephfs-restore.adoc[leveloffset=+2]
6061
:context: !split
6162

6263
:context: backing-up-applications
64+
65+
include::modules/oadp-deletion-policy-1-2.adoc[leveloffset=+1]

backup_and_restore/application_backup_and_restore/installing/oadp-backup-restore-csi-snapshots.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ include::modules/oadp-1-3-backing-csi-snapshots.adoc[leveloffset=+1]
1212

1313
include::modules/oadp-1-3-restoring-csi-snapshots.adoc[leveloffset=+1]
1414

15-
16-
15+
include::modules/oadp-deletion-policy-1-3.adoc[leveloffset=+1]

modules/oadp-backing-up-pvs-csi.adoc

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,24 @@ You back up persistent volumes with Container Storage Interface (CSI) snapshots
1818

1919
* Add the `metadata.labels.velero.io/csi-volumesnapshot-class: "true"` key-value pair to the `VolumeSnapshotClass` CR:
2020
+
21+
.Example configuration file
2122
[source,yaml,subs="attributes+"]
2223
----
2324
apiVersion: snapshot.storage.k8s.io/v1
2425
kind: VolumeSnapshotClass
2526
metadata:
2627
name: <volume_snapshot_class_name>
2728
labels:
28-
velero.io/csi-volumesnapshot-class: "true"
29+
velero.io/csi-volumesnapshot-class: "true" <1>
30+
annotations:
31+
snapshot.storage.kubernetes.io/is-default-class: true <2>
2932
driver: <csi_driver>
30-
deletionPolicy: Retain
33+
deletionPolicy: <deletion_policy_type> <3>
3134
----
35+
<1> Must be set to `true`.
36+
<2> Must be set to `true`.
37+
<3> OADP supports the `Retain` and `Delete` deletion policy types for CSI and Data Mover backup and restore. For the OADP 1.2 Data Mover, set the deletion policy type to `Retain`.
3238
33-
You can now create a `Backup` CR.
39+
.Next steps
40+
41+
* You can now create a `Backup` CR.

modules/oadp-ceph-cephfs-back-up-dba.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You must create a Data Protection Application (DPA) CR before you use the OpenSh
1010

1111
.Procedure
1212

13-
. Verify that the `deletionPolicy` field of the `VolumeSnapshotClass` CR is set to `Retain` by running the following command:
13+
. For the OADP 1.2 Data Mover, you must verify that the `deletionPolicy` field of the `VolumeSnapshotClass` CR is set to `Retain` by running the following command:
1414
+
1515
[source,terminal]
1616
----
@@ -55,8 +55,8 @@ spec:
5555
objectStorage:
5656
bucket: <my_bucket>
5757
prefix: velero
58-
provider: aws
59-
configuration:
58+
provider: aws
59+
configuration:
6060
restic:
6161
enable: false <1>
6262
velero:
@@ -65,7 +65,7 @@ spec:
6565
- aws
6666
- csi
6767
- vsm
68-
features:
68+
features:
6969
dataMover:
7070
credentialName: <restic_secret_name> <2>
7171
enable: true <3>

modules/oadp-ceph-preparing-cephfs-crs.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ When you install {rh-storage-first}, it automatically creates a default CephFS `
1717
[source,yaml]
1818
----
1919
apiVersion: snapshot.storage.k8s.io/v1
20-
deletionPolicy: Retain <1>
20+
deletionPolicy: <deletion_policy_type> <1>
2121
driver: openshift-storage.cephfs.csi.ceph.com
2222
kind: VolumeSnapshotClass
2323
metadata:
@@ -31,7 +31,7 @@ parameters:
3131
csi.storage.k8s.io/snapshotter-secret-name: rook-csi-cephfs-provisioner
3232
csi.storage.k8s.io/snapshotter-secret-namespace: openshift-storage
3333
----
34-
<1> Must be set to `Retain`.
34+
<1> OADP supports the `Retain` and `Delete` deletion policy types for CSI and Data Mover backup and restore. For the OADP 1.2 Data Mover, set the deletion policy type to `Retain`.
3535
<2> Must be set to `true`.
3636
<3> Must be set to `true`.
3737

modules/oadp-ceph-preparing-cephrbd-crs.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ When you install {rh-storage-first}, it automatically creates a default CephRBD
1717
[source,yaml]
1818
----
1919
apiVersion: snapshot.storage.k8s.io/v1
20-
deletionPolicy: Retain <1>
20+
deletionPolicy: <deletion_policy_type> <1>
2121
driver: openshift-storage.rbd.csi.ceph.com
2222
kind: VolumeSnapshotClass
2323
metadata:
@@ -29,7 +29,7 @@ parameters:
2929
csi.storage.k8s.io/snapshotter-secret-name: rook-csi-rbd-provisioner
3030
csi.storage.k8s.io/snapshotter-secret-namespace: openshift-storage
3131
----
32-
<1> Must be set to `Retain`.
32+
<1> OADP supports the `Retain` and `Delete` deletion policy types for CSI and Data Mover backup and restore. For the OADP 1.2 Data Mover, set the deletion policy type to `Retain`.
3333
<2> Must be set to `true`.
3434

3535
. Define the `StorageClass` CR as in the following example:

modules/oadp-deletion-policy-1-2.adoc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * backup_and_restore/application_backup_and_restore/backing_up_and_restoring/backing-up-applications.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="oadp-deletion-policy-1-2_{context}"]
7+
= Deletion policy for OADP 1.2
8+
9+
The deletion policy determines rules for removing data from a system, specifying when and how deletion occurs based on factors such as retention periods, data sensitivity, and compliance requirements. It manages data removal effectively while meeting regulations and preserving valuable information.
10+
11+
[id="oadp-deletion-policy-guidelines-1-2_{context}"]
12+
== Deletion policy guidelines for OADP 1.2
13+
14+
Review the following deletion policy guidelines for the OADP 1.2:
15+
16+
* To use OADP 1.2.x Data Mover to backup and restore, set the `deletionPolicy` field to `Retain` in the `VolumeSnapshotClass` custom resource (CR).
17+
18+
* In OADP 1.2.x, to use CSI backup and restore, you can set the `deletionPolicy` field to either `Retain` or `Delete` in the `VolumeSnapshotClass` CR.
19+
20+
[IMPORTANT]
21+
====
22+
OADP 1.2.x Data Mover to backup and restore is a Technology Preview feature and is not supported without a support exception.
23+
====

modules/oadp-deletion-policy-1-3.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * backup_and_restore/application_backup_and_restore/backing_up_and_restoring/backing-up-applications.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="oadp-deletion-policy-1-3_{context}"]
7+
= Deletion policy for OADP 1.3
8+
9+
The deletion policy determines rules for removing data from a system, specifying when and how deletion occurs based on factors such as retention periods, data sensitivity, and compliance requirements. It manages data removal effectively while meeting regulations and preserving valuable information.
10+
11+
[id="oadp-deletion-policy-guidelines-1-3_{context}"]
12+
== Deletion policy guidelines for OADP 1.3
13+
14+
Review the following deletion policy guidelines for the OADP 1.3:
15+
16+
* In OADP 1.3.x, when using any type of backup and restore methods, you can set the `deletionPolicy` field to `Retain` or `Delete` in the `VolumeSnapshotClass` custom resource (CR).

modules/oadp-using-data-mover-for-csi-snapshots.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ Red Hat recommends that customers who use OADP 1.2 Data Mover in order to back u
4444
In {product-title} version 4.12 or later, verify that this is the only default `volumeSnapshotClass`.
4545
====
4646
47-
* You have verified that `deletionPolicy` of the `VolumeSnapshotClass` CR is set to `Retain`.
48-
4947
* You have verified that only one `storageClass` CR has the annotation `storageclass.kubernetes.io/is-default-class: true`.
5048
5149
* You have included the label `{velero-domain}/csi-volumesnapshot-class: 'true'` in your `VolumeSnapshotClass` CR.

0 commit comments

Comments
 (0)