Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix migrate vol xen vmware test #2755

Merged
merged 2 commits into from Aug 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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