<html><body><p><font size="2">你在用nova network? 应该用Neutron阿。。。</font><br><font size="2">如果确定是nova network, 你可以看看服务起来没有</font><br><br><font size="2">Best Regards! <br><br>Kevin (Chen) Ji 纪 晨<br><br>Engineer, zVM Development, CSTL<br>Notes: Chen CH Ji/China/IBM@IBMCN Internet: jichenjc@cn.ibm.com<br>Phone: +86-10-82451493<br>Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District, Beijing 100193, PRC </font><br><br><img width="16" height="16" src="cid:1__=8FBB0BC0DFB9241A8f9e8a93df938690918c8FB@" border="0" alt="Inactive hide details for 杨可 ---07/04/2017 03:39:08 PM---在centos7环境下,按照官方文档搭建了好几次,发"><font size="2" color="#424282">杨可 ---07/04/2017 03:39:08 PM---在centos7环境下,按照官方文档搭建了好几次,发现依旧无法创建实例,报错如下: 2017-07-04 15:14:</font><br><br><font size="2" color="#5F5F5F">From: </font><font size="2">杨可 <xxxmailk@163.com></font><br><font size="2" color="#5F5F5F">To: </font><font size="2">openstack-zh@lists.openstack.org</font><br><font size="2" color="#5F5F5F">Date: </font><font size="2">07/04/2017 03:39 PM</font><br><font size="2" color="#5F5F5F">Subject: </font><font size="2">[Openstack-zh] Excuse me, I need some help about nova-compute or amqp, tks!</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><font face="Arial">在centos7环境下,按照官方文档搭建了好几次,发现依旧无法创建实例,报错如下:<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager [req-9dc58b73-719d-44ee-998f-32b7ec57dd95 ef162c8bdf8846ed9b441d4bb9acf5fd f0b31ad6a39d4b2995ad392cd08c54c3 - - -] Instance failed network setup after 1 attempt(s)<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager Traceback (most recent call last):<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1570, in _allocate_network_async<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager bind_host_id=bind_host_id)<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/api.py", line 49, in wrapped<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager return func(self, context, *args, **kwargs)<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/base_api.py", line 77, in wrapper<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager res = f(self, context, *args, **kwargs)<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/api.py", line 283, in allocate_for_instance<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager nw_info = self.network_rpcapi.allocate_for_instance(context, **args)<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/rpcapi.py", line 163, in allocate_for_instance<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager macs=jsonutils.to_primitive(macs))<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 158, in call<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager retry=self.retry)<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 90, in _send<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager timeout=timeout, retry=retry)<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 470, in send<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager retry=retry)<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 459, in _send<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager result = self._waiter.wait(msg_id, timeout)<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 342, in wait<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager message = self.waiters.get(msg_id, timeout=timeout)<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 244, in get<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager 'to message ID %s' % msg_id)<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager MessagingTimeout: Timed out waiting for a reply to message ID f9cc10b8b0364ec0994f82448df0202a<br>2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager <br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [req-9dc58b73-719d-44ee-998f-32b7ec57dd95 ef162c8bdf8846ed9b441d4bb9acf5fd f0b31ad6a39d4b2995ad392cd08c54c3 - - -] [instance: 876d5671-cb35-4d48-9b47-53645953c00f] Instance failed to spawn<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] Traceback (most recent call last):<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2218, in _build_resources<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] yield resources<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2064, in _build_and_run_instance<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] block_device_info=block_device_info)<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2776, in spawn<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] write_to_disk=True)<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4715, in _get_guest_xml<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] network_info_str = str(network_info)<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/nova/network/model.py", line 521, in __str__<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] return self._sync_wrapper(fn, *args, **kwargs)<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/nova/network/model.py", line 504, in _sync_wrapper<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] self.wait()<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/nova/network/model.py", line 536, in wait<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] self[:] = self._gt.wait()<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 175, in wait<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] return self._exit_event.wait()<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/eventlet/event.py", line 121, in wait<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] return hubs.get_hub().switch()<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] return self.greenlet.switch()<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 214, in main<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] result = function(*args, **kwargs)<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/nova/utils.py", line 1159, in context_wrapper<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] return func(*args, **kwargs)<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1587, in _allocate_network_async<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] six.reraise(*exc_info)<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1570, in _allocate_network_async<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] bind_host_id=bind_host_id)<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/nova/network/api.py", line 49, in wrapped<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] return func(self, context, *args, **kwargs)<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/nova/network/base_api.py", line 77, in wrapper<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] res = f(self, context, *args, **kwargs)<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/nova/network/api.py", line 283, in allocate_for_instance<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] nw_info = self.network_rpcapi.allocate_for_instance(context, **args)<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/nova/network/rpcapi.py", line 163, in allocate_for_instance<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] macs=jsonutils.to_primitive(macs))<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 158, in call<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] retry=self.retry)<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 90, in _send<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] timeout=timeout, retry=retry)<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 470, in send<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] retry=retry)<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 459, in _send<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] result = self._waiter.wait(msg_id, timeout)<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 342, in wait<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] message = self.waiters.get(msg_id, timeout=timeout)<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 244, in get<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] 'to message ID %s' % msg_id)<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] MessagingTimeout: Timed out waiting for a reply to message ID f9cc10b8b0364ec0994f82448df0202a<br>2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] <br><br>有解决过同样问题的朋友吗?可否告知一下问题所在?<br>本人初步猜测是rabbit和neutron之间哪里少个配置什么的?感觉neutron到rabbit的队列得不到返回值。<br></font><br><br>
<p> <tt><font size="2">_______________________________________________<br>Openstack-zh mailing list<br>Openstack-zh@lists.openstack.org<br></font></tt><tt><font size="2"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-zh">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-zh</a></font></tt><tt><font size="2"><br></font></tt><p><p><BR>
</body></html>