Skip to content

Commit

Permalink
MTV-1569 | Fail plan when the conversion pod fails
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 4, 2024
1 parent e3dbc9a commit da766b7
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 da766b7

Please sign in to comment.