Devstack with LBAAS

The below local.conf will build the devstack with neutron LBAAS (+haproxy)

cloud@lbaas2:~$ git clone https://github.com/openstack-dev/devstack
Cloning into 'devstack'...
remote: Counting objects: 35002, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 35002 (delta 5), reused 0 (delta 0), pack-reused 34990
Receiving objects: 100% (35002/35002), 10.94 MiB | 10.90 MiB/s, done.
Resolving deltas: 100% (24412/24412), done.
Checking connectivity... done.
cloud@lbaas2:~$ cd devstack/
cloud@lbaas2:~/devstack$ git checkout stable/mitaka
Branch stable/mitaka set up to track remote branch stable/mitaka from origin.
Switched to a new branch 'stable/mitaka'
cloud@lbaas2:~/devstack$

Local.conf

[[local|localrc]]
enable_plugin neutron-lbaas https://github.com/openstack/neutron-lbaas.git  stable/mitaka
SERVICE_TOKEN=mytoken123
ADMIN_PASSWORD=openstack123
MYSQL_PASSWORD=mysql123
RABBIT_PASSWORD=rabbit123
SERVICE_PASSWORD=$ADMIN_PASSWORD
LOGFILE=$DEST/logs/stack.sh.log
LOGDAYS=2
VERBOSE=True
LOG_COLOR=True
NEUTRON_LBASS_CONF=/etc/neutron/neutron_lbaas.conf

disable_service n-net
enable_service q-svc q-agt q-dhcp q-l3 q-meta q-lbaasv2
[[post-config|$NEUTRON_CONF]]
[DEFAULT]
service_plugins+=,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2
[[post-config|NEUTRON_LBAAS_CONF]]
[service_providers]
service_provider = LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default

Install the haproxy manually(apt-get),before start the devstack.

Create the lbaas_agent.ini file as below

cloud@dev1:/etc/neutron$ cat lbaas_agent.ini 
[DEFAULT]
interface_driver = openvswitch
cloud@dev1:/etc/neutron$

Start the LBAAS agent manually

neutron-lbaasv2-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/neutron_lbaas.conf --config-file /etc/neutron/lbaas_agent.ini

Enable LBAAS in HORIZON DASHBOARD

Ref:
http://docs.openstack.org/mitaka/networking-guide/adv-config-lbaas.html

Devstack + opencontrail + Lbaas

[[local|localrc]]
SERVICE_TOKEN=azertytoken
ADMIN_PASSWORD=contrail123
MYSQL_PASSWORD=stackdb
RABBIT_PASSWORD=stackqueue
SERVICE_PASSWORD=$ADMIN_PASSWORD
LOGFILE=$DEST/logs/stack.sh.log
LOGDAYS=2
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
SWIFT_REPLICAS=1
SWIFT_DATA_DIR=$DEST/data

enable_service tempest

enable_plugin contrail https://github.com/zioc/contrail-devstack-plugin.git
enable_plugin neutron-lbaas https://github.com/openstack/neutron-lbaas.git stable/mitaka

CONTRAIL_REPO=https://github.com/eonpatapon/contrail-vnc.git
CONTRAIL_BRANCH=R2.21-cloudwatt
SCONS_JOBS=$(lscpu -p | grep -cve '^#')


[[post-config|$NEUTRON_CONF]]
[DEFAULT]
service_plugins = neutron_plugin_contrail.plugins.opencontrail.loadbalancer.plugin.LoadBalancerPlugin
[quotas]
quota_driver = neutron_plugin_contrail.plugins.opencontrail.quota.driver.QuotaDriver

[service_providers]
service_provider = LOADBALANCER:Haproxy:neutron_plugin_contrail.plugins.opencontrail.loadbalancer.driver.OpencontrailLoadbalancerDriver:default

[[post-config|$NOVA_CONF]]
[libvirt]
vif_driver = nova_contrail_vif.contrailvif.VRouterVIFDriver
virt_type = qemu

results matching ""

    No results matching ""