Skip to content

Commit b03b560

Browse files
authored
Merge pull request #56408 from subhtk/BZ2094494
BZ#2094494: Added a section titled 'Backup CR status remains in PartiallyFailed'
2 parents a8f4cc0 + 71ba909 commit b03b560

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

modules/oadp-backup-restore-cr-issues.adoc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,37 @@ $ oc delete backup <backup> -n openshift-adp
5151
You do not need to clean up the backup location because a `Backup` CR in progress has not uploaded files to object storage.
5252

5353
. Create a new `Backup` CR.
54+
55+
[id="backup-cr-remains-partiallyfailed_{context}"]
56+
== Backup CR status remains in PartiallyFailed
57+
58+
The status of a `Backup` CR without Restic in use remains in the `PartiallyFailed` phase and does not complete. A snapshot of the affiliated PVC is not created.
59+
60+
.Cause
61+
62+
If the backup is created based on the CSI snapshot class, but the label is missing, CSI snapshot plugin fails to create a snapshot. As a result, the `Velero` pod logs an error similar to the following:
63+
+
64+
[source,text]
65+
----
66+
time="2023-02-17T16:33:13Z" level=error msg="Error backing up item" backup=openshift-adp/user1-backup-check5 error="error executing custom action (groupResource=persistentvolumeclaims, namespace=busy1, name=pvc1-user1): rpc error: code = Unknown desc = failed to get volumesnapshotclass for storageclass ocs-storagecluster-ceph-rbd: failed to get volumesnapshotclass for provisioner openshift-storage.rbd.csi.ceph.com, ensure that the desired volumesnapshot class has the velero.io/csi-volumesnapshot-class label" logSource="/remote-source/velero/app/pkg/backup/backup.go:417" name=busybox-79799557b5-vprq
67+
----
68+
69+
.Solution
70+
71+
. Delete the `Backup` CR:
72+
+
73+
[source,terminal]
74+
----
75+
$ oc delete backup <backup> -n openshift-adp
76+
----
77+
78+
. If required, clean up the stored data on the `BackupStorageLocation` to free up space.
79+
80+
. Apply label `velero.io/csi-volumesnapshot-class=true` to the `VolumeSnapshotClass` object:
81+
+
82+
[source,terminal]
83+
----
84+
$ oc label volumesnapshotclass/<snapclass_name> velero.io/csi-volumesnapshot-class=true
85+
----
86+
87+
. Create a new `Backup` CR.

0 commit comments

Comments
 (0)