LBaaS Installation

Ref:

https://docs.openstack.org/newton/networking-guide/config-lbaas.html


Just make sure each server has time synced

ntpdate time.stdtime.gov.tw

1. install packages

yum install -y openstack-neutron-lbaas
yum install python-pecan

2.
#/etc/neutron/neutron_lbaas.conf
or /etc/neutron/neutorn.conf

[service_providers]
service_provider=LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
  1. **Add service plugin for LBaaS API v2 under default section of the /etc/neutron/neutron.conf **
[DEFAULT]
...

service_plugins=neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2
  1. **Run the update script to add LBaaS fields in the neutron database **
neutron-db-manage --service lbaas --config-file /etc/neutron/neutron.conf upgrade heads
  1. **Restart the neutron-server service **
systemctl restart neutron-server

6.

systemctl restart neutron-lbaasv2-agent

7. #/etc/neutorn/lbaas_agent.ini

[DEFAULT]
interface_driver = openvswitch
device_driver = neutron_lbaas.drivers.haproxy.namespace_driver.HaproxyNSDriver

Delete LbaaS DB, because newly created loadbalancer can be deleted by command if in create_pendding state

Mysql:
use neutrun;

show columns from lbaas_loadbalancers;
select project_id,name  from lbaas_loadbalancers;
select *from lbaas_loadbalancers;

#得先删除loadbalance statistics ref loadbanlancers
delete from lbaas_loadbalancer_statistics where loadbalancer_id='e1130ba5-608b-415d-9d5b-4b4d76382b6e';
delete from lbaas_loadbalancers where id='e1130ba5-608b-415d-9d5b-4b4d76382b6e';

results for ""

    No results matching ""