Fixed test_escalations_instances.py - Stop VM before detaching root volumes

This commit is contained in:
Gaurav Aradhye 2014-07-30 19:33:51 +05:30 committed by Girish Shilamkar
parent cfbbc81a82
commit 0b6996bef6
1 changed files with 3 additions and 0 deletions

View File

@ -2632,6 +2632,9 @@ class TestInstances(cloudstackTestCase):
len(list_volumes_page1),
"VM's volume count is not matching in page 1"
)
# stopping VM before detaching volumes
vm_created.stop(self.userapiclient)
# Detaching all the volumes attached from VM
for i in range(0, len(list_volumes_page1)):
vm_created.detach_volume(