Created
May 29, 2017 12:23
-
-
Save prasanjit-/b1bcd23976ab8a60b7ab6dd5ee1555ce to your computer and use it in GitHub Desktop.
Configuring LBAAS in Openstack Ocata on CentOS 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#LBAAS v2 | |
- On Controller & Network Node: | |
yum upgrade | |
yum -y install openstack-neutron-lbaas haproxy | |
- Enable the LoadBalancerPluginv2 inside the /etc/neutron/neutron.conf -- | |
crudini --set /etc/neutron/neutron.conf DEFAULT service_plugins router,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2 | |
- Enable the HAProxy namespace driver inside the/etc/neutron/neutron_lbaas.conf file | |
crudini --set /etc/neutron/neutron_lbaas.conf service_providers service_provider LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default | |
- In /etc/neutron/lbaas_agent.ini change the | |
[DEFAULT] | |
interface_driver = linuxbridge # Or neutron.agent.linux.interface.OVSInterfaceDriver | |
- Run database migration | |
neutron-db-manage --subproject neutron-lbaas upgrade head | |
- Source Adminrc | |
. adminrc | |
- Restart Neutron service and LBAAS Agent | |
service neutron-server restart | |
service neutron-lbaasv2-agent restart | |
- Check the status: | |
neutron agent-list --fields agent_type --fields alive | |
+----------------------+-------+ | |
| agent_type | alive | | |
+----------------------+-------+ | |
| Open vSwitch agent | :-) | | |
| Metadata agent | :-) | | |
| DHCP agent | :-) | | |
| Loadbalancerv2 agent | :-) | | |
| L3 agent | :-) | | |
+----------------------+-------+ | |
- Add to Horizon: | |
Add LBaaS panels to Dashboard¶ | |
The Dashboard panels for managing LBaaS v2 are available starting with the Mitaka release. | |
Clone the neutron-lbaas-dashboard repository and check out the release branch that matches the installed version of Dashboard: | |
$ git clone https://git.openstack.org/openstack/neutron-lbaas-dashboard | |
$ cd neutron-lbaas-dashboard | |
$ git checkout OPENSTACK_RELEASE | |
Install the Dashboard panel plug-in: | |
$ python setup.py install | |
(If you get pbr error do this: | |
yum install http://cbs.centos.org/kojifiles/packages/python-pbr/2.0.0/1.el7/noarch/python2-pbr-2.0.0-1.el7.noarch.rpm) | |
Copy the _1481_project_ng_loadbalancersv2_panel.py file from the neutron-lbaas-dashboard/enabled directory into the Dashboard openstack_dashboard/local/enabled directory. | |
This step ensures that Dashboard can find the plug-in when it enumerates all of its available panels. | |
Enable the plug-in in Dashboard by editing the local_settings.py file and setting enable_lb to True in the OPENSTACK_NEUTRON_NETWORK dictionary. | |
If Dashboard is configured to compress static files for better performance (usually set through COMPRESS_OFFLINE in local_settings.py), optimize the static files again: | |
$ ./manage.py collectstatic | |
$ ./manage.py compress | |
Restart Apache to activate the new panel: | |
$ sudo service apache2 restart | |
To find the panel, click on Project in Dashboard, then click the Network drop-down menu and select Load Balancers. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment