Add support for neutron provider networks

Kolla provides a flag, enable_neutron_provider_networks, to enable
virtualised compute nodes to access provider (e.g. flat, VLAN) networks.

In kayobe, we now connect compute nodes to the external networks when
this flag is set. This ensures that the OVS network on compute nodes
is wired into the external networks.

Change-Id: Ida3d8eb2e2bfc95f6007c105ce410b3e5d360afe
Story: 2002636
Task: 22278
This commit is contained in:
Mark Goddard 2018-06-21 13:16:23 +00:00
parent 5f56c5acf4
commit 2803950422
3 changed files with 6 additions and 4 deletions

View File

@ -16,9 +16,10 @@ compute_network_interfaces: >
# List of default networks to which compute nodes are attached.
compute_default_network_interfaces: >
{{ [provision_oc_net_name,
internal_net_name,
storage_net_name] | unique | list }}
{{ ([provision_oc_net_name,
internal_net_name,
storage_net_name] +
(external_net_names if kolla_enable_neutron_provider_networks | bool else [])) | unique | list }}
# List of extra networks to which compute nodes are attached.
compute_extra_network_interfaces: []

View File

@ -324,6 +324,7 @@ kolla_enable_monasca: "no"
kolla_enable_murano: "no"
kolla_enable_neutron: "yes"
kolla_enable_neutron_lbaas: "no"
kolla_enable_neutron_provider_networks: "no"
kolla_enable_nova: "yes"
kolla_enable_osprofiler: "no"
kolla_enable_sahara: "no"

View File

@ -72,7 +72,7 @@
# Configure virtual ethernet patch links to connect the workload provision
# and external network bridges to the Neutron OVS bridge.
- name: Ensure OVS patch links exist
hosts: network
hosts: network:compute
tags:
- config
- network