Skip to content

Commit e770bd1

Browse files
authored
Merge pull request #72456 from anarnold97/OADP-3604-openshift-velero-plugin-panics
OADP-3604 : openshift-velero-plugin panics on imagestream backup due to a missing secret
2 parents cca2d45 + 63925e9 commit e770bd1

File tree

3 files changed

+55
-1
lines changed

3 files changed

+55
-1
lines changed

backup_and_restore/application_backup_and_restore/oadp-features-plugins.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ include::modules/oadp-ibm-z-test-support.adoc[leveloffset=+2]
2828

2929
include::modules/oadp-fips.adoc[leveloffset=+1]
3030

31+
include::modules/oadp-features-plugins-known-issues.adoc[leveloffset=+1]
32+
3133
:!oadp-features-plugins:

backup_and_restore/application_backup_and_restore/troubleshooting.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ This section describes the additional steps required to restore resources for se
7070

7171
include::modules/migration-debugging-velero-admission-webhooks-knative.adoc[leveloffset=+3]
7272
include::modules/migration-debugging-velero-admission-webhooks-ibm-appconnect.adoc[leveloffset=+3]
73-
include::modules/oadp-plugins-receiving-eof-message.adoc[leveloffset=+2]
73+
include::modules/oadp-features-plugins-known-issues.adoc[leveloffset=+2]
74+
include::modules/oadp-plugins-receiving-eof-message.adoc[leveloffset=+3]
7475

7576
[role="_additional-resources"]
7677
.Additional resources
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// Module included in the following assemblies:
2+
// oadp-features-plugins-known-issues
3+
// * backup_and_restore/application_backup_and_restore/oadp-features-plugins.adoc
4+
// * backup_and_restore/application_backup_and_restore/troubleshooting.adoc
5+
6+
:_content-type: CONCEPT
7+
[id="oadp-features-plugins-known-issues_{context}"]
8+
= OADP plugins known issues
9+
10+
The following section describes known issues in {oadp-first} plugins:
11+
12+
[id="velero-plugin-panic_{context}"]
13+
== Velero plugin panics during imagestream backups due to a missing secret
14+
15+
When the backup and the Backup Storage Location (BSL) are managed outside the scope of the Data Protection Application (DPA), the OADP controller, meaning the DPA reconciliation does not create the relevant `oadp-<BSL Name>-<BSL Provider>-registry-secret`.
16+
17+
When the backup is run, the OpenShift Velero plugin panics on the imagestream backup, with a panic error:
18+
19+
[source,terminal]
20+
----
21+
024-02-27T10:46:50.028951744Z time="2024-02-27T10:46:50Z" level=error msg="Error backing up item"
22+
backup=openshift-adp/<backup name> error="error executing custom action (groupResource=imagestreams.image.openshift.io,
23+
namespace=<BSL Name>, name=postgres): rpc error: code = Aborted desc = plugin panicked:
24+
runtime error: index out of range with length 1, stack trace: goroutine 94…
25+
----
26+
27+
[id="velero-plugin-panic-workaround_{context}"]
28+
=== Workaround to avoid the panic error
29+
30+
To avoid the Velero plugin panic error, perform the following steps:
31+
32+
. Label the custom BSL with the relevant label
33+
+
34+
[source,terminal]
35+
----
36+
$ oc label BackupStorageLocation <bsl_name> app.kubernetes.io/component=bsl
37+
----
38+
39+
. After the BSL is labeled, wait until the DPA reconciles.
40+
+
41+
[NOTE]
42+
====
43+
You can force the reconciliation by making any minor change to the DPA itself.
44+
====
45+
46+
. When the DPA reconciles, confirm that the relevant `oadp-<BSL Name>-<BSL Provider>-registry-secret` has been created and that the correct registry data has been populated into it:
47+
+
48+
[source,terminal]
49+
----
50+
$ oc -n openshift-adp get secret/oadp-<bsl_name>-<bsl_provider>-registry-secret -o json | jq -r '.data'
51+
----

0 commit comments

Comments
 (0)