Merge "Do not require valid migration_interface for controllers"
This commit is contained in:
commit
61a74c0f5b
19
ansible/roles/nova/templates/nova.conf.d/libvirt.conf.j2
Normal file
19
ansible/roles/nova/templates/nova.conf.d/libvirt.conf.j2
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
[libvirt]
|
||||||
|
connection_uri = "qemu+tcp://{{ migration_interface_address }}/system"
|
||||||
|
{% if enable_ceph | bool and nova_backend == "rbd" %}
|
||||||
|
images_type = rbd
|
||||||
|
images_rbd_pool = {{ ceph_nova_pool_name }}
|
||||||
|
images_rbd_ceph_conf = /etc/ceph/ceph.conf
|
||||||
|
rbd_user = nova
|
||||||
|
disk_cachemodes="network=writeback"
|
||||||
|
{% if nova_hw_disk_discard != '' %}
|
||||||
|
hw_disk_discard = {{ nova_hw_disk_discard }}
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
{% if nova_backend == "rbd" and external_ceph_cephx_enabled | bool %}
|
||||||
|
rbd_secret_uuid = {{ rbd_secret_uuid }}
|
||||||
|
{% endif %}
|
||||||
|
virt_type = {{ nova_compute_virt_type }}
|
||||||
|
{% if nova_libvirt_cpu_mode %}
|
||||||
|
cpu_mode = {{ nova_libvirt_cpu_mode }}
|
||||||
|
{% endif %}
|
@ -185,27 +185,13 @@ memcache_security_strategy = ENCRYPT
|
|||||||
memcache_secret_key = {{ memcache_secret_key }}
|
memcache_secret_key = {{ memcache_secret_key }}
|
||||||
memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}
|
memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}
|
||||||
|
|
||||||
|
{% if service_name == 'nova-compute' %}
|
||||||
{% if nova_compute_virt_type in ['kvm', 'qemu'] %}
|
{% if nova_compute_virt_type in ['kvm', 'qemu'] %}
|
||||||
[libvirt]
|
{# must be an include because Ansible 2.8 (and earlier) does not like defined variables referencing undefined variables: migration_interface_address here #}
|
||||||
connection_uri = "qemu+tcp://{{ migration_interface_address }}/system"
|
{# see https://github.com/ansible/ansible/issues/58835 #}
|
||||||
{% if enable_ceph | bool and nova_backend == "rbd" %}
|
{% include 'nova.conf.d/libvirt.conf.j2' %}
|
||||||
images_type = rbd
|
|
||||||
images_rbd_pool = {{ ceph_nova_pool_name }}
|
|
||||||
images_rbd_ceph_conf = /etc/ceph/ceph.conf
|
|
||||||
rbd_user = nova
|
|
||||||
disk_cachemodes="network=writeback"
|
|
||||||
{% if nova_hw_disk_discard != '' %}
|
|
||||||
hw_disk_discard = {{ nova_hw_disk_discard }}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if nova_backend == "rbd" and external_ceph_cephx_enabled | bool %}
|
|
||||||
rbd_secret_uuid = {{ rbd_secret_uuid }}
|
|
||||||
{% endif %}
|
|
||||||
virt_type = {{ nova_compute_virt_type }}
|
|
||||||
{% endif %}
|
|
||||||
{% if nova_libvirt_cpu_mode %}
|
|
||||||
cpu_mode = {{ nova_libvirt_cpu_mode }}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if nova_compute_virt_type == "vmware" %}
|
{% if nova_compute_virt_type == "vmware" %}
|
||||||
[vmware]
|
[vmware]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user