-
Notifications
You must be signed in to change notification settings - Fork 183
virsh_migrate_option_mix: Add missing vms parameter to check_result() #6744
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
Open
hholoubk
wants to merge
1
commit into
autotest:master
Choose a base branch
from
hholoubk:XXX-22224-add-missing-vms-argument
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 119
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 6445
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 2202
🏁 Script executed:
# Read the specific file to see the change at line 313 wc -l libvirt/tests/src/virsh_cmd/domain/virsh_migrate_option_mix.pyRepository: autotest/tp-libvirt
Length of output: 129
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 1440
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 45
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 200
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 45
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 45
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 101
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 45
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 514
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 137
🏁 Script executed:
# Let's read the migration_base.py file to find the check_result method wc -l ./provider/migration/migration_base.pyRepository: autotest/tp-libvirt
Length of output: 105
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 351
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 45
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 1731
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 116
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 958
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 45
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 45
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 45
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 2189
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 45
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 45
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 45
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 200
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 1947
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 3147
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 310
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 625
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 733
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 435
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 114
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 431
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 88
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 1819
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 431
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 1497
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 90
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 127
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 2065
🏁 Script executed:
Repository: autotest/tp-libvirt
Length of output: 273
LGTM! Correctly fixes the TypeError by passing the required
vmsparameter.The change properly addresses the upstream API signature change (commit 20eb8247e, Dec 16, 2025) by passing the
vmslist that is initialized at line 151 and populated at line 295. This ensures thecheck_result()method has access to VM instances for retrieving QEMU logs on migration failure.However, a related file needs attention:
libvirt/tests/src/migration/migrate_options_shared.py:1420contains an identicalcheck_result()call (migration_test.check_result(mig_result, params)) that still uses the old two-parameter signature and was not updated to include thevmsparameter. This file should also be updated to maintain API consistency across the codebase.🤖 Prompt for AI Agents