Enable migration support in libvirt

QEMU breaks on ssh connections when the nova user has no login shell.
Since the bug was discovered during live migration, this log snippet
gives the error retrieved from nova:

2014-07-08 16:59:23.894 28674 ERROR nova.virt.libvirt.driver [-]
[instance: 61fe562c-7879-49c8-84b9-b100445414aa] Live Migration failure:
operation failed: Failed to connect to remote libvirt URI
qemu+ssh://nova@compute1/system?no_verify=1&keyfile=/etc/nova/ssh/nova_migration_key:
packet 1416128879 bytes received from server too large, want 16777216

This patch enables live migration when the nova user is set-up with
/sbin/nologin by enabling migration support in nova::compute::libvirt.
The puppet module sets the listen_tcp option to 1 whe migration is
enabled.

Closes bug 1340833

Change-Id: Ic78e631e1099dcc0c500eef2998b8a6c4f5d5f7b
(cherry picked from commit 34fe9b24d8)
This commit is contained in:
Vladan Popovic
2014-07-14 12:48:17 +02:00
committed by Martin Magr
parent 2409a45a86
commit fff859522a

View File

@@ -26,6 +26,7 @@ class { 'nova::compute::libvirt':
libvirt_virt_type => "$libvirt_virt_type",
libvirt_cpu_mode => "$libvirt_cpu_mode",
vncserver_listen => "0.0.0.0",
migration_support => true,
}
exec {'load_kvm':