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

migration: Add case about parallel migration #5197

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
- migration.migration_performance_tuning.parallel_migration.set_connection_num_without_enabing_parallel_capability:
type = migration_performance_tuning
migration_setup = 'yes'
storage_type = 'nfs'
setup_local_nfs = 'yes'
disk_type = "file"
disk_source_protocol = "netfs"
mnt_path_name = ${nfs_mount_dir}
# Console output can only be monitored via virsh console output
only_pty = True
take_regular_screendumps = no
# Extra options to pass after <domain> <desturi>
virsh_migrate_extra = ''
# SSH connection time out
ssh_timeout = 60
# Local URI
virsh_migrate_connect_uri = 'qemu:///system'
virsh_migrate_dest_state = "running"
virsh_migrate_src_state = "shut off"
image_convert = 'no'
server_ip = "${migrate_dest_host}"
server_user = "root"
server_pwd = "${migrate_dest_pwd}"
check_network_accessibility_after_mig = "yes"
migrate_desturi_port = "16509"
migrate_desturi_type = "tcp"
virsh_migrate_desturi = "qemu+tcp://${migrate_dest_host}/system"
status_error = "yes"
err_msg = "invalid argument: Turn parallel migration on to tune it"
virsh_migrate_extra = "--parallel-connections 4"
migrate_again = 'yes'
migrate_again_status_error = 'no'
virsh_migrate_extra_mig_again = "--parallel --parallel-connections 4"

variants:
- p2p:
virsh_migrate_options = '--live --p2p --verbose'
- non_p2p:
virsh_migrate_options = '--live --verbose'
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def verify_memory_compression():

test_case = params.get('test_case', '')
vm_name = params.get("migrate_main_vm")
migrate_again = "yes" == params.get("migrate_again", "no")

vm = env.get_vm(vm_name)
params.update({'vm_obj': vm})
Expand All @@ -80,6 +81,8 @@ def verify_memory_compression():
try:
setup_test()
migration_obj.run_migration()
if migrate_again:
migration_obj.run_migration_again()
verify_test()
finally:
migration_obj.cleanup_connection()
Loading