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
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) . nova/instances *(rw,sync, no_root_ squash) ' > /etc/exports flag=VIR_ MIGRATE_ UNDEFINE_ SOURCE, VIR_MIGRATE_ PEER2PEER, VIR_MIGRATE_ LIVE nova/instances/ bandwidth= 0 retry_count= 30 uri=qemu+ tcp://% s/system manager_ interval= 0 mount_point_ base=/var/ lib/nova/ instances/
2. add to exports : echo '/var/lib/
3. add/change the following to nova.conf file:
vncserver_listen = 0.0.0.0
live_migration_
instances_path = /var/lib/
live_migration_
live_migration_
live_migration_
image_cache_
glusterfs_
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 libvirtd. conf
6. change to the following in /etc/libvirt/
listen_tls = 0
isten_tcp = 1
auth_tcp = "none"
7. change to the following in /etc/sysconfig/ libvirtd : ARGS="- -listen"
LIBVIRTD_
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