Skip to content

Commit 7d144e1

Browse files
authored
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>
1 parent fa7c1e2 commit 7d144e1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/integration/smoke/test_vm_snapshots.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,8 @@ def test_change_service_offering_for_vm_with_snapshots(self):
513513
virtual_machine.stop(self.apiclient)
514514
except Exception as e:
515515
self.fail("Failed to stop VM: %s" % e)
516-
516+
517+
time.sleep(30)
517518
# 8) Revert to VM Snapshot
518519
self.debug("Revert to vm snapshot: %s" % vm_snapshot.id)
519520
try:

0 commit comments

Comments
 (0)