Skip to content
Draft
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
11 changes: 11 additions & 0 deletions qemu/tests/cfg/nic_hotplug.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@
requires_root = yes
type = migration_after_nichotplug
kill_vm = yes
take_regular_screendumps = no # FIXME:
store_vm_info = no # FIXME:
nodes = node1 node2
node_selectors_node1 = [{"key": "cpu_vendor_id", "operator": "eq", "values": "AuthenticAMD"}, {"key": "hostname", "operator": "contains", "values": "redhat.com"}]
node_selectors_node2 = [{"key": "cpu_vendor_id", "operator": "==", "values": "AuthenticAMD"}, {"key": "hostname", "operator": "contains", "values": "redhat.com"}]
pools = p1
vm_node = node1
mig_dest_node = node2
pool_selectors_p1 = [{"key": "type", "operator": "==", "values": "nfs"}, {"key": "access.nodes", "operator": "contains", "values": ["node1", "node2"]}]
image_pool_name_image1 = p1
image_name_image1 = /mnt/images/rhel950-64-virtio-scsi-ovmf.qcow2
variants:
- after_nichotplug:
with_unplug = no
Expand Down
3 changes: 2 additions & 1 deletion qemu/tests/migration_after_nichotplug.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ def check_nic_is_empty():
set_link(nic_name, up=True)

error_context.context("Migrate from source VM to Destination VM", test.log.info)
vm.migrate(mig_timeout, mig_protocol, mig_cancel_delay, env=env)
dst_node = params.get("mig_dest_node")
vm.migrate(mig_timeout, mig_protocol, mig_cancel_delay, dest_host=dst_node, env=env)

if with_unplug:
error_context.context(
Expand Down