You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Backup request "mongodb-namespace" submitted successfully.
Waiting for backup to complete. You may safely press ctrl-c to stop waiting - your backup will continue in the background.
Backup completed with status: PartiallyFailed. You may check for more information using the commands `velero backup describe mongodb-namespace` and `velero backup logs mongodb-namespace`.
and the result of describing the backup is the following:
Phase: PartiallyFailed (run `velero backup logs mongodb-namespace` for more information)
Warnings: <error getting warnings: Get "http://host.minikube.internal:9000/mybucket/backups/mongodb-namespace/mongodb-namespace-results.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minioadmin%2F20250112%2Fminio%2Fs3%2Faws4_request&X-Amz-Date=20250112T191907Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=3d9a5e3b8e0fdb404bb6a5369120842bad44b74b25e3180c16b3937720699f25": dial tcp: lookup host.minikube.internal: no such host>
Errors: <error getting errors: Get "http://host.minikube.internal:9000/mybucket/backups/mongodb-namespace/mongodb-namespace-results.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minioadmin%2F20250112%2Fminio%2Fs3%2Faws4_request&X-Amz-Date=20250112T191907Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=3d9a5e3b8e0fdb404bb6a5369120842bad44b74b25e3180c16b3937720699f25": dial tcp: lookup host.minikube.internal: no such host>
Namespaces:
Included: mongo
Excluded: <none>
Resources:
Included: *
Excluded: <none>
Cluster-scoped: auto
Label selector: <none>
Or label selector: <none>
Storage Location: default
Velero-Native Snapshot PVs: true
Snapshot Move Data: false
Data Mover: velero
TTL: 720h0m0s
CSISnapshotTimeout: 10m0s
ItemOperationTimeout: 4h0m0s
Hooks: <none>
Backup Format Version: 1.1.0
Started: 2025-01-12 20:16:59 +0100 CET
Completed: 2025-01-12 20:17:00 +0100 CET
Expiration: 2025-02-11 20:16:59 +0100 CET
Total items to be backed up: 13
Items backed up: 13
Backup Volumes:
<error getting backup volume info: Get "http://host.minikube.internal:9000/mybucket/backups/mongodb-namespace/mongodb-namespace-volumeinfo.json.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minioadmin%2F20250112%2Fminio%2Fs3%2Faws4_request&X-Amz-Date=20250112T191907Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=e2384d7839d3121c0be1736633f788408df86824a64227d8ca7ffb4009e1d63f": dial tcp: lookup host.minikube.internal: no such host>
HooksAttempted: 0
HooksFailed: 0
The error says that there is no such host but what's weird is that when i open the minio console i see the backup is created, and when i restore it using this command: velero restore create mongodb-restore --from-backup mongodb-namespace
the namespace is indeed restored and everything works except the database volumes are empty
What did you expect to happen:
The volume should be restored as well with its data.
dial tcp: lookup host.minikube.internal: no such host
I think this was caused by the DNS record being hosted by the kube-DNS service in the k8s environment, but the Velero CLI ran outside the k8s environment.
I suggest either you run the Velero CLI in the k8s environment by running something like the following: kubectl -n velero exec -it [velero-server-pod-name] -- velero backup describe ....
Or you can try to make that DNS record also available to where you run the Velero CLI.
For the backup PartiallyFailed issue, please collect the Velero debug bundle to help investigate. The CLI is velero debug.
@blackpiglet I added 192.168.49.1 host.minikube.internal to /etc/hosts and the error of no such hosts was gone.
however there is a new error which is complaining about not having an applicable snapshotter, this is the error i catched when running velero backup logs mongodb-namespace
time="2025-01-13T08:20:48Z" level=info msg="Summary for skipped PVs: [{\"name\":\"pvc-835001c5-6345-4f4a-b651-8cd7cea92ebf\",\"reasons\":[{\"approach\":\"podvolume\",\"reason\":\"opted out due to annotation in pod mongodb-0\"},{\"approach\":\"volumeSnapshot\",\"reason\":\"no applicable volumesnapshotter found\"}]}]" backup=velero/mongodb-namespace logSource="pkg/backup/backup.go:545"
time="2025-01-13T08:20:48Z" level=info msg="Backed up a total of 20 items" backup=velero/mongodb-namespace logSource="pkg/backup/backup.go:549" progress=
and the result of velero backup describe mongodb-namespace is:
What steps did you take and what happened:
I have the following setup:
i created a credentials file
credentials-velero
which contains the pasword and the username:i installed velero with this command:
and when i created a backup for any namespace that contains persistent volumes using this command:
it will give this output:
and the result of describing the backup is the following:
The error says that there is no such host but what's weird is that when i open the minio console i see the backup is created, and when i restore it using this command:
velero restore create mongodb-restore --from-backup mongodb-namespace
the namespace is indeed restored and everything works except the database volumes are empty
What did you expect to happen:
The volume should be restored as well with its data.
Environment:
velero version:
The text was updated successfully, but these errors were encountered: