Parameterize network type and tunnel types

Remove the hardcoding of gre as the Neutron tenant network type for the
Overcloud. This will enable the ability to deploy an Overcloud that uses
vxlan instead of gre tunnels. A new parameter, NeutronTunnelTypes, is
added to allow configuring the tunnel_types parameter in the Neutron ML2
configuration.

This change is required by https://review.openstack.org/#/c/92913

Change-Id: I2c2e2153a61349e58ada28c87aa2338c9f00e7bd
This commit is contained in:
James Slagle
2014-08-04 20:04:18 -04:00
parent fd18617b30
commit eb7fe9bb9b
3 changed files with 31 additions and 3 deletions

View File

@@ -38,6 +38,7 @@ resources:
ovs: ovs:
local_ip: {get_input: neutron_local_ip} local_ip: {get_input: neutron_local_ip}
tenant_network_type: {get_input: neutron_tenant_network_type} tenant_network_type: {get_input: neutron_tenant_network_type}
tunnel_types: {get_input: neutron_tunnel_types}
network_vlan_ranges: {get_input: neutron_network_vlan_ranges} network_vlan_ranges: {get_input: neutron_network_vlan_ranges}
bridge_mappings: {get_input: neutron_bridge_mappings} bridge_mappings: {get_input: neutron_bridge_mappings}
enable_tunneling: {get_input: neutron_enable_tunneling} enable_tunneling: {get_input: neutron_enable_tunneling}

View File

@@ -84,6 +84,16 @@ parameters:
default: '' default: ''
description: A port to add to the NeutronPhysicalBridge. description: A port to add to the NeutronPhysicalBridge.
type: string type: string
NeutronNetworkType:
default: 'gre'
description: The tenant network type for Neutron, either gre or vxlan.
type: string
NeutronTunnelTypes:
default: 'gre'
description: |
The tunnel types for the Neutron tenant network. To specify multiple
values, use a comma separated string, like so: 'gre,vxlan'
type: string
RabbitHost: RabbitHost:
type: string type: string
RabbitUserName: RabbitUserName:
@@ -227,6 +237,7 @@ resources:
neutron_dsn: {get_param: NeutronDSN} neutron_dsn: {get_param: NeutronDSN}
neutron_local_ip: {get_attr: [NovaCompute0, networks, ctlplane, 0]} neutron_local_ip: {get_attr: [NovaCompute0, networks, ctlplane, 0]}
neutron_tenant_network_type: {get_param: NeutronNetworkType} neutron_tenant_network_type: {get_param: NeutronNetworkType}
neutron_tunnel_types: {get_param: NeutronTunnelTypes}
neutron_network_vlan_ranges: {get_param: NeutronNetworkVLANRanges} neutron_network_vlan_ranges: {get_param: NeutronNetworkVLANRanges}
neutron_bridge_mappings: {get_param: NeutronBridgeMappings} neutron_bridge_mappings: {get_param: NeutronBridgeMappings}
neutron_enable_tunneling: {get_param: NeutronEnableTunnelling} neutron_enable_tunneling: {get_param: NeutronEnableTunnelling}

View File

@@ -235,7 +235,17 @@ parameters:
description: Neutron ID for ctlplane network. description: Neutron ID for ctlplane network.
NeutronDnsmasqOptions: NeutronDnsmasqOptions:
default: 'dhcp-option-force=26,1400' default: 'dhcp-option-force=26,1400'
description: Dnsmasq options for neutron-dhcp-agent. The default value here forces MTU to be set to 1400 to account for the gre tunnel overhead. description: Dnsmasq options for neutron-dhcp-agent. The default value here forces MTU to be set to 1400 to account for the tunnel overhead.
type: string
NeutronNetworkType:
default: 'gre'
description: The tenant network type for Neutron, either gre or vxlan.
type: string
NeutronTunnelTypes:
default: 'gre'
description: |
The tunnel types for the Neutron tenant network. To specify multiple
values, use a comma separated string, like so: 'gre,vxlan'
type: string type: string
controllerImage: controllerImage:
type: string type: string
@@ -393,7 +403,10 @@ resources:
- - mysql://neutron:unset@ - - mysql://neutron:unset@
- *compute_database_host - *compute_database_host
- /ovs_neutron - /ovs_neutron
NeutronNetworkType: "gre" NeutronNetworkType:
get_param: NeutronNetworkType
NeutronTunnelTypes:
get_param: NeutronTunnelTypes
NeutronEnableTunnelling: "True" NeutronEnableTunnelling: "True"
NeutronFlatNetworks: NeutronFlatNetworks:
get_param: NeutronFlatNetworks get_param: NeutronFlatNetworks
@@ -580,7 +593,10 @@ resources:
public_interface_tag: public_interface_tag:
get_param: NeutronPublicInterfaceTag get_param: NeutronPublicInterfaceTag
physical_bridge: br-ex physical_bridge: br-ex
tenant_network_type: gre tenant_network_type:
get_param: NeutronNetworkType
tunnel_types:
get_param: NeutronTunnelTypes
ovs_db: ovs_db:
Fn::Join: Fn::Join:
- '' - ''