nova: add support for a dedicated migration network

Two new parameters (migration_interface, migration_interface_address) to make
the use of a dedicated migration network possible.

Change-Id: I723c9bea9cf1881e02ba39d5318c090960c22c47
This commit is contained in:
Christian Berendt 2018-05-17 16:34:57 +02:00
parent e6c5be4b50
commit 864e589803
6 changed files with 11 additions and 4 deletions

View File

@ -163,10 +163,12 @@ kolla_external_vip_interface: "{{ network_interface }}"
api_interface: "{{ network_interface }}"
storage_interface: "{{ network_interface }}"
cluster_interface: "{{ network_interface }}"
migration_interface: "{{ network_interface }}"
tunnel_interface: "{{ network_interface }}"
octavia_network_interface: "{{ api_interface }}"
bifrost_network_interface: "{{ network_interface }}"
dns_interface: "{{ network_interface }}"
migration_interface_address: "{{ hostvars[inventory_hostname]['ansible_' + migration_interface]['ipv4']['address'] }}"
tunnel_interface_address: "{{ hostvars[inventory_hostname]['ansible_' + tunnel_interface]['ipv4']['address'] }}"
octavia_network_interface_address: "{{ hostvars[inventory_hostname]['ansible_' + octavia_network_interface]['ipv4']['address'] }}"

View File

@ -95,7 +95,7 @@
vars:
nova_ssh: "{{ nova_services['nova-ssh'] }}"
wait_for:
host: "{{ api_interface_address }}"
host: "{{ migration_interface_address }}"
port: "{{ nova_ssh_port }}"
connect_timeout: 1
timeout: 1

View File

@ -4,5 +4,5 @@ auth_tcp = "none"
ca_file = ""
log_level = 3
log_outputs = "3:file:/var/log/kolla/libvirt/libvirtd.log"
listen_addr = "{{ api_interface_address }}"
listen_addr = "{{ migration_interface_address }}"
tcp_port = "{{ nova_libvirt_port }}"

View File

@ -185,7 +185,7 @@ memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansi
{% if nova_compute_virt_type in ['kvm', 'qemu'] %}
[libvirt]
connection_uri = "qemu+tcp://{{ api_interface_address }}/system"
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 }}

View File

@ -1,5 +1,5 @@
Port {{ nova_ssh_port }}
ListenAddress {{ api_interface_address }}
ListenAddress {{ migration_interface_address }}
SyslogFacility AUTHPRIV
UsePAM yes

View File

@ -0,0 +1,5 @@
---
features:
- |
Two new parameters (migration_interface, migration_interface_address) to make
the use of a dedicated migration network possible.