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 9d83dcdfa1e321f07067ff5f1ebf748a0609a8f6
Author: Wei Zhou <[email protected]>
AuthorDate: Mon Jul 27 16:27:48 2026 +0200

    test: add more time.sleep(10)
---
 test/integration/smoke/test_host_maintenance.py | 4 ++++
 test/integration/smoke/test_usage.py            | 2 ++
 test/integration/smoke/test_vm_life_cycle.py    | 1 +
 3 files changed, 7 insertions(+)

diff --git a/test/integration/smoke/test_host_maintenance.py 
b/test/integration/smoke/test_host_maintenance.py
index 9a84f325ede..93419951ff6 100644
--- a/test/integration/smoke/test_host_maintenance.py
+++ b/test/integration/smoke/test_host_maintenance.py
@@ -27,6 +27,8 @@ from marvin.lib.decoratorGenerators import skipTestIf
 from distutils.util import strtobool
 from marvin.sshClient import SshClient
 
+import time
+
 _multiprocess_shared_ = False
 MIN_VMS_FOR_TEST = 3
 
@@ -349,6 +351,7 @@ class TestHostMaintenance(TestHostMaintenanceBase):
             if (no_vm_req > 0):
                 self.logger.debug("Creating vms = {}".format(no_vm_req))
                 self.vmlist = self.createVMs(listHost[0].id, no_vm_req)
+                time.sleep(10)
 
         try:
             migrations_finished = 
self.hostPrepareAndCancelMaintenance(listHost[0].id, listHost[1].id)
@@ -413,6 +416,7 @@ class TestHostMaintenance(TestHostMaintenanceBase):
                 if (no_vm_req > 0):
                     self.logger.debug("Creating vms = {}".format(no_vm_req))
                     self.vmlist = self.createVMs(listHost[0].id, no_vm_req, 
"taggedsmall")
+                    time.sleep(10)
 
             # Attempt putting host in maintenance and check if 
ErrorInMaintenance state is reached
             self.prepare_host_for_maintenance(target_host_id)
diff --git a/test/integration/smoke/test_usage.py 
b/test/integration/smoke/test_usage.py
index fef0d8fe3c1..f4bb14ba841 100644
--- a/test/integration/smoke/test_usage.py
+++ b/test/integration/smoke/test_usage.py
@@ -43,6 +43,7 @@ from marvin.lib.common import (get_zone,
                                list_storage_pools,
                                find_storage_pool_type)
 
+import time
 
 
 class Services:
@@ -782,6 +783,7 @@ class TestVolumeUsage(cloudstackTestCase):
         )
         rool_volume_pool = rool_volume_pool_response[0]
         try:
+            time.sleep(10)
             self.virtual_machine.attach_volume(self.apiclient,volume_uploaded)
         except Exception as e:
             self.debug("Exception %s: " % e)
diff --git a/test/integration/smoke/test_vm_life_cycle.py 
b/test/integration/smoke/test_vm_life_cycle.py
index 5ed35f81b91..677b5876080 100644
--- a/test/integration/smoke/test_vm_life_cycle.py
+++ b/test/integration/smoke/test_vm_life_cycle.py
@@ -859,6 +859,7 @@ class TestVMLifeCycle(cloudstackTestCase):
             zoneid=self.zone.id
         )
 
+        time.sleep(10)
         small_virtual_machine.attach_volume(self.apiclient, vol1)
 
         self.debug("Destroy VM - ID: %s" % small_virtual_machine.id)

Reply via email to