Comment 2 for bug 1251241

Revision history for this message
Dafna Ron (dron-3) wrote :

This is how I configured my setup to be able to live migrate instances with gluster storage:

1. create a shared mount (I used the existing /var/lib/nova/instances).
2. add to exports : echo '/var/lib/nova/instances *(rw,sync,no_root_squash)' > /etc/exports
3. add/change the following to nova.conf file:
vncserver_listen = 0.0.0.0
live_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE
instances_path = /var/lib/nova/instances/
live_migration_bandwidth=0
live_migration_retry_count=30
live_migration_uri=qemu+tcp://%s/system
image_cache_manager_interval=0
glusterfs_mount_point_base=/var/lib/nova/instances/

4. mount the storage:

mount <Server-Name>:/<share_on_storage> /var/lib/nova/instances (mount should work now!)

5. Run: openstack-config --set /etc/nova/nova.conf DEFAULT novncproxy_base_url "http://$SERVICE_HOST:6080/vnc_auto.html
6. change to the following in /etc/libvirt/libvirtd.conf
listen_tls = 0
isten_tcp = 1
auth_tcp = "none"

7. change to the following in /etc/sysconfig/libvirtd :
LIBVIRTD_ARGS="--listen"

8. change the following in /etc/libvirt/qemu.conf :
user = "root"
group = "root"

9. selinux and iptables should be configured correctly

10. restart all relevant services on all of the hosts