Comment 1 for bug 1613251

Revision history for this message
Nir Magnezi (nmagnezi) wrote : Re: HAproxy scenario tests cleanup fail with a StaleDataError

Locally, I run it as follows:
=============================

local.conf:

[[local|localrc]]
DEST=/opt/openstack
DATA_DIR=$DEST/data
LOGFILE=$DATA_DIR/logs/stack.log
SCREEN_LOGDIR=$DATA_DIR/logs
VERBOSE=True
HOST_IP=1.2.3.4
enable_service rabbit
disable_service qpid
DATABASE_TYPE=mysql
MYSQL_PASSWORD=1
SERVICE_TOKEN=1
SERVICE_PASSWORD=2
ADMIN_PASSWORD=1
RABBIT_USERID=stackrabbit
RABBIT_PASSWORD=127.0.0.1

enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas

disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service q-lbaasv2
enable_service neutron
enable_service n-cpu
enable_service n-novnc
enable_service tempest
enable_service h-api
enable_service h-api-cfn
enable_service h-api-cw
enable_service h-eng heat
enable_service heat

#enable_plugin rally https://github.com/openstack/rally master
#export no_proxy="localhost,127.0.0.1"
RECLONE="yes"

[[post-config|$NEUTRON_CONF_DIR/neutron_lbaas.conf]]
[service_providers]
service_provider=LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default

How to run the lbaasv2 agent (devstack won't do it):
====================================================
python /usr/local/bin/neutron-lbaasv2-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/neutron_lbaas.conf --config-file=/etc/neutron/services/loadbalancer/haproxy/lbaas_agent.ini & echo $! >/opt/stack/status/stack/q-lbaasv2.pid; fg || echo "q-lbaasv2 failed to start" | tee "/opt/stack/status/stack/q-lbaasv2.failure"

How to run a scenario test:
===========================
sudo -E TEMPEST_CONFIG_DIR=/opt/openstack/tempest/etc python -m testtools.run neutron_lbaas.tests.tempest.v2.scenario.test_load_balancer_basic