-
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 server will crash when there is no bsl named default
#7359
Comments
@wrype I think it's the server getting an error when startup then exists, but not crash. Velero server would run following the command So if you don't have one bsl with |
Right that. But velero-server-1.12 can run with no bsl. |
@wrype Why do you want the Velero server to run without BSL? We've changed the default BSL selection logic, I will check the situation when there is no BSL. |
I think this scenario: first I start the velero server with no bsl config, then I configure a bsl when storage is ready. |
This way of setting BSL is in your product environment or just for testing? may it be a less common usage? |
Our use case is deploying velero server (no BSL) on k8s first, then when users have backup requirements, they will buy S3 buckets by themselves. After that we start to configure BSL. |
@wrype What's your detailed step of setting BSL? |
When the user buys S3 buckets, I will create one BSL and set one default. |
thanks for your information, I'll fix this issue recently. |
Getting this error as well, I'm having the same setup as @wrype, it should show error but should not crash the pod. |
@mateeyow I've fixed it, and it will be released in V1.13.1 |
Great that a solution for this will be in place for v1.13.1. We also had problems with our pod crashing, however, this was not due to a lack of BSLs, but due to us renaming our BSLs with more descriptive names than "default". Unfortunately, the pod still crashes looking for a BSL called "default". Our current workaround is just adding an extra BSL named "default", however this is confusing, as this will not actually be the default BSL. |
@miriamfrom you may not need to create one extra BSL named "default", Instead, you can specify the Velero server deployment start parameter with |
@qiuming-best, thanks for the suggestion. I tried looking into using |
@miriamfrom do you mean that I've tried with |
I just installed 1.13.0 and ran into this issue. I never create BSL as part of the installation because I try to keep installation and configuration as two separate steps. Any idea when 1.13.1 will be released? |
@draghuram v1.13.1 will be released shortly, but the release date is not announced. |
The fix has been merged, and it will released in v1.13.1. |
What steps did you take and what happened:
Run velero server with no bsl, then the server will crash with an error:
An error occurred: backupstoragelocations.velero.io "default" not found
.What did you expect to happen:
velero server can run with no bsl.
The following information will help us better understand what's going on:
refer code in
setDefaultBackupLocation
:velero/pkg/cmd/server/server.go
Line 469 in 1034d6a
Anything else you would like to add:
Environment:
in branch
main
andrelease-1.13
Vote 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: