Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport to 2.7.6 #1254

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Backport to 2.7.6 #1254

merged 2 commits into from
Dec 9, 2024

Conversation

mnecas
Copy link
Member

@mnecas mnecas commented Dec 9, 2024

Issue: When CDI is managing lot of DVs at once it can take some time
before the CDI reconciles the DVs status and start the import. In the
function `updateCopyProgress` we check the DV status and if it is paused
we do continue and as next phase we have snapshot removal. So if the DV
is still in paused state and we start the cutover and MTV skips over the
phase thinking it already finished as the DV is in paused.

Fix: Add WaitForDataVolumesStatus phase to wait until the DVs do not have
the paused status.

Ref: https://issues.redhat.com/browse/MTV-1717

https://github.com/kubev2v/forklift/blob/ea83264881b3dcd4a88dd627c1ca75da2483f408/pkg/controller/plan/migration.go#L1573-L1575

Signed-off-by: Martin Necas <mnecas@redhat.com>
Issue: The migration fails with `Another task is already in progress`.
This is caused because of the snapshot creation is started right after
snapshot removal and the snapshot removal did not finish due to the
consolidation.

Fix: I have added a timeout which users can control using the `controller_snapshot_removal_check_retries`
variable. This will wait some time right after snapshot removal.
This is just a temporary solution to unblock the users. I'll fix it
properly using the VM events and tasks, but that will require a lot of
changes in the controller inventory and main.

Ref: https://issues.redhat.com/browse/MTV-1753

Signed-off-by: Martin Necas <mnecas@redhat.com>
@mnecas mnecas requested a review from yaacov as a code owner December 9, 2024 16:13
Copy link

sonarqubecloud bot commented Dec 9, 2024

@mnecas mnecas merged commit c8e78be into kubev2v:release-2.7 Dec 9, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant