Skip to content

Commit

Permalink
MTV-1569 | Fail plan when the conversion pod fails (#1085)
Browse files Browse the repository at this point in the history
Issue:
When the virt-v2v pod fails the plan does not fail.

Signed-off-by: Martin Necas <[email protected]>
  • Loading branch information
mnecas committed Oct 8, 2024
1 parent 7709cc2 commit 8725dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/plan/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8725dac

Please sign in to comment.