Velero- Restore partially fails for a specific namespace #7035
Unanswered
MLeonidou
asked this question in
Community support Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, soo i am encountering the following issue, I want to backup and restore a specific namespace (demo) which i have on an openshift cluster. The backup is completed successfully but when i am trying to restore it is Partially failing everytime. I my last attempt i the status changed to Completed but containers could not be properly built cause are unable to pull or push the image.
I have read that at least in restoration procedure system resources like CSV etc should be excluded
https://docs.openshift.com/container-platform/4.9/backup_and_restore/application_backup_and_restore/troubleshooting.html
Here is the command i have been trying over and modified it multiple times against the warnings and errors I was getting
velero restore create --from-backup demo
--exclude-resources=configmaps/kube-root-ca.crt,configmaps/openshift-service-ca.crt,builds,rolebindings,clusterserviceversions.operators.coreos.com,imagetags.image.openshift.io
The errors and warnings i am currently getting:
Warnings: Velero: Cluster: could not restore, CustomResourceDefinition "clusterserviceversions.operators.coreos.com" already exists. Warning: the in-cluster version is different than the backed-up version. Namespaces:
demo: could not restore, ConfigMap "kube-root-ca.crt" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, ConfigMap "openshift-service-ca.crt" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, RoleBinding "system:deployers" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, RoleBinding "system:image-builders" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, RoleBinding "system:image-pullers" already exists. Warning: the in-cluster version is different than the backed-up version.
Backup: demo-backup-full
Namespaces: Included: all namespaces found in the backup Excluded:
Resources: Included: * Excluded: configmaps/kube-root-ca.crt, configmaps/openshift-service-ca.crt, builds, rolebindings, clusterserviceversions.operators.coreos.com, imagetags.image.openshift.io, nodes, events, events.events.k8s.io, backups.velero.io, restores.velero.io, resticrepositories.velero.io, csinodes.storage.k8s.io, volumeattachments.storage.k8s.io, backuprepositories.velero.io Cluster-scoped: auto
Namespace mappings:
Label selector:
Restore PVs: auto
Existing Resource Policy: ItemOperationTimeout: 1h0m0s
Please help cause i have been struggling a lot with that issue.
Beta Was this translation helpful? Give feedback.
All reactions