From 96443f586d13979675f1beab503e56d8e706c3ae Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Thu, 5 May 2016 11:11:35 -0500 Subject: [PATCH] Automatically enable neutron ha router capabilities This change will automatically set the variable `horizon_enable_ha_router` to True if the neutron plugin type is ML2 and the environment has >=2 l3 agent nodes. This will provide extra functionality in horizon to manage HA routers. Change-Id: I73c48163927673900befd4dbce631d0ee79994e5 Depends-On: I5edb7576d977bc558d9411dca62a029eb1856000 Signed-off-by: Kevin Carter --- playbooks/inventory/group_vars/hosts.yml | 4 ++++ .../notes/make-ha-router-a-toggle-9d87d688e8d506c9.yaml | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 releasenotes/notes/make-ha-router-a-toggle-9d87d688e8d506c9.yaml diff --git a/playbooks/inventory/group_vars/hosts.yml b/playbooks/inventory/group_vars/hosts.yml index 93fa9ed103..7f969776f8 100644 --- a/playbooks/inventory/group_vars/hosts.yml +++ b/playbooks/inventory/group_vars/hosts.yml @@ -176,6 +176,9 @@ neutron_service_in_ldap: "{{ service_ldap_backend_enabled }}" neutron_rabbitmq_userid: neutron neutron_rabbitmq_vhost: /neutron +# Neutron Plugins +neutron_plugin_type: ml2.lxb + ## Glance glance_service_port: 9292 @@ -233,6 +236,7 @@ horizon_enable_cinder_backup: "{% if cinder_service_backup_program_enabled is de horizon_enable_neutron_lbaas: "{% if neutron_plugin_base is defined and ('lbaas' in neutron_plugin_base or 'neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPlugin' in neutron_plugin_base) %}True{% else %}False{% endif %}" horizon_enable_neutron_fwaas: "{% if neutron_plugin_base is defined and 'firewall' in neutron_plugin_base %}True{% else %}False{% endif %}" horizon_enable_neutron_vpnaas: "{% if neutron_plugin_base is defined and 'vpnaas' in neutron_plugin_base %}True{% else %}False{% endif %}" +horizon_enable_ha_router: "{% if 'ml2' in neutron_plugin_type and (groups['neutron_l3_agent'] | length >= 2) %}True{% else %}False{% endif %}" horizon_rabbitmq_userid: horizon horizon_rabbitmq_vhost: /horizon diff --git a/releasenotes/notes/make-ha-router-a-toggle-9d87d688e8d506c9.yaml b/releasenotes/notes/make-ha-router-a-toggle-9d87d688e8d506c9.yaml new file mode 100644 index 0000000000..8b9165fb55 --- /dev/null +++ b/releasenotes/notes/make-ha-router-a-toggle-9d87d688e8d506c9.yaml @@ -0,0 +1,4 @@ +--- +features: + - Neutron HA router capabilities in Horizon will be enabled automatically if + the neutron plugin type is ML2 and environment has >=2 L3 agent nodes.