compute: include VIR_MIGRATE_TUNNELLED when doing VM shared storage
authorEmilien Macchi <emilien@redhat.com>
Tue, 1 Mar 2016 13:24:25 +0000 (08:24 -0500)
committerEmilien Macchi <emilien@redhat.com>
Thu, 10 Mar 2016 22:42:41 +0000 (17:42 -0500)
commit27f1bbd41447bb7aceed991f28d565b4ace95bdf
tree865486d6b8c5ef02f925958282d6433e953f252c
parentddf66ed256fcc6b2a5a09ae1f7646df6435b4eb4
compute: include VIR_MIGRATE_TUNNELLED when doing VM shared storage

This patch makes sure:

* When doing shared storage
Nova is configured with block_migration_flag and live_migration_flag = '(...),VIR_MIGRATE_TUNNELLED'
flag for security improvements.

* When not doing shared storage
Nova is not configured with VIR_MIGRATE_TUNNELLED flag because it's not
supported by Qemu yet. We need to make sure the value is unset otherwise
live migration will fail when not running shared storage for VMs.

Note: this patch will be backport to stable branches. In a further
iteration, we'll probably use live_migration_tunnelled new Nova
parameter which is a simplier way to manage this feature.

Co-Authored-By: Kashyap Chamarthy <kchamart@redhat.com>
Change-Id: I557c1624ee944a32b1831d504f7b189308cd1961
puppet/manifests/overcloud_compute.pp