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

🐞 when migration task isn't completed but the migration is successful, mark task as successful #1324

Merged

Conversation

sgratch
Copy link
Collaborator

@sgratch sgratch commented Sep 12, 2024

Reference: #1305

In case a VM migration task is not marked as finished (i.e. task.phase is undefined), but its pipeline step is marked as completed successfully then mark the task in UI as completed successfully as well.

This will solve cases as mentioned in #1305 in which the DiskTransferV2v or DiskTransfer tasks aren't completed although the migration is successful.

This fix was done for all migration VM types (not necessarily limited for vSphere or OVA VMs).

Before

Screenshot from 2024-09-12 15-10-18

Screenshot from 2024-09-12 15-12-11

After

Screenshot from 2024-09-12 15-13-26

Screenshot from 2024-09-12 15-14-42

Note that the Task modal popup will still show the real info and will reflect that the task was not really finished:
Screenshot from 2024-09-12 15-15-42

@sgratch sgratch changed the title 🐞 If a migration task isn't completed but the migration is successful, mark task as successful 🐞 when migration task isn't completed but the migration is successful, mark task as successful Sep 12, 2024
@sgratch sgratch requested a review from yaacov September 12, 2024 12:28
@sgratch sgratch force-pushed the mark-migration-tasks-as-completed-if-pipeline-is branch from 4b93cc1 to fa35e31 Compare September 17, 2024 14:25
@codecov-commenter
Copy link

codecov-commenter commented Sep 17, 2024

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

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 36.50%. Comparing base (13484d0) to head (c774a55).
Report is 37 commits behind head on main.

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1324      +/-   ##
==========================================
- Coverage   36.81%   36.50%   -0.31%     
==========================================
  Files         158      159       +1     
  Lines        2548     2586      +38     
  Branches      599      603       +4     
==========================================
+ Hits          938      944       +6     
- Misses       1428     1460      +32     
  Partials      182      182              

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

…mark task as successful,

Reference: kubev2v#1305

In case a migraiton task is not marked as finished (i.e. task.phase is
undefined), but its pipeline step is marked as completed succesfully
then mark the task as completed succesfully as well.

Signed-off-by: Sharon Gratch <[email protected]>
@sgratch sgratch force-pushed the mark-migration-tasks-as-completed-if-pipeline-is branch from fa35e31 to c774a55 Compare September 18, 2024 12:43
Copy link

@sgratch sgratch requested a review from yaacov September 18, 2024 12:53
@yaacov yaacov merged commit d17b5f9 into kubev2v:main Sep 19, 2024
8 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.

3 participants