aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamYaple <sam@yaple.net>2015-12-27 15:18:05 +0000
committerSamYaple <sam@yaple.net>2016-01-05 15:50:35 +0000
commit31b2b471c098ad79d02a2007777e122da0426e00 (patch)
tree22b1b0f54c5cce3849bc33c494d3c22cfd53efc8
parent58daa10ae30cc750e5f8f3f5e512f444d12aa5f7 (diff)
downloadkolla-31b2b471c098ad79d02a2007777e122da0426e00.tar.gz
kolla-31b2b471c098ad79d02a2007777e122da0426e00.zip
Fix broken nova-compute/nova-libvirt
Currently the state of master has nova_compute unable to talk to nova-libvirt. There have been some efforts to fix this, but they have failed for various reasons. This puts the connection type for libvirt from a socket to connecting to the already-open tcp connection thus restoring the ability for nova-compute to talk to nova-libvirt and function. Change-Id: I5a6c39bb16159a2924a93a831e3c53cedd0ca7a1 Partially-Implements: blueprint drop-root
-rw-r--r--ansible/roles/nova/templates/nova.conf.j23
1 files changed, 2 insertions, 1 deletions
diff --git a/ansible/roles/nova/templates/nova.conf.j2 b/ansible/roles/nova/templates/nova.conf.j2
index e9b60eb4d..9aad3ef1a 100644
--- a/ansible/roles/nova/templates/nova.conf.j2
+++ b/ansible/roles/nova/templates/nova.conf.j2
@@ -137,8 +137,9 @@ project_name = service
username = nova
password = {{ nova_keystone_password }}
-{% if enable_ceph | bool %}
[libvirt]
+connection_uri = "qemu+tcp://{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}/system"
+{% if enable_ceph | bool %}
images_type = rbd
images_rbd_pool = {{ ceph_nova_pool_name }}
images_rbd_ceph_conf = /etc/ceph/ceph.conf