Custom Search

SUBSCRIBE

SUBSCRIBE : 300 + Free Video Tutorials Programming (Python, golang, Julia), DevOps

Sunday, April 26, 2015

OpenStack OpenContrail neutron AttributeError: 'LoadBalancerPlugin' object has no attribute 'agent_notifiers'

===How to Fix:===

Specify 'Opencontrail' LBaaS provider in /ect/neutron/neutron.conf and comment out all other LBaaS providers and restart neutron server

#vim /ect/neutron/neutron.conf

[DEFAULT]
service_plugins = neutron_plugin_contrail.plugins.opencontrail.loadbalancer.plugin.LoadBalancerPlugin
[service_providers]
#service_provider=::[:default]
#service_provider=LOADBALANCER:name:lbaas_plugin_driver_path:default


#'Opencontrail' LBaaS provider
service_provider = LOADBALANCER:Opencontrail:neutron_plugin_contrail.plugins.opencontrail.loadbalancer.driver.OpencontrailLoadbalancerDriver:default
#'Haproxy' LBaaS provider
#service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default

#'Radware' LBaaS provider
#service_provider = LOADBALANCER:Radware:neutron.services.loadbalancer.drivers.radware.driver.LoadBalancerDriver:default

#'netscaler' LBaaS provider
#service_provider=LOADBALANCER:NetScaler:neutron.services.loadbalancer.drivers.netscaler.netscaler_driver.NetScalerPluginDriver

#'Embrane' LBaaS provider
#service_provider=LOADBALANCER:Embrane:neutron.services.loadbalancer.drivers.embrane.driver.EmbraneLbaas:default


===Error:===

2014-12-16 23:50:44.209 DEBUG neutron.manager [-] Loading service plugins: ['neutron_plugin_contrail.plugins.opencontrail.loadbalancer.plugin.LoadBa
lancerPlugin'] from (pid=54650) _load_service_plugins /opt/stack/neutron/neutron/manager.py:168
2014-12-16 23:50:44.209 INFO neutron.manager [-] Loading Plugin: neutron_plugin_contrail.plugins.opencontrail.loadbalancer.plugin.LoadBalancerPlugin
2014-12-16 23:50:44.210 DEBUG stevedore.extension [-] found extension EntryPoint.parse('dummy = neutron.tests.unit.dummy_plugin:DummyServicePlugin')
 from (pid=54650) _load_plugins /usr/local/lib/python2.7/dist-packages/stevedore/extension.py:156
2014-12-16 23:50:44.210 DEBUG stevedore.extension [-] found extension EntryPoint.parse('firewall = neutron.services.firewall.fwaas_plugin:FirewallPl
ugin') from (pid=54650) _load_plugins /usr/local/lib/python2.7/dist-packages/stevedore/extension.py:156
2014-12-16 23:50:44.210 DEBUG stevedore.extension [-] found extension EntryPoint.parse('metering = neutron.services.metering.metering_plugin:Meterin
gPlugin') from (pid=54650) _load_plugins /usr/local/lib/python2.7/dist-packages/stevedore/extension.py:156
2014-12-16 23:50:44.210 DEBUG stevedore.extension [-] found extension EntryPoint.parse('router = neutron.services.l3_router.l3_router_plugin:L3Route
rPlugin') from (pid=54650) _load_plugins /usr/local/lib/python2.7/dist-packages/stevedore/extension.py:156
2014-12-16 23:50:44.210 DEBUG stevedore.extension [-] found extension EntryPoint.parse('vpnaas = neutron.services.vpn.plugin:VPNDriverPlugin') from
(pid=54650) _load_plugins /usr/local/lib/python2.7/dist-packages/stevedore/extension.py:156
2014-12-16 23:50:44.210 DEBUG stevedore.extension [-] found extension EntryPoint.parse('lbaas = neutron.services.loadbalancer.plugin:LoadBalancerPlu
gin') from (pid=54650) _load_plugins /usr/local/lib/python2.7/dist-packages/stevedore/extension.py:156
2014-12-16 23:50:44.265 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 10.140.218.12

2014-12-16 23:50:44.268 DEBUG urllib3.connectionpool [-] Setting read timeout to None from (pid=54650) _make_request /usr/lib/python2.7/dist-package
s/urllib3/connectionpool.py:390
2014-12-16 23:50:44.272 DEBUG urllib3.connectionpool [-] "GET / HTTP/1.1" 200 10104 from (pid=54650) _make_request /usr/lib/python2.7/dist-packages/
urllib3/connectionpool.py:430
2014-12-16 23:50:44.296 WARNING neutron.openstack.common.db.sqlalchemy.session [-] This application has not enabled MySQL traditional mode, which me
ans silent data corruption may occur. Please encourage the application developers to enable this mode.
2014-12-16 23:50:44.419 INFO neutron.openstack.common.rpc.common [-] Connected to AMQP server on 10.140.218.21:5672
2014-12-16 23:50:44.421 DEBUG neutron.openstack.common.lockutils [-] Semaphore / lock released "_create_instance" from (pid=54650) inner /opt/stack/
neutron/neutron/openstack/common/lockutils.py:252
2014-12-16 23:50:44.421 ERROR neutron.service [-] Unrecoverable error: please check log for details.
2014-12-16 23:50:44.421 TRACE neutron.service Traceback (most recent call last):
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron/service.py", line 105, in serve_wsgi
2014-12-16 23:50:44.421 TRACE neutron.service     service.start()
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron/service.py", line 74, in start
2014-12-16 23:50:44.421 TRACE neutron.service     self.wsgi_app = _run_wsgi(self.app_name)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron/service.py", line 173, in _run_wsgi
2014-12-16 23:50:44.421 TRACE neutron.service     app = config.load_paste_app(app_name)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron/common/config.py", line 170, in load_paste_app
2014-12-16 23:50:44.421 TRACE neutron.service     app = deploy.loadapp("config:%s" % config_path, name=app_name)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2014-12-16 23:50:44.421 TRACE neutron.service     return loadobj(APP, uri, name=name, **kw)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
2014-12-16 23:50:44.421 TRACE neutron.service     return context.create()
2014-12-16 23:50:44.421 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2014-12-16 23:50:44.421 TRACE neutron.service     return self.object_type.invoke(self)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2014-12-16 23:50:44.421 TRACE neutron.service     **context.local_conf)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call
2014-12-16 23:50:44.421 TRACE neutron.service     val = callable(*args, **kw)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 28, in urlmap_factory
2014-12-16 23:50:44.421 TRACE neutron.service     app = loader.get_app(app_name, global_conf=global_conf)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2014-12-16 23:50:44.421 TRACE neutron.service     name=name, global_conf=global_conf).create()
2014-12-16 23:50:44.421 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2014-12-16 23:50:44.421 TRACE neutron.service     return self.object_type.invoke(self)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2014-12-16 23:50:44.421 TRACE neutron.service     **context.local_conf)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call
2014-12-16 23:50:44.421 TRACE neutron.service     val = callable(*args, **kw)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron/auth.py", line 69, in pipeline_factory
2014-12-16 23:50:44.421 TRACE neutron.service     app = loader.get_app(pipeline[-1])
2014-12-16 23:50:44.421 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2014-12-16 23:50:44.421 TRACE neutron.service     name=name, global_conf=global_conf).create()
2014-12-16 23:50:44.421 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2014-12-16 23:50:44.421 TRACE neutron.service     return self.object_type.invoke(self)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 146, in invoke
2014-12-16 23:50:44.421 TRACE neutron.service     return fix_call(context.object, context.global_conf, **context.local_conf)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call
2014-12-16 23:50:44.421 TRACE neutron.service     val = callable(*args, **kw)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron/api/v2/router.py", line 72, in factory
2014-12-16 23:50:44.421 TRACE neutron.service     return cls(**local_config)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron/api/v2/router.py", line 76, in __init__
2014-12-16 23:50:44.421 TRACE neutron.service     plugin = manager.NeutronManager.get_plugin()
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron/manager.py", line 222, in get_plugin
2014-12-16 23:50:44.421 TRACE neutron.service     return weakref.proxy(cls.get_instance().plugin)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron/manager.py", line 216, in get_instance
2014-12-16 23:50:44.421 TRACE neutron.service     cls._create_instance()
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron/openstack/common/lockutils.py", line 249, in inner
2014-12-16 23:50:44.421 TRACE neutron.service     return f(*args, **kwargs)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron/manager.py", line 202, in _create_instance

2014-12-16 23:50:44.421 TRACE neutron.service     cls._instance = cls()
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron/manager.py", line 127, in __init__
2014-12-16 23:50:44.421 TRACE neutron.service     self._load_service_plugins()
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron/manager.py", line 175, in _load_service_plugins
2014-12-16 23:50:44.421 TRACE neutron.service     provider)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron/manager.py", line 142, in _get_plugin_instance
2014-12-16 23:50:44.421 TRACE neutron.service     return plugin_class()
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron_plugin_contrail/plugins/opencontrail/loadbalancer/plugin.py", line
19, in __init__
2014-12-16 23:50:44.421 TRACE neutron.service     self._load_drivers()
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron_plugin_contrail/plugins/opencontrail/loadbalancer/plugin.py", line
25, in _load_drivers
2014-12-16 23:50:44.421 TRACE neutron.service     constants.LOADBALANCER, self)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron/services/service_base.py", line 81, in load_drivers
2014-12-16 23:50:44.421 TRACE neutron.service     provider['driver'], plugin
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron/openstack/common/importutils.py", line 38, in import_object
2014-12-16 23:50:44.421 TRACE neutron.service     return import_class(import_str)(*args, **kwargs)
2014-12-16 23:50:44.421 TRACE neutron.service   File "/opt/stack/neutron/neutron/services/loadbalancer/drivers/common/agent_driver_base.py", line 33
6, in __init__
2014-12-16 23:50:44.421 TRACE neutron.service     self.plugin.agent_notifiers.update(
2014-12-16 23:50:44.421 TRACE neutron.service AttributeError: 'LoadBalancerPlugin' object has no attribute 'agent_notifiers'
2014-12-16 23:50:44.421 TRACE neutron.service
2014-12-16 23:50:44.424 CRITICAL neutron [-] 'LoadBalancerPlugin' object has no attribute 'agent_notifiers'
2014-12-16 23:50:44.424 TRACE neutron Traceback (most recent call last):
2014-12-16 23:50:44.424 TRACE neutron   File "/usr/local/bin/neutron-server", line 10, in
2014-12-16 23:50:44.424 TRACE neutron     sys.exit(main())
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/server/__init__.py", line 48, in main
2014-12-16 23:50:44.424 TRACE neutron     neutron_api = service.serve_wsgi(service.NeutronApiService)
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/service.py", line 112, in serve_wsgi
2014-12-16 23:50:44.424 TRACE neutron     LOG.exception(_('Unrecoverable error: please check log '
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/openstack/common/excutils.py", line 82, in __exit__
2014-12-16 23:50:44.424 TRACE neutron     six.reraise(self.type_, self.value, self.tb)
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/service.py", line 105, in serve_wsgi
2014-12-16 23:50:44.424 TRACE neutron     service.start()
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/service.py", line 74, in start

2014-12-16 23:50:44.424 TRACE neutron     self.wsgi_app = _run_wsgi(self.app_name)
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/service.py", line 173, in _run_wsgi
2014-12-16 23:50:44.424 TRACE neutron     app = config.load_paste_app(app_name)
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/common/config.py", line 170, in load_paste_app
2014-12-16 23:50:44.424 TRACE neutron     app = deploy.loadapp("config:%s" % config_path, name=app_name)
2014-12-16 23:50:44.424 TRACE neutron   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2014-12-16 23:50:44.424 TRACE neutron     return loadobj(APP, uri, name=name, **kw)
2014-12-16 23:50:44.424 TRACE neutron   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
2014-12-16 23:50:44.424 TRACE neutron     return context.create()
2014-12-16 23:50:44.424 TRACE neutron   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2014-12-16 23:50:44.424 TRACE neutron     return self.object_type.invoke(self)
2014-12-16 23:50:44.424 TRACE neutron   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2014-12-16 23:50:44.424 TRACE neutron     **context.local_conf)
2014-12-16 23:50:44.424 TRACE neutron   File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call
2014-12-16 23:50:44.424 TRACE neutron     val = callable(*args, **kw)
2014-12-16 23:50:44.424 TRACE neutron   File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 28, in urlmap_factory
2014-12-16 23:50:44.424 TRACE neutron     app = loader.get_app(app_name, global_conf=global_conf)
2014-12-16 23:50:44.424 TRACE neutron   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2014-12-16 23:50:44.424 TRACE neutron     name=name, global_conf=global_conf).create()
2014-12-16 23:50:44.424 TRACE neutron   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2014-12-16 23:50:44.424 TRACE neutron     return self.object_type.invoke(self)
2014-12-16 23:50:44.424 TRACE neutron   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2014-12-16 23:50:44.424 TRACE neutron     **context.local_conf)
2014-12-16 23:50:44.424 TRACE neutron   File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call
2014-12-16 23:50:44.424 TRACE neutron     val = callable(*args, **kw)
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/auth.py", line 69, in pipeline_factory
2014-12-16 23:50:44.424 TRACE neutron     app = loader.get_app(pipeline[-1])
2014-12-16 23:50:44.424 TRACE neutron   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2014-12-16 23:50:44.424 TRACE neutron     name=name, global_conf=global_conf).create()
2014-12-16 23:50:44.424 TRACE neutron   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2014-12-16 23:50:44.424 TRACE neutron     return self.object_type.invoke(self)
2014-12-16 23:50:44.424 TRACE neutron   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 146, in invoke
2014-12-16 23:50:44.424 TRACE neutron     return fix_call(context.object, context.global_conf, **context.local_conf)
2014-12-16 23:50:44.424 TRACE neutron   File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call
2014-12-16 23:50:44.424 TRACE neutron     val = callable(*args, **kw)

