From 5eb991547e50a4f4c74931c9079bc4420c05acfd Mon Sep 17 00:00:00 2001 From: Jeya ganesh babu J Date: Fri, 22 May 2015 16:56:06 -0700 Subject: [PATCH] live migration provision fix Closes-Bug: #1455259 Added checks to avoid provisioning live migration on nodes that have hypervisor other than kvm. Change-Id: Iebf1a3a5057adfba8814b3642a9272a2f66ee4c5 --- fabfile/tasks/storage/provision.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fabfile/tasks/storage/provision.py b/fabfile/tasks/storage/provision.py index 0657f516b..15d9dc578 100644 --- a/fabfile/tasks/storage/provision.py +++ b/fabfile/tasks/storage/provision.py @@ -190,6 +190,11 @@ def setup_nfs_live_migration(mode): for entry in env.roledefs['compute']: for sthostname, sthostentry in zip(env.hostnames['all'], env.roledefs['all']): if entry == sthostentry: + #Add only for qemu-kvm hypervisor + hypervisor = get_hypervisor(entry) + if hypervisor != 'libvirt' and hypervisor != 'qemu' and \ + hypervisor != 'kvm' and hypervisor != 'qemu-kvm': + continue storage_hostnames.append(sthostname) storage_host_password=get_env_passwords(entry) storage_pass_list.append(storage_host_password)