Skip to content

Commit 05df0cb

Browse files
author
Girish Shilamkar
committed
Revert "CLOUDSTACK-5637: Detach volume before migrating"
This reverts commit 6c9b517.
1 parent 4dcc567 commit 05df0cb

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

test/integration/component/test_stopped_vm.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from nose.plugins.attrib import attr
2323
from marvin.cloudstackTestCase import *
2424
from marvin.cloudstackAPI import *
25-
from marvin.sshClient import SshClient
2625
from marvin.integration.lib.utils import *
2726
from marvin.integration.lib.base import *
2827
from 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

Comments
 (0)