Skip to content

Commit

Permalink
live migration provision fix
Browse files Browse the repository at this point in the history
Closes-Bug: #1455259
Added checks to avoid provisioning live migration on nodes
    that have hypervisor other than kvm.

Change-Id: Iebf1a3a5057adfba8814b3642a9272a2f66ee4c5
  • Loading branch information
Jeya ganesh babu J committed May 22, 2015
1 parent 6b7936b commit 5eb9915
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fabfile/tasks/storage/provision.py
Expand Up @@ -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)
Expand Down

0 comments on commit 5eb9915

Please sign in to comment.