2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/api/v2/router.py", line 72, in factory
2014-12-16 23:50:44.424 TRACE neutron     return cls(**local_config)
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/api/v2/router.py", line 76, in __init__
2014-12-16 23:50:44.424 TRACE neutron     plugin = manager.NeutronManager.get_plugin()
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/manager.py", line 222, in get_plugin
2014-12-16 23:50:44.424 TRACE neutron     return weakref.proxy(cls.get_instance().plugin)
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/manager.py", line 216, in get_instance
2014-12-16 23:50:44.424 TRACE neutron     cls._create_instance()
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/openstack/common/lockutils.py", line 249, in inner
2014-12-16 23:50:44.424 TRACE neutron     return f(*args, **kwargs)
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/manager.py", line 202, in _create_instance
2014-12-16 23:50:44.424 TRACE neutron     cls._instance = cls()
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/manager.py", line 127, in __init__
2014-12-16 23:50:44.424 TRACE neutron     self._load_service_plugins()
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/manager.py", line 175, in _load_service_plugins
2014-12-16 23:50:44.424 TRACE neutron     provider)
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/manager.py", line 142, in _get_plugin_instance
2014-12-16 23:50:44.424 TRACE neutron     return plugin_class()
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron_plugin_contrail/plugins/opencontrail/loadbalancer/plugin.py", line 19, in __init__
2014-12-16 23:50:44.424 TRACE neutron     self._load_drivers()
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron_plugin_contrail/plugins/opencontrail/loadbalancer/plugin.py", line 25, in _load_drivers
2014-12-16 23:50:44.424 TRACE neutron     constants.LOADBALANCER, self)
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/services/service_base.py", line 81, in load_drivers
2014-12-16 23:50:44.424 TRACE neutron     provider['driver'], plugin
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/openstack/common/importutils.py", line 38, in import_object
2014-12-16 23:50:44.424 TRACE neutron     return import_class(import_str)(*args, **kwargs)
2014-12-16 23:50:44.424 TRACE neutron   File "/opt/stack/neutron/neutron/services/loadbalancer/drivers/common/agent_driver_base.py", line 336, in __init__
2014-12-16 23:50:44.424 TRACE neutron     self.plugin.agent_notifiers.update(
2014-12-16 23:50:44.424 TRACE neutron AttributeError: 'LoadBalancerPlugin' object has no attribute 'agent_notifiers'
2014-12-16 23:50:44.424 TRACE neutron
q-svc failed to start


1 comment:

  1. BlueHost is ultimately one of the best web-hosting company with plans for all of your hosting requirements.

    ReplyDelete