mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix migrate vol xen vmware test (#2755)
This commit is contained in:
parent
8993c0ea99
commit
bd7a09b5d9
@ -929,11 +929,16 @@ class TestVolumes(cloudstackTestCase):
|
||||
StoragePool.update(self.apiclient, id=pool.id, tags="")
|
||||
|
||||
self.debug("Migrating Volume-ID: %s to Pool: %s" % (volume.id, pool.id))
|
||||
livemigrate = False
|
||||
if self.virtual_machine.hypervisor.lower() == "vmware" or self.virtual_machine.hypervisor.lower() == 'xenserver':
|
||||
livemigrate = True
|
||||
|
||||
Volume.migrate(
|
||||
self.apiclient,
|
||||
volumeid = volume.id,
|
||||
storageid = pool.id,
|
||||
newdiskofferingid = large_offering.id
|
||||
newdiskofferingid = large_offering.id,
|
||||
livemigrate = livemigrate
|
||||
)
|
||||
if self.virtual_machine.hypervisor == "KVM":
|
||||
self.virtual_machine.start(self.apiclient
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user