-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OADP-3604 : openshift-velero-plugin panics on imagestream backup due …
…to a missing secret 4.14 Signed-off-by: A.Arnold <anarnold@redhat.com>
- Loading branch information
1 parent
34897bf
commit 4933f26
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Module included in the following assemblies: | ||
// oadp-features-plugins-known-issues | ||
// * backup_and_restore/application_backup_and_restore/oadp-features-plugins.adoc | ||
// * backup_and_restore/application_backup_and_restore/troubleshooting.adoc | ||
|
||
:_mod-docs-content-type: CONCEPT | ||
[id="oadp-features-plugins-known-issues_{context}"] | ||
= OADP plugins known issues | ||
|
||
The following section describes known issues in {oadp-first} plugins: | ||
|
||
[id="velero-plugin-panic_{context}"] | ||
== Velero plugin panics during imagestream backups due to a missing secret | ||
|
||
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`. | ||
|
||
When the backup is run, the OpenShift Velero plugin panics on the imagestream backup, with the following panic error: | ||
|
||
[source,terminal] | ||
---- | ||
024-02-27T10:46:50.028951744Z time="2024-02-27T10:46:50Z" level=error msg="Error backing up item" | ||
backup=openshift-adp/<backup name> error="error executing custom action (groupResource=imagestreams.image.openshift.io, | ||
namespace=<BSL Name>, name=postgres): rpc error: code = Aborted desc = plugin panicked: | ||
runtime error: index out of range with length 1, stack trace: goroutine 94… | ||
---- | ||
|
||
[id="velero-plugin-panic-workaround_{context}"] | ||
=== Workaround to avoid the panic error | ||
|
||
To avoid the Velero plugin panic error, perform the following steps: | ||
|
||
. Label the custom BSL with the relevant label: | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc label BackupStorageLocation <bsl_name> app.kubernetes.io/component=bsl | ||
---- | ||
|
||
. After the BSL is labeled, wait until the DPA reconciles. | ||
+ | ||
[NOTE] | ||
==== | ||
You can force the reconciliation by making any minor change to the DPA itself. | ||
==== | ||
|
||
. 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: | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc -n openshift-adp get secret/oadp-<bsl_name>-<bsl_provider>-registry-secret -o json | jq -r '.data' | ||
---- |