2222from nose .plugins .attrib import attr
2323from marvin .cloudstackTestCase import *
2424from marvin .cloudstackAPI import *
25- from marvin .sshClient import SshClient
2625from marvin .integration .lib .utils import *
2726from marvin .integration .lib .base import *
2827from marvin .integration .lib .common import *
@@ -891,8 +890,6 @@ def test_09_stop_vm_migrate_vol(self):
891890 "Running" ,
892891 "VM should be in Running state after deployment"
893892 )
894-
895-
896893 self .debug ("Stopping instance: %s" % self .virtual_machine .name )
897894 self .virtual_machine .stop (self .apiclient )
898895 self .debug ("Instance is stopped!" )
@@ -941,11 +938,6 @@ def test_09_stop_vm_migrate_vol(self):
941938 self .storage_id = spool .id
942939 self .storage_name = spool .name
943940 break
944-
945- self .debug ("Detaching volume %s from vm %s" % (vol_response .id , self .virtual_machine .id ))
946-
947- self .virtual_machine .detach_volume (self .apiclient , vol_response )
948-
949941 self .debug ("Migrating volume to storage pool: %s" % self .storage_name )
950942 Volume .migrate (
951943 self .apiclient ,
@@ -954,14 +946,14 @@ def test_09_stop_vm_migrate_vol(self):
954946 )
955947 volume = Volume .list (
956948 self .apiclient ,
957- virtualmachineid = self .virtual_machine .id ,
958- type = " ROOT" ,
959- listall = True ,
949+ virtualmachineid = self .virtual_machine .id ,
950+ type = ' ROOT' ,
951+ listall = True
960952 )
961953 self .assertEqual (
962954 volume [0 ].storage ,
963955 self .storage_name ,
964- "Check volume migration response vol.storage %s self.storage_name %s" % ( volume [ 0 ]. storage , self . storage_name ) )
956+ "Check volume migration response" )
965957
966958 return
967959
0 commit comments