Velero's LB_LIBRARY_PATH is set to "/plugins" directory so if any plugin binary needs to load additional library during execution, it can put the library there. However, Velero installed by OADP missing this environment variable and therefore fail the plugins that needs to load libraries even though the library binaries are there in the /plugins directory.
Reproduce steps:
- install OADP operator
- create simple Velero with default csi, openshift plugins (see config below)
apiVersion: konveyor.openshift.io/v1alpha1
kind: Velero
metadata:
name: example-velero
namespace: oadp-operator
spec:
olm_managed: true
use_upstream_images: true
default_velero_plugins:
- csi
- openshift
enable_restic: true
then use "exec -it " to log into Velero pod and print out all evn
#oc get pod velero-7d9cd8489b-7v5cx -n oadp-operator bash
#env | grep LD_LIBRARY_PATH
==> found nothing
Velero's LB_LIBRARY_PATH is set to "/plugins" directory so if any plugin binary needs to load additional library during execution, it can put the library there. However, Velero installed by OADP missing this environment variable and therefore fail the plugins that needs to load libraries even though the library binaries are there in the /plugins directory.
Reproduce steps:
apiVersion: konveyor.openshift.io/v1alpha1
kind: Velero
metadata:
name: example-velero
namespace: oadp-operator
spec:
olm_managed: true
use_upstream_images: true
default_velero_plugins:
enable_restic: true
then use "exec -it " to log into Velero pod and print out all evn
#oc get pod velero-7d9cd8489b-7v5cx -n oadp-operator bash
#env | grep LD_LIBRARY_PATH
==> found nothing