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

virt: v2v: parse progress from new virt-v2v #402

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

nyoxi
Copy link
Member

@nyoxi nyoxi commented Oct 26, 2023

Progress generated by virt-v2v has changed and is more graphical. This breaks the parser and causes the import to abort even when there is no real problem and virt-v2 completes successfully. Update the parsing logic to handle both old and new progress format.

Progress generated by virt-v2v has changed and is more graphical. This
breaks the parser and causes the import to abort even when there is no
real problem and virt-v2 completes successfully. Update the parsing
logic to handle both old and new progress format.

Signed-off-by: Tomáš Golembiovský <[email protected]>
@nyoxi
Copy link
Member Author

nyoxi commented Oct 27, 2023

Confirmed by a user on mailing list that the progress is now updated properly. From vdsm.log:

2023-10-26 16:04:15,862-0500 INFO  (v2v/4a6237d9) [root] Job '4a6237d9-05a0-4d5a-a7b1-ff01764a761f' copy disk 1 progress 80/100 (v2v:900)
[...]
2023-10-26 16:04:15,896-0500 INFO  (v2v/4a6237d9) [root] Job '4a6237d9-05a0-4d5a-a7b1-ff01764a761f' copy disk 1 progress 90/100 (v2v:900)
[...]
2023-10-26 16:04:17,437-0500 INFO  (v2v/4a6237d9) [root] Job '4a6237d9-05a0-4d5a-a7b1-ff01764a761f' copy disk 1 progress 100/100 (v2v:900)
2023-10-26 16:04:17,608-0500 INFO  (v2v/4a6237d9) [root] Job '4a6237d9-05a0-4d5a-a7b1-ff01764a761f' finished import successfully (v2v:875)

@nyoxi nyoxi self-assigned this Oct 27, 2023
@michalskrivanek
Copy link
Member

LGTM

Copy link
Member

@mz-pdm mz-pdm left a comment

Choose a reason for hiding this comment

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

Well, it would be best if virt-v2v had an option for managing the output, but I agree this patch is the simplest solution now. One question about the patch inside.

lib/vdsm/v2v.py Show resolved Hide resolved
@mz-pdm mz-pdm merged commit a6d8cf1 into oVirt:master Nov 6, 2023
17 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