Fix migrate vol xen vmware test (#2755)

This commit is contained in:
Boris Stoyanov - a.k.a Bobby 2018-08-17 14:32:15 +03:00 committed by dahn
parent 8993c0ea99
commit bd7a09b5d9

View File

@ -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