cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ro...@apache.org
Subject [cloudstack] branch 4.11 updated: CLOUDSTACK-10227: Add delay before reverting VM snapshot (#2407)
Date Mon, 15 Jan 2018 10:27:53 GMT
This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.11
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.11 by this push:
     new 7d144e1  CLOUDSTACK-10227: Add delay before reverting VM snapshot (#2407)
7d144e1 is described below

commit 7d144e146a0ae58230398b93ce7cbdf6db180518
Author: Rohit Yadav <rohit@apache.org>
AuthorDate: Mon Jan 15 15:57:48 2018 +0530

    CLOUDSTACK-10227: Add delay before reverting VM snapshot (#2407)
    
    As discovered and discussed in #2376, adding some delay after stopping
    the VM and reverting VM snapshot passes the
    `test_change_service_offering_for_vm_with_snapshots` test case. The
    suspect here is userVMDao or background vmsync that may not update
    the VM state to PowerOff.
    
    Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
---
 test/integration/smoke/test_vm_snapshots.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/integration/smoke/test_vm_snapshots.py b/test/integration/smoke/test_vm_snapshots.py
index 4bfe66a..a6803b8 100644
--- a/test/integration/smoke/test_vm_snapshots.py
+++ b/test/integration/smoke/test_vm_snapshots.py
@@ -513,7 +513,8 @@ class TestChangeServiceOfferingForVmWithSnapshots(cloudstackTestCase):
             virtual_machine.stop(self.apiclient)
         except Exception as e:
             self.fail("Failed to stop VM: %s" % e)
-        
+
+        time.sleep(30)
         # 8) Revert to VM Snapshot
         self.debug("Revert to vm snapshot: %s" % vm_snapshot.id)
         try:

-- 
To stop receiving notification emails like this one, please contact
['"commits@cloudstack.apache.org" <commits@cloudstack.apache.org>'].

Mime
View raw message