Comment 1 for bug 1663393

Revision history for this message
alex kang (akang) wrote : Re: ocata branch -- lbaasv2 with VMware driver fail with multiple default providers detected

according to neutron-lbaas README file, to enable a different driver need to use NEUTRON_LBAAS_SERFICE_PROVIDERV2.

update local.rc with
NEUTRON_LBAAS_SERVICE_PROVIDERV2=LOADBALANCERV2:VMWareEdge:neutron_lbaas.drivers.vmware.edge_driver_v2.EdgeLoadBalancerDriverV2:default

q-lbaasv2 failed to start:
###
### q-lbaasv2 log
###
$ cat screen-q-lbaasv2.log
stack@ups-falcon-devstack ~/jenkins22/devstack {master*}
$ /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"
[1] 27944
/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
Guru meditation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
2017-02-10 07:35:28.509 27944 INFO neutron.common.config [-] Logging enabled!
2017-02-10 07:35:28.509 27944 INFO neutron.common.config [-] /usr/local/bin/neutron-lbaasv2-agent version 10.0.0.0rc2.dev41
2017-02-10 07:35:28.510 27944 DEBUG neutron.common.config [-] command line: /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 setup_logging /opt/stack/neutron/neutron/common/config.py:114
2017-02-10 07:35:28.511 27944 WARNING stevedore.named [req-d51c739b-0327-4bd4-aa4f-bce54d67e2df - -] Could not load neutron_lbaas.drivers.haproxy.namespace_driver.HaproxyNSDriver
2017-02-10 07:35:28.541 27944 ERROR neutron.common.utils [req-d51c739b-0327-4bd4-aa4f-bce54d67e2df - -] Alias or class name is not set
2017-02-10 07:35:28.542 27944 ERROR neutron_lbaas.drivers.haproxy.namespace_driver [req-d51c739b-0327-4bd4-aa4f-bce54d67e2df - -] Error importing interface driver: None
Error importing loadbalancer device driver: neutron_lbaas.drivers.haproxy.namespace_driver.HaproxyNSDriver
q-lbaasv2 failed to start