Ask Your Question
0

load balcer driver is not loaded

asked 2014-12-19 08:17:20 -0600

kpalania gravatar image

updated 2014-12-19 09:59:19 -0600

SamYaple gravatar image

Hi All,

I am trying to configure load balancer plugin in juno openstack environment (1 controller+network, 2 compute). In network node load balancer driver is not loading.

Here is my configs

In neutron.conf file

service_plugins = lbaas

service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default

In /etc/neutron/lbaas_agent.ini

interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
device_driver = neutron.services.loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver

neutron-lbaas-agent is starting and there is not error in lbaas.log file

root@Ubuntu-34:~# service neutron-lbaas-agent restart
neutron-lbaas-agent stop/waiting
neutron-lbaas-agent start/running, process 32347
root@Ubuntu-34:~# service neutron-lbaas-agent status
neutron-lbaas-agent start/running, process 32347

Neutron-server shows it is started but neutron-agent is giving the below.

# neutron agent-list
Unable to establish connection to http://10.24.34.80:9696/v2.0/agents.json

Copied the required logs from /var/log/neutron/server.log

2014-12-19 09:02:48.479 9236 TRACE neutron.common.config   File "/usr/lib/python2.7/dist-packages/neutron/manager.py", line 199, in _create_instance
2014-12-19 09:02:48.479 9236 TRACE neutron.common.config     cls._instance = cls()
2014-12-19 09:02:48.479 9236 TRACE neutron.common.config   File "/usr/lib/python2.7/dist-packages/neutron/manager.py", line 125, in __init__
2014-12-19 09:02:48.479 9236 TRACE neutron.common.config     self._load_service_plugins()
2014-12-19 09:02:48.479 9236 TRACE neutron.common.config   File "/usr/lib/python2.7/dist-packages/neutron/manager.py", line 172, in _load_service_plugins
2014-12-19 09:02:48.479 9236 TRACE neutron.common.config     provider)
2014-12-19 09:02:48.479 9236 TRACE neutron.common.config   File "/usr/lib/python2.7/dist-packages/neutron/manager.py", line 130, in _get_plugin_instance
2014-12-19 09:02:48.479 9236 TRACE neutron.common.config     mgr = driver.DriverManager(namespace, plugin_provider)
2014-12-19 09:02:48.479 9236 TRACE neutron.common.config   File "/usr/lib/python2.7/dist-packages/stevedore/driver.py", line 45, in __init__
2014-12-19 09:02:48.479 9236 TRACE neutron.common.config     verify_requirements=verify_requirements,
2014-12-19 09:02:48.479 9236 TRACE neutron.common.config   File "/usr/lib/python2.7/dist-packages/stevedore/named.py", line 55, in __init__
2014-12-19 09:02:48.479 9236 TRACE neutron.common.config     verify_requirements)
2014-12-19 09:02:48.479 9236 TRACE neutron.common.config   File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 170, in _load_plugins
2014-12-19 09:02:48.479 9236 TRACE neutron.common.config     self._on_load_failure_callback(self, ep, err)
2014-12-19 09:02:48.479 9236 TRACE neutron.common.config   File "/usr/lib/python2.7/dist-packages/stevedore/driver.py", line 50, in _default_on_load_failure
2014-12-19 09:02:48.479 9236 TRACE neutron.common.config     raise err
2014-12-19 09:02:48.479 9236 TRACE neutron.common.config ImportError: No module named db
2014-12-19 09:02:48.479 9236 TRACE neutron.common.config
2014-12-19 09:02:48.482 9236 ERROR neutron.service [-] Unrecoverable error: please check log for details.
2014-12-19 09:02:48.482 9236 TRACE neutron.service Traceback (most recent call last):
2014-12-19 09:02:48.482 9236 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/neutron/service.py", line ...
(more)
edit retag flag offensive close merge delete

Comments

Is neutron starting without lbaas? These errors seem unrelated to your lbaas config.

Zollner Robert gravatar imageZollner Robert ( 2014-12-19 09:58:04 -0600 )edit

Thanks for the response.

