From 4f4d8e3d161162483b9ef702a33a895c854599ac Mon Sep 17 00:00:00 2001 From: Giulio Fidente Date: Thu, 8 Jan 2015 07:13:48 -0500 Subject: [PATCH] Add parameter to manage usage of Neutron l3_ha option This change will allow for the enablement of Neutron routers HA via the new NeutronL3HA parameter. Change-Id: Ia5f7c0b4e89159456482e840c50d166ec5f25d4c Implements: blueprint tripleo-icehouse-ha-production-configuration --- compute-config-puppet.yaml | 2 +- compute-config.yaml | 1 + compute.yaml | 5 +++++ controller-config.yaml | 1 + controller.yaml | 4 ++++ nova-compute-config.yaml | 1 + nova-compute-instance.yaml | 5 +++++ overcloud-source.yaml | 7 +++++++ overcloud-without-mergepy.yaml | 6 ++++++ 9 files changed, 31 insertions(+), 1 deletion(-) diff --git a/compute-config-puppet.yaml b/compute-config-puppet.yaml index 8414579cf8..5ad94f9898 100644 --- a/compute-config-puppet.yaml +++ b/compute-config-puppet.yaml @@ -91,7 +91,7 @@ resources: neutron_metadata_proxy_shared_secret: {get_input: neutron_metadata_proxy_shared_secret} neutron_mechanism_drivers: {get_input: neutron_mechanism_drivers} neutron_allow_l3agent_failover: {get_input: neutron_allow_l3agent_failover} - neutron_allow_l3agent_failover: {get_input: neutron_allow_l3agent_failover} + neutron_l3_ha: {get_input: neutron_l3_ha} neutron_public_interface_raw_device: {get_input: neutron_public_interface_raw_device} admin_password: {get_input: admin_password} nova::rabbit_host: {get_input: rabbit_host} diff --git a/compute-config.yaml b/compute-config.yaml index 9698cc3bf6..872c9f7aa3 100644 --- a/compute-config.yaml +++ b/compute-config.yaml @@ -50,6 +50,7 @@ resources: metadata_proxy_shared_secret: {get_input: neutron_metadata_proxy_shared_secret} mechanism_drivers: {get_input: neutron_mechanism_drivers} allow_automatic_l3agent_failover: {get_input: neutron_allow_l3agent_failover} + l3_ha: {get_input: neutron_l3_ha} ovs: local_ip: {get_input: neutron_local_ip} tenant_network_type: {get_input: neutron_tenant_network_type} diff --git a/compute.yaml b/compute.yaml index 66d4bef025..dbeeeb0caa 100644 --- a/compute.yaml +++ b/compute.yaml @@ -172,6 +172,10 @@ parameters: default: 'True' description: Allow automatic l3-agent failover type: string + NeutronL3HA: + default: 'False' + description: Whether to enable l3-agent HA + type: string NeutronAgentMode: default: 'dvr_snat' description: Agent mode for the neutron-l3-agent on the controller hosts @@ -297,6 +301,7 @@ resources: neutron_metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret} neutron_mechanism_drivers: {get_param: NeutronMechanismDrivers} neutron_allow_l3agent_failover: {get_param: NeutronAllowL3AgentFailover} + neutron_l3_ha: {get_param: NeutronL3HA} neutron_public_interface_raw_device: {get_param: NeutronPublicInterfaceRawDevice} admin_password: {get_param: AdminPassword} rabbit_host: {get_param: RabbitHost} diff --git a/controller-config.yaml b/controller-config.yaml index fad8879f81..b58d20e3dd 100644 --- a/controller-config.yaml +++ b/controller-config.yaml @@ -87,6 +87,7 @@ resources: router_distributed: {get_input: neutron_router_distributed} mechanism_drivers: {get_input: neutron_mechanism_drivers} allow_automatic_l3agent_failover: {get_input: neutron_allow_l3agent_failover} + l3_ha: {get_input: neutron_l3_ha} ovs: enable_tunneling: {get_input: neutron_enable_tunneling} local_ip: {get_input: controller_host} diff --git a/controller.yaml b/controller.yaml index 57b07718ca..059acba2de 100644 --- a/controller.yaml +++ b/controller.yaml @@ -220,6 +220,10 @@ parameters: default: 'True' description: Allow automatic l3-agent failover type: string + NeutronL3HA: + default: 'False' + description: Whether to enable l3-agent HA + type: string NeutronEnableTunnelling: type: string default: "True" diff --git a/nova-compute-config.yaml b/nova-compute-config.yaml index 8129cfa10f..048881c077 100644 --- a/nova-compute-config.yaml +++ b/nova-compute-config.yaml @@ -37,6 +37,7 @@ resources: metadata_proxy_shared_secret: {get_input: neutron_metadata_proxy_shared_secret} mechanism_drivers: {get_input: neutron_mechanism_drivers} allow_automatic_l3agent_failover: {get_input: neutron_allow_l3agent_failover} + l3_ha: {get_input: neutron_l3_ha} ovs: local_ip: {get_input: neutron_local_ip} tenant_network_type: {get_input: neutron_tenant_network_type} diff --git a/nova-compute-instance.yaml b/nova-compute-instance.yaml index 70172cb25d..e68c61f913 100644 --- a/nova-compute-instance.yaml +++ b/nova-compute-instance.yaml @@ -135,6 +135,10 @@ parameters: default: 'True' description: Allow automatic l3-agent failover type: string + NeutronL3HA: + default: 'False' + description: Whether to enable l3-agent HA + type: string NovaApiHost: type: string NovaComputeDriver: @@ -234,6 +238,7 @@ resources: neutron_metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret} neutron_mechanism_drivers: {get_param: NeutronMechanismDrivers} neutron_allow_l3agent_failover: {get_param: NeutronAllowL3AgentFailover} + neutron_l3_ha: {get_param: NeutronL3HA} admin_password: {get_param: AdminPassword} rabbit_host: {get_param: RabbitHost} rabbit_username: {get_param: RabbitUserName} diff --git a/overcloud-source.yaml b/overcloud-source.yaml index a3d1e34ff5..5728c95138 100644 --- a/overcloud-source.yaml +++ b/overcloud-source.yaml @@ -295,6 +295,10 @@ parameters: default: 'True' description: Allow automatic l3-agent failover type: string + NeutronL3HA: + default: 'False' + description: Whether to enable l3-agent HA + type: string NovaComputeDriver: default: libvirt.LibvirtDriver type: string @@ -448,6 +452,8 @@ resources: get_param: NeutronMechanismDrivers NeutronAllowL3AgentFailover: get_param: NeutronAllowL3AgentFailover + NeutronL3HA: + get_param: NeutronL3HA NovaCompute0AllNodesDeployment: type: FileInclude Path: nova-compute-instance.yaml @@ -614,6 +620,7 @@ resources: router_distributed: {get_param: NeutronDVR} mechanism_drivers: {get_param: NeutronMechanismDrivers} allow_automatic_l3agent_failover: {get_param: NeutronAllowL3AgentFailover} + l3_ha: {get_param: NeutronL3HA} ovs: enable_tunneling: 'True' local_ip: diff --git a/overcloud-without-mergepy.yaml b/overcloud-without-mergepy.yaml index f704abaa11..182fcab5e5 100644 --- a/overcloud-without-mergepy.yaml +++ b/overcloud-without-mergepy.yaml @@ -139,6 +139,10 @@ parameters: default: 'True' description: Allow automatic l3-agent failover type: string + NeutronL3HA: + default: 'False' + description: Whether to enable l3-agent HA + type: string NovaPassword: default: unset description: The password for the nova service account, used by nova-api. @@ -509,6 +513,7 @@ resources: NeutronAgentMode: {get_param: NeutronAgentMode} NeutronMechanismDrivers: {get_param: NeutronMechanismDrivers} NeutronAllowL3AgentFailover: {get_param: NeutronAllowL3AgentFailover} + NeutronL3HA: {get_param: NeutronL3HA} NeutronNetworkType: {get_param: NeutronNetworkType} NeutronTunnelTypes: {get_param: NeutronTunnelTypes} NovaPassword: {get_param: NovaPassword} @@ -567,6 +572,7 @@ resources: NeutronPublicInterfaceRawDevice: {get_param: NeutronPublicInterfaceRawDevice} NeutronMechanismDrivers: {get_param: NeutronMechanismDrivers} NeutronAllowL3AgentFailover: {get_param: NeutronAllowL3AgentFailover} + NeutronL3HA: {get_param: NeutronL3HA} NovaApiHost: {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]} NovaComputeDriver: {get_param: NovaComputeDriver} NovaComputeExtraConfig: {get_param: NovaComputeExtraConfig}