This is an automated email from the ASF dual-hosted git repository. weizhouapache pushed a commit to branch 4.23.0-ceph in repository https://gitbox.apache.org/repos/asf/cloudstack.git
commit 1cb609c877371c6a06bda0d7fbe0aad7eaeb8e72 Author: Wei Zhou <[email protected]> AuthorDate: Thu Oct 30 20:45:30 2025 +0100 test: fix test failures --- test/integration/smoke/test_vm_life_cycle.py | 3 ++- test/integration/smoke/test_vm_snapshots.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/smoke/test_vm_life_cycle.py b/test/integration/smoke/test_vm_life_cycle.py index 59e33d7d790..5ed35f81b91 100644 --- a/test/integration/smoke/test_vm_life_cycle.py +++ b/test/integration/smoke/test_vm_life_cycle.py @@ -1714,7 +1714,8 @@ class TestKVMLiveMigration(cloudstackTestCase): if target_pools is None or len(target_pools) == 0: self.skipTest("Not enough storage pools found for migration") - source_pool = list_storage_pools(self.apiclient, id=vol.storageid)[0] + volume = Volume.list(self.apiclient, id=vol.id)[0] + source_pool = list_storage_pools(self.apiclient, id=volume.storageid)[0] if source_pool.type == 'RBD' and target_pools[0].type == 'RBD': self.skipTest("Live VM migration between RBD pools is unsupported") diff --git a/test/integration/smoke/test_vm_snapshots.py b/test/integration/smoke/test_vm_snapshots.py index 7132140d4f8..7c7c4a52104 100644 --- a/test/integration/smoke/test_vm_snapshots.py +++ b/test/integration/smoke/test_vm_snapshots.py @@ -94,7 +94,6 @@ class TestVmSnapshot(cloudstackTestCase): serviceofferingid=cls.service_offering.id, mode=cls.zone.networktype ) - cls._cleanup.append(cls.virtual_machine) volumes = list_volumes( cls.apiclient, virtualmachineid=cls.virtual_machine.id,