Yes neutron server is starting with lbaas.

kpalania gravatar imagekpalania ( 2014-12-22 05:47:20 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-12-19 10:00:29 -0600

SamYaple gravatar image

It appears your config files are messed up. Please post neutron.conf and verify /etc/neutron/api-paste.ini exist and has the correct content

edit flag offensive delete link more
0

answered 2014-12-22 07:27:05 -0600

kpalania gravatar image

Without lbaas service_plugin enabled neutron server just works fine. And neutron server is starting with router service_plugin. /etc/neutron/api-paste.ini exists. I have posted neutron.conf and api-paste.ine file /etc/neutron/neutron.conf [DEFAULT] verbose = True debug = True lock_path = $state_path/lock log_dir = /var/log/neutron bind_host = 0.0.0.0 bind_port = 9696 core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin service_plugins = lbaas auth_strategy = keystone base_mac = fa:16:3e:00:00:00 mac_generation_retries = 16 dhcp_lease_duration = 86400 dhcp_agent_notification = True allow_bulk = True allow_pagination = False allow_sorting = False allow_overlapping_ips = True agent_down_time = 75 router_scheduler_driver = neutron.scheduler.l3_agent_scheduler.ChanceScheduler dhcp_agents_per_network = 1 api_workers = 4 rpc_workers = 4 use_ssl = False notify_nova_on_port_status_changes = True notify_nova_on_port_data_changes = True nova_url = http://10.24.34.80:8774/v2 nova_region_name = regionOne nova_admin_username = nova nova_admin_tenant_id = ca2c9cfa8a56430dbdb0ba62779a2790 nova_admin_password = password nova_admin_auth_url = http://x.x.x.x:35357/v2.0 send_events_interval = 2 kombu_reconnect_delay=1.0 rabbit_host=x.x.x.x rabbit_port=5672 rabbit_userid=guest rabbit_password=password rpc_response_timeout=60 rpc_backend=neutron.openstack.common.rpc.impl_kombu [matchmaker_redis] [matchmaker_ring] [quotas] [agent] root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf report_interval = 30 [keystone_authtoken] auth_uri = http://x.x.x.x:5000/v2.0 identity_uri = http://x.x.x.x:35357 admin_tenant_name = service admin_user = neutron admin_password = password [database] connection = mysql://neutron:NEUTRON_DBPASS@x.x.x.x/neutron [service_providers]

/etc/neutron/api-paste.ini [composite:neutron] use = egg:Paste#urlmap /: neutronversions /v2.0: neutronapi_v2_0 [composite:neutronapi_v2_0] use = call:neutron.auth:pipeline_factory noauth = request_id catch_errors extensions neutronapiapp_v2_0 keystone = request_id catch_errors authtoken keystonecontext extensions neutronapiapp_v2_0 [filter:request_id] paste.filter_factory = neutron.openstack.common.middleware.request_id:RequestIdMiddleware.factory [filter:catch_errors] paste.filter_factory = neutron.openstack.common.middleware.catch_errors:CatchErrorsMiddleware.factory [filter:keystonecontext] paste.filter_factory = neutron.auth:NeutronKeystoneContext.factory [filter:authtoken] paste.filter_factory = keystonemiddleware.auth_token:filter_factory auth_uri = http://x.x.x.x:5000/v2.0 identity_uri = http://x.x.x.x:35357 admin_tenant_name = service admin_user = neutron admin_password = password [filter:extensions] paste.filter_factory = neutron.api.extensions:plugin_aware_extension_middleware_factory [app:neutronversions] paste.app_factory = neutron.api.versions:Versions.factory [app:neutronapiapp_v2_0] paste.app_factory = neutron.api.v2.router:APIRouter.factory

edit flag offensive delete link more

Comments

is this an answer to your question? if not, edit your question and put this info there. Read how to use this site: https://ask.openstack.org/faq

smaffulli gravatar imagesmaffulli ( 2014-12-22 13:02:37 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-12-19 08:17:20 -0600

Seen: 1,240 times

Last updated: Dec 22 '14