Skip to content

Commit

Permalink
Fix migrate vol xen vmware test (#2755)
Browse files Browse the repository at this point in the history
  • Loading branch information
borisstoyanov authored and DaanHoogland committed Aug 17, 2018
1 parent 8993c0e commit bd7a09b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/integration/smoke/test_volumes.py
Expand Up @@ -929,11 +929,16 @@ def test_11_migrate_volume_and_change_offering(self):
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
Expand Down

0 comments on commit bd7a09b

Please sign in to comment.