我今天有重新做了一次,重启了neutron服务,正常,但一创建网络后查看L3-agent的日志还是有个警告。 2015-12-21 00:17:11.771 3742 INFO neutron.openstack.common.service [req-579cbaea-7569-4c89-9f5d-f78c5088938c None] Caught SIGTERM, exiting 2015-12-21 00:17:12.217 5195 INFO neutron.common.config [-] Logging enabled! 2015-12-21 00:17:12.259 5195 INFO neutron.openstack.common.rpc.impl_qpid [req-5d770e49-3930-4c8f-8447-fd5caea73e77 None] Connected to AMQP server on controller:5672 2015-12-21 00:17:12.260 5195 INFO neutron.openstack.common.rpc.impl_qpid [req-5d770e49-3930-4c8f-8447-fd5caea73e77 None] Connected to AMQP server on controller:5672 2015-12-21 00:17:12.274 5195 INFO neutron.openstack.common.rpc.impl_qpid [req-5d770e49-3930-4c8f-8447-fd5caea73e77 None] Connected to AMQP server on controller:5672 2015-12-21 00:17:12.280 5195 INFO neutron.agent.l3_agent [req-5d770e49-3930-4c8f-8447-fd5caea73e77 None] L3 agent started 2015-12-21 00:21:19.980 5195 INFO neutron.openstack.common.lockutils [-] Created lock path: /var/lib/neutron/lock 2015-12-21 00:21:22.104 5195 WARNING neutron.openstack.common.loopingcall [-] task run outlasted interval by 1.472502 sec |
starrycheng 发表于 2015-12-25 19:00 按照上面的方法,重启了neurton服务,l3-agent没有出现同样的错误日志。 不过还是有一点想问,我这种问题应该从哪方便去查找。 因为我实际需求就是我现在的这种模型。 两台双网卡的服务器,在服务器上搭建openstack基础平台,后面还会有 Heat、Ceilometer、Sahara。 最新情况是又加了个SDN,SDN上面要求把DHCP,L3放到compute上。想想都头疼 |
Kevin517 发表于 2015-12-25 18:26 网络这块是很多人的难题,毕竟网络工程师,不会做开发的事情,而开发和部署在做网络的事情。 这里分享下别人的经验 ########################################## 根据openstack icehouse安装文档openstack-install-guide-yum-icehouse.pdf, 安装部署进行到第66页时,已经部署好了controller和network的. 过程中没有报错.但是,在network node上查看日志时,发现/var/log/neutron/dhcp-agent.log中报错: Remote error: AgentNotFoundByTypeHost Agent with agent_type=DHCP agent and host=network-node could not be found. 解决方法: 更改三个服务之间的启动顺序先后为openvswitch,dhcp,l3.且每个服务启动后间隔10s钟. 下面是icehouse文档中的内容 2. Start the Networking services and configure them to start when the system boots: # service neutron-openvswitch-agent start # service neutron-l3-agent start # service neutron-dhcp-agent start # service neutron-metadata-agent start 下面是更改后的安装脚本中的内容: service neutron-openvswitch-agent start sleep 10 service neutron-dhcp-agent start sleep 10 service neutron-l3-agent start sleep 10 service neutron-metadata-agent start 原文:http://blog.csdn.net/Hellovictoria/article/details/41311305 ################################################################# 由于各种原因,官网的外网配置似乎并不可行。 这里推荐篇文章: openstack【juno】入门高级篇:为何你的实例ping不通外网【详述】 http://www.aboutyun.com/thread-13508-1-1.html |
这里贴出一个有问题的日志,但我 不知道该怎么解决,重启了nova,neutron服务还是不行 [root@controller ~]# cat /var/log/neutron/l3-agent.log 2015-12-20 12:49:48.643 3714 INFO neutron.common.config [-] Logging enabled! 2015-12-20 12:49:48.783 3714 INFO neutron.openstack.common.rpc.impl_qpid [req-7983c877-cc04-4c46-ba02-ed8f7b5cdb50 None] Connected to AMQP server on controller:5672 2015-12-20 12:49:48.787 3714 INFO neutron.openstack.common.rpc.impl_qpid [req-7983c877-cc04-4c46-ba02-ed8f7b5cdb50 None] Connected to AMQP server on controller:5672 2015-12-20 12:49:48.815 3714 INFO neutron.openstack.common.rpc.impl_qpid [req-7983c877-cc04-4c46-ba02-ed8f7b5cdb50 None] Connected to AMQP server on controller:5672 2015-12-20 12:49:48.824 3714 INFO neutron.agent.l3_agent [req-7983c877-cc04-4c46-ba02-ed8f7b5cdb50 None] L3 agent started 2015-12-20 12:50:10.658 3714 INFO neutron.openstack.common.service [req-7983c877-cc04-4c46-ba02-ed8f7b5cdb50 None] Caught SIGTERM, exiting 2015-12-20 12:50:13.271 4826 INFO neutron.common.config [-] Logging enabled! 2015-12-20 12:50:13.427 4826 INFO neutron.openstack.common.rpc.impl_qpid [req-16e8d3f7-620f-4547-b504-3f7b522f8042 None] Connected to AMQP server on controller:5672 2015-12-20 12:50:13.431 4826 INFO neutron.openstack.common.rpc.impl_qpid [req-16e8d3f7-620f-4547-b504-3f7b522f8042 None] Connected to AMQP server on controller:5672 2015-12-20 12:50:13.486 4826 INFO neutron.openstack.common.rpc.impl_qpid [req-16e8d3f7-620f-4547-b504-3f7b522f8042 None] Connected to AMQP server on controller:5672 2015-12-20 12:50:13.491 4826 INFO neutron.agent.l3_agent [req-16e8d3f7-620f-4547-b504-3f7b522f8042 None] L3 agent started 2015-12-20 12:50:13.511 4826 INFO neutron.openstack.common.rpc.impl_qpid [req-16e8d3f7-620f-4547-b504-3f7b522f8042 None] Connected to AMQP server on controller:5672 2015-12-20 12:51:13.552 4826 ERROR neutron.agent.l3_agent [req-16e8d3f7-620f-4547-b504-3f7b522f8042 None] Failed reporting state! 2015-12-20 12:51:13.552 4826 TRACE neutron.agent.l3_agent Traceback (most recent call last): 2015-12-20 12:51:13.552 4826 TRACE neutron.agent.l3_agent File "/usr/lib/python2.6/site-packages/neutron/agent/l3_agent.py", line 965, in _report_state 2015-12-20 12:51:13.552 4826 TRACE neutron.agent.l3_agent self.use_call) 2015-12-20 12:51:13.552 4826 TRACE neutron.agent.l3_agent File "/usr/lib/python2.6/site-packages/neutron/agent/rpc.py", line 72, in report_state 2015-12-20 12:51:13.552 4826 TRACE neutron.agent.l3_agent return self.call(context, msg, topic=self.topic) 2015-12-20 12:51:13.552 4826 TRACE neutron.agent.l3_agent File "/usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/proxy.py", line 129, in call 2015-12-20 12:51:13.552 4826 TRACE neutron.agent.l3_agent exc.info, real_topic, msg.get('method')) 2015-12-20 12:51:13.552 4826 TRACE neutron.agent.l3_agent Timeout: Timeout while waiting on RPC response - topic: "q-plugin", RPC method: "report_state" info: "<unknown>" 2015-12-20 12:51:13.552 4826 TRACE neutron.agent.l3_agent 2015-12-20 12:51:13.553 4826 WARNING neutron.openstack.common.loopingcall [req-16e8d3f7-620f-4547-b504-3f7b522f8042 None] task run outlasted interval by 30.245792 sec 2015-12-20 12:51:13.553 4826 ERROR neutron.agent.l3_agent [req-16e8d3f7-620f-4547-b504-3f7b522f8042 None] Failed synchronizing routers due to RPC error 2015-12-20 12:51:13.553 4826 TRACE neutron.agent.l3_agent Traceback (most recent call last): 2015-12-20 12:51:13.553 4826 TRACE neutron.agent.l3_agent File "/usr/lib/python2.6/site-packages/neutron/agent/l3_agent.py", line 869, in _sync_routers_task 2015-12-20 12:51:13.553 4826 TRACE neutron.agent.l3_agent context, router_ids) 2015-12-20 12:51:13.553 4826 TRACE neutron.agent.l3_agent File "/usr/lib/python2.6/site-packages/neutron/agent/l3_agent.py", line 76, in get_routers 2015-12-20 12:51:13.553 4826 TRACE neutron.agent.l3_agent topic=self.topic) 2015-12-20 12:51:13.553 4826 TRACE neutron.agent.l3_agent File "/usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/proxy.py", line 129, in call 2015-12-20 12:51:13.553 4826 TRACE neutron.agent.l3_agent exc.info, real_topic, msg.get('method')) 2015-12-20 12:51:13.553 4826 TRACE neutron.agent.l3_agent Timeout: Timeout while waiting on RPC response - topic: "q-l3-plugin", RPC method: "sync_routers" info: "<unknown>" 2015-12-20 12:51:13.553 4826 TRACE neutron.agent.l3_agent 2015-12-20 12:51:13.557 4826 WARNING neutron.openstack.common.loopingcall [req-16e8d3f7-620f-4547-b504-3f7b522f8042 None] task run outlasted interval by 58.250753 sec 2015-12-20 12:51:13.560 4826 WARNING neutron.openstack.common.loopingcall [req-16e8d3f7-620f-4547-b504-3f7b522f8042 None] task run outlasted interval by 20.068138 sec 2015-12-20 12:51:13.914 4826 ERROR neutron.agent.l3_agent [req-16e8d3f7-620f-4547-b504-3f7b522f8042 None] Failed synchronizing routers due to RPC error 2015-12-20 12:51:13.914 4826 TRACE neutron.agent.l3_agent Traceback (most recent call last): 2015-12-20 12:51:13.914 4826 TRACE neutron.agent.l3_agent File "/usr/lib/python2.6/site-packages/neutron/agent/l3_agent.py", line 869, in _sync_routers_task 2015-12-20 12:51:13.914 4826 TRACE neutron.agent.l3_agent context, router_ids) 2015-12-20 12:51:13.914 4826 TRACE neutron.agent.l3_agent File "/usr/lib/python2.6/site-packages/neutron/agent/l3_agent.py", line 76, in get_routers 2015-12-20 12:51:13.914 4826 TRACE neutron.agent.l3_agent topic=self.topic) 2015-12-20 12:51:13.914 4826 TRACE neutron.agent.l3_agent File "/usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/proxy.py", line 125, in call 2015-12-20 12:51:13.914 4826 TRACE neutron.agent.l3_agent result = rpc.call(context, real_topic, msg, timeout) 2015-12-20 12:51:13.914 4826 TRACE neutron.agent.l3_agent File "/usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/__init__.py", line 112, in call 2015-12-20 12:51:13.914 4826 TRACE neutron.agent.l3_agent return _get_impl().call(CONF, context, topic, msg, timeout) 2015-12-20 12:51:13.914 4826 TRACE neutron.agent.l3_agent File "/usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/impl_qpid.py", line 784, in call 2015-12-20 12:51:13.914 4826 TRACE neutron.agent.l3_agent rpc_amqp.get_connection_pool(conf, Connection)) 2015-12-20 12:51:13.914 4826 TRACE neutron.agent.l3_agent File "/usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/amqp.py", line 575, in call 2015-12-20 12:51:13.914 4826 TRACE neutron.agent.l3_agent rv = list(rv) 2015-12-20 12:51:13.914 4826 TRACE neutron.agent.l3_agent File "/usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/amqp.py", line 540, in __iter__ 2015-12-20 12:51:13.914 4826 TRACE neutron.agent.l3_agent raise result 2015-12-20 12:51:13.914 4826 TRACE neutron.agent.l3_agent RemoteError: Remote error: AgentNotFoundByTypeHost Agent with agent_type=L3 agent and host=controller could not be found 2015-12-20 12:51:13.914 4826 TRACE neutron.agent.l3_agent [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/amqp.py", line 462, in _process_data\n **args)\n', u' File "/usr/lib/python2.6/site-packages/neutron/common/rpc.py", line 45, in dispatch\n neutron_ctxt, version, method, namespace, **kwargs)\n', u' File "/usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/dispatcher.py", line 172, in dispatch\n result = getattr(proxyobj, method)(ctxt, **kwargs)\n', u' File "/usr/lib/python2.6/site-packages/neutron/db/l3_rpc_base.py", line 57, in sync_routers\n context, host, router_ids)\n', u' File "/usr/lib/python2.6/site-packages/neutron/db/l3_agentschedulers_db.py", line 132, in list_active_sync_routers_on_active_l3_agent\n context, constants.AGENT_TYPE_L3, host)\n', u' File "/usr/lib/python2.6/site-packages/neutron/db/agents_db.py", line 140, in _get_agent_by_type_and_host\n host=host)\n', u'AgentNotFoundByTypeHost: Agent with agent_type=L3 agent and host=controller could not be found\n']. 2015-12-20 12:51:13.914 4826 TRACE neutron.agent.l3_agent 2015-12-20 12:53:45.875 4826 INFO neutron.openstack.common.service [req-16e8d3f7-620f-4547-b504-3f7b522f8042 None] Caught SIGTERM, exiting 2015-12-20 12:53:46.319 5630 INFO neutron.common.config [-] Logging enabled! 2015-12-20 12:53:46.363 5630 INFO neutron.openstack.common.rpc.impl_qpid [req-9e276080-840e-4e3c-8745-c42cb74f6d6d None] Connected to AMQP server on controller:5672 2015-12-20 12:53:46.364 5630 INFO neutron.openstack.common.rpc.impl_qpid [req-9e276080-840e-4e3c-8745-c42cb74f6d6d None] Connected to AMQP server on controller:5672 2015-12-20 12:53:46.380 5630 INFO neutron.openstack.common.rpc.impl_qpid [req-9e276080-840e-4e3c-8745-c42cb74f6d6d None] Connected to AMQP server on controller:5672 2015-12-20 12:53:46.386 5630 INFO neutron.agent.l3_agent [req-9e276080-840e-4e3c-8745-c42cb74f6d6d None] L3 agent started 2015-12-20 12:57:20.946 5630 INFO neutron.openstack.common.lockutils [-] Created lock path: /var/lib/neutron/lock 2015-12-20 12:57:23.613 5630 WARNING neutron.openstack.common.loopingcall [-] task run outlasted interval by 2.136773 sec |