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

MTV-1717 | Wait for DV status to not be paused #1243

Merged
merged 1 commit into from
Dec 9, 2024
Merged

Conversation

mnecas
Copy link
Member

@mnecas mnecas commented Dec 3, 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

case cdi.Succeeded, cdi.Paused:
completed++
r.setTaskCompleted(task)

@mnecas mnecas requested a review from yaacov as a code owner December 3, 2024 14:17
@codecov-commenter
Copy link

codecov-commenter commented Dec 3, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 49 lines in your changes missing coverage. Please review.

Project coverage is 15.59%. Comparing base (38f14ec) to head (011e646).
Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
pkg/controller/plan/migration.go 0.00% 49 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1243      +/-   ##
==========================================
- Coverage   15.63%   15.59%   -0.04%     
==========================================
  Files         112      112              
  Lines       23105    23233     +128     
==========================================
+ Hits         3612     3623      +11     
- Misses      19208    19323     +115     
- Partials      285      287       +2     
Flag Coverage Δ
unittests 15.59% <0.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

pkg/controller/plan/migration.go Outdated Show resolved Hide resolved
pkg/controller/plan/migration.go Show resolved Hide resolved
Copy link
Contributor

@mansam mansam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Questions inline.

@mnecas mnecas added this to the 2.7.6 milestone Dec 6, 2024
@mnecas mnecas force-pushed the MTV-1717 branch 5 times, most recently from 963bf4c to f48e48a Compare December 6, 2024 13:16
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 <[email protected]>
Copy link

sonarcloud bot commented Dec 6, 2024

@mnecas mnecas merged commit b2c304d into kubev2v:main Dec 9, 2024
19 checks passed
@mnecas
Copy link
Member Author

mnecas commented Dec 9, 2024

Merging for 2.7.6 release any notes I'll address in further PRs

@mnecas mnecas mentioned this pull request Dec 9, 2024
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.

3 participants