From 20646892eea311322d9cc6eb31e2c653f1d40aaa Mon Sep 17 00:00:00 2001 From: Liran Rotenberg Date: Tue, 1 Aug 2023 19:16:19 +0300 Subject: [PATCH] Fix LUN warm migration When migrating a LUN disk from ovirt source in warm migration we need to mark the CopyDisk as completed. Signed-off-by: Liran Rotenberg --- pkg/apis/forklift/v1beta1/plan/migration.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/apis/forklift/v1beta1/plan/migration.go b/pkg/apis/forklift/v1beta1/plan/migration.go index 620132e3d..c89bc4b74 100644 --- a/pkg/apis/forklift/v1beta1/plan/migration.go +++ b/pkg/apis/forklift/v1beta1/plan/migration.go @@ -104,9 +104,6 @@ func (r *Step) ReflectTasks() { tasksStarted := 0 tasksCompleted := 0 completed := int64(0) - if len(r.Tasks) == 0 { - return - } for _, task := range r.Tasks { if task.MarkedStarted() { tasksStarted++