Revert "CLOUDSTACK-5637: Detach volume before migrating"

Volume need not be detached before being migrated.
This reverts commit 3b3adbf712.
This commit is contained in:
Girish Shilamkar 2014-01-07 12:34:17 +05:30
parent 14250413ba
commit f04da1978f
1 changed files with 4 additions and 11 deletions

View File

@ -891,8 +891,6 @@ class TestDeployVM(cloudstackTestCase):
"Running",
"VM should be in Running state after deployment"
)
self.debug("Stopping instance: %s" % self.virtual_machine.name)
self.virtual_machine.stop(self.apiclient)
self.debug("Instance is stopped!")
@ -941,11 +939,6 @@ class TestDeployVM(cloudstackTestCase):
self.storage_id = spool.id
self.storage_name = spool.name
break
self.debug("Detaching volume %s from vm %s" % (vol_response.id, self.virtual_machine.id))
self.virtual_machine.detach_volume(self.apiclient, vol_response)
self.debug("Migrating volume to storage pool: %s" % self.storage_name)
Volume.migrate(
self.apiclient,
@ -954,14 +947,14 @@ class TestDeployVM(cloudstackTestCase):
)
volume = Volume.list(
self.apiclient,
virtualmachineid=self.virtual_machine.id,
type="ROOT",
listall=True,
virtualmachineid=self.virtual_machine.id,
type='ROOT',
listall=True
)
self.assertEqual(
volume[0].storage,
self.storage_name,
"Check volume migration response vol.storage %s self.storage_name %s" % (volume[0].storage, self.storage_name))
"Check volume migration response")
return