From da766b7955087a41b27e20d654cc690cac308c38 Mon Sep 17 00:00:00 2001 From: Martin Necas Date: Fri, 4 Oct 2024 13:41:49 +0200 Subject: [PATCH] MTV-1569 | Fail plan when the conversion pod fails Issue: When the virt-v2v pod fails the plan does not fail. Signed-off-by: Martin Necas --- pkg/controller/plan/migration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/plan/migration.go b/pkg/controller/plan/migration.go index eaee3b200..63381a774 100644 --- a/pkg/controller/plan/migration.go +++ b/pkg/controller/plan/migration.go @@ -1146,7 +1146,7 @@ func (r *Migration) execute(vm *plan.VMStatus) (err error) { return err } - if pod != nil && pod.Status.Phase != core.PodSucceeded { + if pod != nil && pod.Status.Phase != core.PodSucceeded && pod.Status.Phase != core.PodFailed { err := r.kubevirt.UpdateVmByConvertedConfig(vm, pod, step) if err != nil { return liberr.Wrap(err)