按照以下步骤安装lbaas服务,dashboard可以看到lb的配置界面
1、 配置lbaas服务vi/etc/neutron/lbaas_agent.ini,添加红色的行 [DEFAULT] output_file = etc/lbaas_agent.ini.sample wrap_width = 79 namespace = neutron.lbaas.agent namespace = oslo.log interface_driver =neutron.agent.linux.interface.OVSInterfaceDriver device_driver = neutron.services.loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver ovs_use_veth = True [haproxy] user_group = nobody 说明:interface_driver 的作用是设置 load balancer 的网络接口驱动,可以有两个选项:Linux Bridge和Open vSwitch。 2、 配置/etc/neutron/neutron_lbaas.conf,添加红色的行 [DEFAULT] output_file = etc/neutron_lbaas.conf.sample wrap_width = 79 namespace = neutron.lbaas [service_providers] service_provider =LOADBALANCER:Haproxy:neutron_lbaas.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default 说明:除了默认的 HAProxy,Neutron 也支持第三方 provider,比如 radware,VMWareEdge 等。 3、 数据库建表 neutron-db-manage--service lbaas upgrade head 4、 添加lbaas服务到neutron中 vi /etc/neutron/neutron.conf ……….. service_plugins = lbaas,onos_router,neutron.services.metering.metering_plugin.MeteringPlugin ………… 5、 dashboard启用服务 vi/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py ……….. OPENSTACK_NEUTRON_NETWORK = { 'enable_distributed_router': False, 'enable_firewall': True, 'enable_ha_router': False, 'enable_lb': True, 'enable_quotas': True, 'enable_security_group': True, 'enable_vpn': True, 'profile_support': None, } ……….. 6、 重启neutron服务 service neutron-server stop service neutron-serverstart 界面如下:
-----------------------------------分割线-------------------------------------------- 安装好了之后,无法创建资源池,查看日志报错如下: 2017-05-18 03:25:37.484 22470 INFO neutron.common.config [-] Logging enabled! 2017-05-18 03:25:37.485 22470 INFO neutron.common.config [-] /usr/local/bin/neutron-lbaasv2-agent version 8.1.1 2017-05-18 03:25:37.500 22470 WARNING neutron.services.provider_configuration [req-fd257665-d11a-47b9-b037-04158ac699c1 - - - - -] The configured driver neutron.services.loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver has been moved, automatically using neutron_lbaas.services.loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver instead. Please update your config files, as this automatic fixup will be removed in a future release. 2017-05-18 03:26:37.567 22470 ERROR neutron.common.rpc [-] Timeout in RPC method get_ready_devices. Waiting for 35 seconds before next attempt. If the server is not down, consider increasing the rpc_response_timeout option as Neutron server(s) may be overloaded and unable to respond quickly enough. 2017-05-18 03:26:37.568 22470 WARNING neutron.common.rpc [-] Increasing timeout for get_ready_devices calls to 120 seconds. Restart the agent to restore it to the default value. 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager [-] Unable to retrieve ready devices 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager Traceback (most recent call last): 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager File "/usr/local/lib/python2.7/dist-packages/neutron_lbaas/agent/agent_manager.py", line 151, in sync_state 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager ready_instances = set(self.plugin_rpc.get_ready_devices()) 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager File "/usr/local/lib/python2.7/dist-packages/neutron_lbaas/agent/agent_api.py", line 34, in get_ready_devices 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager return cctxt.call(self.context, 'get_ready_devices', host=self.host) 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager File "/usr/lib/python2.7/dist-packages/neutron/common/rpc.py", line 155, in call 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager time.sleep(wait) 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager self.force_reraise() 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager six.reraise(self.type_, self.value, self.tb) 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager File "/usr/lib/python2.7/dist-packages/neutron/common/rpc.py", line 136, in call 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager return self._original_context.call(ctxt, method, **kwargs) 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 158, in call 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager retry=self.retry) 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager File "/usr/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 91, in _send 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager timeout=timeout, retry=retry) 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 512, in send 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager retry=retry) 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 501, in _send 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager result = self._waiter.wait(msg_id, timeout) 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 379, in wait 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager message = self.waiters.get(msg_id, timeout=timeout) 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 277, in get 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager 'to message ID %s' % msg_id) 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager MessagingTimeout: Timed out waiting for a reply to message ID 1cbf662291f1416b976b75755ce0ba40 2017-05-18 03:27:13.058 22470 ERROR neutron_lbaas.agent.agent_manager
查看agent也没有启动
root@node-14:~# neutron agent-list
+--------------------------------------+--------------------+--------------------+-------------------+-------+----------------+---------------------------+
| id | agent_type | host | availability_zone | alive | admin_state_up | binary |
+--------------------------------------+--------------------+--------------------+-------------------+-------+----------------+---------------------------+
| 25d0363f-fec6-4ef1-9079-bbf89bec9153 | Open vSwitch agent | node-14.domain.tld | | :-) | True | neutron-openvswitch-agent |
| 7dbdced6-ab50-4848-8c65-612297cb4394 | DHCP agent | node-14.domain.tld | nova | :-) | True | neutron-dhcp-agent |
| 9ef96452-ee55-4036-b682-8eb335a30fd1 | Metadata agent | node-14.domain.tld | | :-) | True | neutron-metadata-agent |
+--------------------------------------+--------------------+--------------------+-------------------+-------+----------------+---------------------------+
无法手动启动,求大神帮忙看看
|