Enable new LBaaS panel in Horizon

The new LBaaS v2 panel for Horizon in Mitaka and Newton is installed
as a plugin. This patch enables the plugin as long as
`horizon_enable_neutron_lbaas` is set to True. The reference to the
older built-in LBaaS dashboard has been removed since it only works
with LBaaS v1.

Release notes are included with the patch.

Depends-On: I2d5300d4d5b02df3351ab52b1be32dd60241d34b
Change-Id: I2b1d77983598fb14fbf9ff7f23870cf767135811
This commit is contained in:
Major Hayden 2016-05-04 15:38:42 -05:00
parent 2fe3566a29
commit 568debe270
4 changed files with 20 additions and 2 deletions

View File

@ -182,14 +182,15 @@ horizon_requires_pip_packages:
horizon_pip_packages: horizon_pip_packages:
- django-appconf - django-appconf
- django-openstack-auth
- greenlet - greenlet
- horizon - horizon
- keystonemiddleware - keystonemiddleware
- MySQL-python - MySQL-python
- PyMySQL - PyMySQL
- neutron-lbaas-dashboard
- oslo.config - oslo.config
- ply - ply
- pycrypto - pycrypto
- python-memcached - python-memcached
- python-keystoneclient - python-keystoneclient
- django-openstack-auth

View File

@ -0,0 +1,9 @@
---
features:
- |
The new LBaaS v2 dashboard is available in Horizon. Deployers can enable
the panel by setting the following Ansible variable:
.. code-block:: yaml
horizon_enable_neutron_lbaas: True

View File

@ -56,6 +56,15 @@
tags: tags:
- horizon-branding - horizon-branding
- name: Enable the neutron-lbaas-dashboard Horizon panel
file:
src: "{{ horizon_venv_lib_dir }}/neutron_lbaas_dashboard/enabled/_1481_project_ng_loadbalancersv2_panel.py"
path: "{{ horizon_venv_lib_dir }}/openstack_dashboard/local/enabled/_1481_project_ng_loadbalancersv2_panel.py"
state: "{{ (horizon_enable_neutron_lbaas | bool) | ternary('link', 'absent') }}"
notify: Restart apache2
tags:
- horizon-configs
- name: Create horizon links - name: Create horizon links
file: file:
src: "{{ item.src }}" src: "{{ item.src }}"

View File

@ -269,7 +269,6 @@ OPENSTACK_NEUTRON_NETWORK = {
'enable_ipv6': False, 'enable_ipv6': False,
'enable_distributed_router': False, 'enable_distributed_router': False,
'enable_ha_router': False, 'enable_ha_router': False,
'enable_lb': {{ horizon_enable_neutron_lbaas | bool }},
'enable_firewall': {{ horizon_enable_neutron_fwaas | bool }}, 'enable_firewall': {{ horizon_enable_neutron_fwaas | bool }},
'enable_vpn': {{ horizon_enable_neutron_vpnaas | bool }}, 'enable_vpn': {{ horizon_enable_neutron_vpnaas | bool }},
'enable_fip_topology_check': True, 'enable_fip_topology_check': True,