Skip to content

Commit 561f183

Browse files
arctic-alpacaamphi
andcommitted
tests: add version printing test to live_migration
Allows verifying the versions of `libvirt` and `cloud-hypervisor` running in the respective VMs. Co-authored-by: Sebastian Eydam <[email protected]> On-behalf-of: SAP [email protected] Signed-off-by: Julian Schindel <[email protected]>
1 parent 7ce85a6 commit 561f183

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/testsuite_live_migration.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,17 @@ def get_ip(vm):
14971497
sender.succeed(migration_command)
14981498
wait_for_ssh(receiver)
14991499

1500+
def test_live_migration_print_versions(self):
1501+
"""
1502+
The test prints the versions of cloud-hypervisor and libvirt.
1503+
With the version information, cross-version migration tests can be validated
1504+
to use different versions.
1505+
"""
1506+
print(controllerVM.succeed("virsh version"))
1507+
print(computeVM.succeed("virsh version"))
1508+
print(controllerVM.succeed("cloud-hypervisor --version"))
1509+
print(computeVM.succeed("cloud-hypervisor --version"))
1510+
15001511

15011512
def suite():
15021513
# Test cases involving live migration sorted in alphabetical order.
@@ -1514,6 +1525,7 @@ def suite():
15141525
LibvirtTests.test_live_migration_network_lost,
15151526
LibvirtTests.test_live_migration_non_peer2peer_is_not_supported,
15161527
LibvirtTests.test_live_migration_parallel_connections,
1528+
LibvirtTests.test_live_migration_print_versions,
15171529
LibvirtTests.test_live_migration_statistics,
15181530
LibvirtTests.test_live_migration_tls,
15191531
LibvirtTests.test_live_migration_tls_without_certificates,

0 commit comments

Comments
 (0)