This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.12.3.7. Depuração de uma falha de migração parcial
Você pode depurar uma mensagem de aviso de falha de migração parcial usando a Velero CLI para examinar os logs do recurso personalizado (CR) Restore.
Uma falha parcial ocorre quando o Velero se depara com um problema que não causa a falha de uma migração. Por exemplo, se uma definição de recurso personalizado (CRD) estiver ausente ou se houver uma discrepância entre as versões da CRD nos clusters de origem e de destino, a migração será concluída, mas o CR não será criado no cluster de destino.
O Velero registra em log o problema como uma falha parcial e, então, processa o resto dos objetos no CR Backup.
Procedimento
Verifique o status de um CR
MigMigration:oc get migmigration <migmigration> -o yaml
$ oc get migmigration <migmigration> -o yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Exemplo de saída
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verifique o status do CR
Restoreusando o comandodescribedo Velero:$ oc exec $(oc get pods -n openshift-migration -o name | grep velero) -n openshift-migration -- ./velero restore describe <restore>
$ oc exec $(oc get pods -n openshift-migration -o name | grep velero) -n openshift-migration -- ./velero restore describe <restore>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Exemplo de saída
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verifique os logs do CR
Restoreusando o comandologsdo Velero:$ oc exec $(oc get pods -n openshift-migration -o name | grep velero) -n openshift-migration -- ./velero restore logs <restore>
$ oc exec $(oc get pods -n openshift-migration -o name | grep velero) -n openshift-migration -- ./velero restore logs <restore>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Exemplo de saída
time="2021-01-26T20:48:37Z" level=info msg="Attempting to restore migration-example: migration-example" logSource="pkg/restore/restore.go:1107" restore=openshift-migration/ccc7c2d0-6017-11eb-afab-85d0007f5a19-x4lbf time="2021-01-26T20:48:37Z" level=info msg="error restoring migration-example: the server could not find the requested resource" logSource="pkg/restore/restore.go:1170" restore=openshift-migration/ccc7c2d0-6017-11eb-afab-85d0007f5a19-x4lbf
time="2021-01-26T20:48:37Z" level=info msg="Attempting to restore migration-example: migration-example" logSource="pkg/restore/restore.go:1107" restore=openshift-migration/ccc7c2d0-6017-11eb-afab-85d0007f5a19-x4lbf time="2021-01-26T20:48:37Z" level=info msg="error restoring migration-example: the server could not find the requested resource" logSource="pkg/restore/restore.go:1170" restore=openshift-migration/ccc7c2d0-6017-11eb-afab-85d0007f5a19-x4lbfCopy to Clipboard Copied! Toggle word wrap Toggle overflow A mensagem de erro de log do CR
Restore,the server could not find the requested resource, indica a causa da migração parcialmente com falha.