Skip to content

Commit 39cc440

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 <sebastian.eydam@cyberus-technology.de> On-behalf-of: SAP julian.schindel@sap.com Signed-off-by: Julian Schindel <julian.schindel@cyberus-technology.de>
1 parent 276140e commit 39cc440

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
@@ -1461,6 +1461,17 @@ def get_ip(vm):
14611461
sender.succeed(migration_command)
14621462
wait_for_ssh(receiver)
14631463

1464+
def test_live_migration_print_versions(self):
1465+
"""
1466+
The test prints the versions of cloud-hypervisor and libvirt.
1467+
With the version information, cross-version migration tests can be validated
1468+
to use different versions.
1469+
"""
1470+
print(controllerVM.succeed("virsh version"))
1471+
print(computeVM.succeed("virsh version"))
1472+
print(controllerVM.succeed("cloud-hypervisor --version"))
1473+
print(computeVM.succeed("cloud-hypervisor --version"))
1474+
14641475

14651476
def suite():
14661477
# Test cases involving live migration sorted in alphabetical order.
@@ -1478,6 +1489,7 @@ def suite():
14781489
LibvirtTests.test_live_migration_network_lost,
14791490
LibvirtTests.test_live_migration_non_peer2peer_is_not_supported,
14801491
LibvirtTests.test_live_migration_parallel_connections,
1492+
LibvirtTests.test_live_migration_print_versions,
14811493
LibvirtTests.test_live_migration_statistics,
14821494
LibvirtTests.test_live_migration_tls,
14831495
LibvirtTests.test_live_migration_tls_without_certificates,

0 commit comments

Comments
 (0)