-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Velero pod enters "CrashLoopBackOff" with powerprotect-velero-dd plugin #4192
Comments
I'm not sure how the plugin was implemented, but some changes made in
Hope that could help you identify the reason the plugin failed. |
This is critical. It will block us from upgrade to Velero 1.7.0 |
I turned on debug mode and it spilled out more details on the error. The Velero hit panic because the velerodd plugin trying to load DDBoost library and failed. See error log below: |
@phuongatemc |
With the switch to distroless there are a lot fewer libraries in the base image. Check to see if there are libraries you need that are not in the distroless image. If that's the case, you can include them in the plugin and copy them to the /plugins dir as part of the plugin's init. When the plugins are invoked, LD_LIBRARY_PATH is set to include /plugins. We use that in the vSphere plugin to include vSphere specific libraries. |
Sound like the root cause of this problem is the ddboost library itself requires a few libraries that are not currently in the distroless image or in the /plugins directory (where the LD_LIBRARY_PATH points to). We will investigate further and update you. |
@phuongatemc That sounds right. When you discover which libraries you're missing, include them in your plug-in image and copy them into the /plugins directory with your init container. |
We have added all the libraries needed but the plug in still failed. The logs didn't show much info. |
I think you're going to need to add some debug code into the plugin or figure out how to run it in the debugger and single-step through. |
The problem resolves after adding the missing libraries to the velerodd plugin. It's OK to close this issue. |
Solved it. Close. |
The reason why we added "all missing libraries" and still failed because we happened to add libraries that already in the Velero container. After we eliminated the duplicate libraries and added the missing ones that not in Velero container, the plugin was executed successfully. |
Using Velero v1.7.0-rc.1 cli binary to deploy Velero server pod in "Velero" namespace, including powerprotect-velero-dd as a plugin. The deployment of Velero pod failed.
And the log shows it relates registering plugin. But same operation is successful when using Velero 1.6.3.
k get pods -n velero-ppdm
NAME READY STATUS RESTARTS AGE
velero-688b667d77-8vxhn 0/1 CrashLoopBackOff 8 20m
The velero server pod enters "CrashLoopBackOff" status.
Command:
./velero install --namespace velero-ppdm --image velero/velero:v1.7.0-rc.1 --no-secret --no-default-backup-location --use-volume-snapshots=false --plugins dellemc/powerprotect-velero-dd:19.9.0-12 --features EnableLocalMode
The Velero pod should be running successfully on the Velero namespace.
kubectl logs deployment/velero -n velero
https://gist.github.com/Frank51/072e2f4a041184618617ec05dfab34d4
velero version
): Version: v1.7.0-rc.1kubectl version
): v1.22.0 (client), v1.21.1(server)/etc/os-release
):Ubuntu 18.04 LTSVote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.
The text was updated successfully, but these errors were encountered: