Skip to content

pci_passthrough: add negative_migration_with_passthrough variant! - #429

Open
Anushree-Mathur wants to merge 1 commit into
lop-devops:masterfrom
Anushree-Mathur:negative_migration_master
Open

Anushree-Mathur wants to merge 1 commit into
lop-devops:masterfrom
Anushree-Mathur:negative_migration_master

Conversation

@Anushree-Mathur

Copy link
Copy Markdown
Contributor

The tp-libvirt libvirt_pci_passthrough test gained a negative_migration_with_passthrough variant. A guest with a VFIO passthrough device cannot be live migrated, because the device state cannot be transferred. The test starts a guest with the passthrough device, attempts "virsh migrate" to another host, and passes only if the migration fails with the expected error and the guest keeps running on the source host.

Add a negative_migration_with_passthrough entry to pci_passthrough.cfg so the new test is picked up when this suite is run. It selects libvirt_pci_passthrough.negative_migration_with_passthrough and declares the parameters the test reads:

migrate_dest_host IP address of a reachable destination
host, used as qemu+ssh:///system.
System specific, so it is an
"ENTER.YOUR.DEST.HOST.IP" placeholder
with an example. The test cancels itself
while the placeholder is not replaced.
negative_migrate_options options passed to virsh migrate
("--live --p2p --tunnelled")
negative_migrate_expected_err error expected when the migration is
refused. libvirt reports "VFIO migration
init failed: migration is not supported
in kernel", so the match string is
"migration is not supported in kernel".

The variant is placed before guest_remove, since guest_remove deletes the guest that the test needs.

Depends on the tp-libvirt change for the
negative_migration_with_passthrough test in libvirt_pci_passthrough

Signed-off-by: Anushree-Mathur <anushree.mathur@linux.ibm.com>

The tp-libvirt libvirt_pci_passthrough test gained a
negative_migration_with_passthrough variant. A guest with a VFIO
passthrough device cannot be live migrated, because the device state
cannot be transferred. The test starts a guest with the passthrough
device, attempts "virsh migrate" to another host, and passes only if the
migration fails with the expected error and the guest keeps running on
the source host.

Add a negative_migration_with_passthrough entry to pci_passthrough.cfg so
the new test is picked up when this suite is run. It selects
libvirt_pci_passthrough.negative_migration_with_passthrough and declares
the parameters the test reads:

  migrate_dest_host              IP address of a reachable destination
                                 host, used as qemu+ssh://<host>/system.
                                 System specific, so it is an
                                 "ENTER.YOUR.DEST.HOST.IP" placeholder
                                 with an example. The test cancels itself
                                 while the placeholder is not replaced.
  negative_migrate_options       options passed to virsh migrate
                                 ("--live --p2p --tunnelled")
  negative_migrate_expected_err  error expected when the migration is
                                 refused. libvirt reports "VFIO migration
                                 init failed: migration is not supported
                                 in kernel", so the match string is
                                 "migration is not supported in kernel".

The variant is placed before guest_remove, since guest_remove deletes
the guest that the test needs.

Depends on the tp-libvirt change for the
negative_migration_with_passthrough test in libvirt_pci_passthrough.

Signed-off-by: Anushree Mathur <anushree.mathur@linux.ibm.com>
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.

1 participant