本帖最后由 magicp 于 2016-1-22 17:01 编辑
Ubuntu 14 + kilo版本3节点(1controller+1Neutron+1compute)部署方式。现在想看看Neutron集成的Lbaas服务,按照网上搜的安装方式,在网络节点上安装了neutron-lbaas-agent和haproxy,修改网络节点和控制节点的neutron.conf增加service_provider=****和service_plugin=router,lbaas,修改网络节点的lbaas-agent.ini修改device_driver配置。现在网络节点lbaas-agent.log报错:
2016-01-22 09:41:30.895 11109 ERROR neutron_lbaas.services.loadbalancer.agent.agent_manager [-] Unable to retrieve ready devices
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager Traceback (most recent call last):
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager File "/usr/lib/python2.7/dist-packages/neutron_lbaas/services/loadbalancer/agent/agent_manager.py", line 152, in sync_state
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager ready_instances = set(self.plugin_rpc.get_ready_devices())
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager File "/usr/lib/python2.7/dist-packages/neutron_lbaas/services/loadbalancer/agent/agent_api.py", line 36, in get_ready_devices
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager return cctxt.call(self.context, 'get_ready_devices', host=self.host)
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 156, in call
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager retry=self.retry)
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager File "/usr/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 90, in _send
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager timeout=timeout, retry=retry)
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 350, in send
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager retry=retry)
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 339, in _send
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager result = self._waiter.wait(msg_id, timeout)
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 243, in wait
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager message = self.waiters.get(msg_id, timeout=timeout)
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 149, in get
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager 'to message ID %s' % msg_id)
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager MessagingTimeout: Timed out waiting for a reply to message ID ac48d8e99d2740b79de4f5e588030657
2016-01-22 09:41:30.895 11109 TRACE neutron_lbaas.services.loadbalancer.agent.agent_manager
控制节点的neutron-server重启失败:
2016-01-22 09:37:04.342 16423 INFO neutron.manager [-] Loading Plugin: router
2016-01-22 09:37:04.374 16423 INFO oslo_messaging._drivers.impl_rabbit [-] Connecting to AMQP server on controller:5672
2016-01-22 09:37:04.383 16423 INFO oslo_messaging._drivers.impl_rabbit [-] Connected to AMQP server on controller:5672
2016-01-22 09:37:04.388 16423 INFO neutron.db.l3_agentschedulers_db [-] Skipping period L3 agent status check because automatic router rescheduling is disabled.
2016-01-22 09:37:04.389 16423 INFO neutron.manager [-] Loading Plugin: lbaas
2016-01-22 09:37:04.389 16423 ERROR neutron.common.config [-] Unable to load neutron from configuration file /etc/neutron/api-paste.ini.
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config Traceback (most recent call last):
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/neutron/common/config.py", line 227, in load_paste_app
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config app = deploy.loadapp("config:%s" % config_path, name=app_name)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config return loadobj(APP, uri, name=name, **kw)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config return context.create()
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config return self.object_type.invoke(self)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config **context.local_conf)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config val = callable(*args, **kw)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 28, in urlmap_factory
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config app = loader.get_app(app_name, global_conf=global_conf)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config name=name, global_conf=global_conf).create()
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config return self.object_type.invoke(self)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config **context.local_conf)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config val = callable(*args, **kw)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/neutron/auth.py", line 71, in pipeline_factory
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config app = loader.get_app(pipeline[-1])
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config name=name, global_conf=global_conf).create()
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config return self.object_type.invoke(self)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 146, in invoke
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config return fix_call(context.object, context.global_conf, **context.local_conf)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config val = callable(*args, **kw)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/neutron/api/v2/router.py", line 71, in factory
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config return cls(**local_config)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/neutron/api/v2/router.py", line 75, in __init__
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config plugin = manager.NeutronManager.get_plugin()
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/neutron/manager.py", line 222, in get_plugin
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config return weakref.proxy(cls.get_instance().plugin)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/neutron/manager.py", line 216, in get_instance
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config cls._create_instance()
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 445, in inner
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config return f(*args, **kwargs)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/neutron/manager.py", line 202, in _create_instance
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config cls._instance = cls()
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/neutron/manager.py", line 128, in __init__
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config self._load_service_plugins()
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/neutron/manager.py", line 175, in _load_service_plugins
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config provider)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/neutron/manager.py", line 133, in _get_plugin_instance
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config mgr = driver.DriverManager(namespace, plugin_provider)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/stevedore/driver.py", line 45, in __init__
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config verify_requirements=verify_requirements,
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/stevedore/named.py", line 55, in __init__
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config verify_requirements)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 170, in _load_plugins
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config self._on_load_failure_callback(self, ep, err)
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config File "/usr/lib/python2.7/dist-packages/stevedore/driver.py", line 50, in _default_on_load_failure
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config raise err
2016-01-22 09:37:04.389 16423 TRACE neutron.common.config ImportError: No module named neutron_lbaas.services.loadbalancer.plugin
求高人指点,这是啥情况?因为看着大家基本都是这么弄得,为啥不行嘞?
|