-
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 restore completes with warning while restoring services and endpoints backup #6280
Comments
That warning just means that the resource already existed before the restore was executed. By default, velero doesn't attempt to modify resources to be restored if they already exist, so there will be a warning if the resource already exists but the content differs from what was in the backup. If you need the version from backup instead of what's already in the cluster, you have a couple options:
|
The
This would be a regression as the behaviour changed from So, now in version > Shouldn't |
As @pavansokkenagaraj mentioned, I also think that |
Ahh, I see now. So it looks like services were added as a high priority resource but endpoints were not. So we need endpoints added to high priority before service. Also, it looks like this only worked before by luck -- because Endpoints happen to fall earlier in the alphabetical sort. |
Yes. 🤞🏽 |
I believe the change was introduced purposefully. @ywk253100 please clarify. |
The |
Right. Adding service to high priority is fine. But I think we need to add endpoint as well, right before service, because there are use cases where endpoints must be restored before services. |
Restore Endpoints before Services Fixes vmware-tanzu#6280 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
Restore Endpoints before Services Fixes vmware-tanzu#6280 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
Restore Endpoints before Services Fixes vmware-tanzu#6280 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
Restore Endpoints before Services Fixes vmware-tanzu#6280 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
Restore Endpoints before Services Fixes vmware-tanzu#6280 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
Restore Endpoints before Services Fixes vmware-tanzu#6280 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
Restore Endpoints before Services Fixes vmware-tanzu#6280 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
Restore Endpoints before Services Fixes #6280 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
Restore Endpoints before Services Fixes #6280 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
Restore Endpoints before Services Fixes #6280 Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
What steps did you take and what happened:
In velero
v1.10.3
andv1.11.0
Restoring a backup with deployment, service and endpoints completes with warning
What did you expect to happen:
Velero restore completes without warning
The following information will help us better understand what's going on:
In velero
v1.11.0
andv1.10.3
,services
Resoruce was added toHighPriorities
which makes the services to be restored first and then endpoints. So when endpoints are restored, there is a conflict due toSubsets.Address
change from new Service's Endpoint.Corresponding code:
velero/pkg/cmd/server/server.go
Lines 520 to 549 in 80cc81b
velero/pkg/cmd/server/server.go
Lines 525 to 554 in 0da2baa
Whereas in velero
v1.10.2
, the restore completed without warnings as the Services and Endpoints were restored in alphabetical sorted order as they were restored after the HighPriority Resources.velero/pkg/cmd/server/server.go
Lines 518 to 546 in 7416504
If you are using velero v1.7.0+:
Please use
velero debug --backup <backupname> --restore <restorename>
to generate the support bundle, and attach to this issue, more options please refer tovelero debug --help
If you are using earlier versions:
Please provide the output of the following commands (Pasting long output into a GitHub gist or other pastebin is fine.)
kubectl logs deployment/velero -n velero
velero backup describe <backupname>
orkubectl get backup/<backupname> -n velero -o yaml
velero backup logs <backupname>
velero describe restore qakotsregression-g5mw7 --details
velero restore logs qakotsregression-g5mw7
Anything else you would like to add:
Environment:
velero version
):v1.11.0
andv1.10.3
velero client config get features
):kubectl version
):v1.27
/etc/os-release
):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: