-
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 fails to restore statefulsets.apps #4782
Comments
@son-la Please reproduce the issue, use |
velero-bundle.zip I search and replace some sensitive information out (S3 endpoint, bucket name,) and zip it again. Otherwise, everything should be there. |
Found such messages in velero's log:
Did you setup a configmap to change the storage class, and does it have https://velero.io/docs/v1.8/restore-reference/#changing-pvpvc-storage-classes |
Yes, there's a configmap change from src -> dst cluster. This extra config map is deployed when installing velero to the dst cluster
|
@son-la
Unfortunately, the log does not contain the stack trace. I was thinking it happened in this line:
Is the snippet from the output of If this is not the problem, the best thing we can do next step is to add more log in the func to find where the nil pointer is thrown. |
I don't use helm chart very much. If you use If you choose not to change the storageclass, you will probably not hit the same nil pointer issue. |
Thanks for the answer. Here's the configmap created by helm installation
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing the stale issue. |
Mitigate the issue mentioned in vmware-tanzu#4782 When there's a bug or misconfiguration that causes nil pointer there will be more stack trace information to help us debug. Signed-off-by: Daniel Jiang <[email protected]>
Mitigate the issue mentioned in vmware-tanzu#4782 When there's a bug or misconfiguration that causes nil pointer there will be more stack trace information to help us debug. Signed-off-by: Daniel Jiang <[email protected]>
Hi, this issue still persists in 1.9.0, and it is a crucial feature to migrate applications to another storage. |
I am also running into this. I have ran it after the merge of the stack trace for panic and see this error log when trying to restore my StatefulSet: I am going through the same steps posted from OP, and have confirmed my StatefulSet is present in my backup that is created. For what it is worth, I do not see this issue when testing with version 1.7.1 and I do see the issue in versions 1.8.1, and 1.9.0, that is all I have tested so far. Can we reopen this issue? @reasonerjt |
I have confirmed that deleting this config map allows the restore to complete successfully: Tested with 1.9.0 and 1.9.1 @reasonerjt Please re-open this issue. |
Reopening because it was never resolved (closed by stale bot) and theree's now a PR submitted to fix the issue. |
Mitigate the issue mentioned in vmware-tanzu#4782 When there's a bug or misconfiguration that causes nil pointer there will be more stack trace information to help us debug. Signed-off-by: Daniel Jiang <[email protected]>
What steps did you take and what happened:
velero describe --details
: Statefulset object is in the resource listvelero restore describe
What did you expect to happen:
Statefulset object is restored successfully
The following information will help us better understand what's going on:
Restore log seems normal. There's only one statefulset object and it is said to restore successfully: https://gist.github.com/son-la/f02d546f9e0d68cfdc9f4bfef279f480
Anything else you would like to add:
The restoration did happen successfully for other stateful sets but fails for this stateful set. I tried to spot the difference between the working on and the not working one but nothing special I can find. The error message here is too cryptic for me to know where to look next
Environment:
Velero version (use
velero version
):Client:
Version: v1.8.1
Git commit: 18ee078
Server:
Version: v1.8.1
Velero features (use
velero client config get features
): NoKubernetes version (use
kubectl version
):Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.0", GitCommit:"cb303e613a121a29364f75cc67d3d580833a7479", GitTreeState:"clean", BuildDate:"2021-04-08T16:31:21Z", GoVersion:"go1.16.1", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.11", GitCommit:"27522a29febbcc4badac257763044d0d90c11abd", GitTreeState:"clean", BuildDate:"2021-09-15T19:16:25Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"}
/etc/os-release
): RHEL8.4Vote 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: