[Openstack-zh] Excuse me, I need some help about nova-compute or amqp, tks!

杨可 xxxmailk at 163.com
Tue Jul 4 07:36:01 UTC 2017


在centos7环境下,按照官方文档搭建了好几次,发现依旧无法创建实例,报错如下:
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)
2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager Traceback (most recent call last):
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
2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager     bind_host_id=bind_host_id)
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
2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager     return func(self, context, *args, **kwargs)
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
2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager     res = f(self, context, *args, **kwargs)
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
2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager     nw_info = self.network_rpcapi.allocate_for_instance(context, **args)
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
2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager     macs=jsonutils.to_primitive(macs))
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
2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager     retry=self.retry)
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
2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager     timeout=timeout, retry=retry)
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
2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager     retry=retry)
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
2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager     result = self._waiter.wait(msg_id, timeout)
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
2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager     message = self.waiters.get(msg_id, timeout=timeout)
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
2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager     'to message ID %s' % msg_id)
2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager MessagingTimeout: Timed out waiting for a reply to message ID f9cc10b8b0364ec0994f82448df0202a
2017-07-04 15:14:01.663 20239 ERROR nova.compute.manager
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f] Traceback (most recent call last):
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     yield resources
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     block_device_info=block_device_info)
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     write_to_disk=True)
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     network_info_str = str(network_info)
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__
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)
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     self.wait()
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     self[:] = self._gt.wait()
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     return self._exit_event.wait()
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     return hubs.get_hub().switch()
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     return self.greenlet.switch()
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     result = function(*args, **kwargs)
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     return func(*args, **kwargs)
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     six.reraise(*exc_info)
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     bind_host_id=bind_host_id)
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     return func(self, context, *args, **kwargs)
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     res = f(self, context, *args, **kwargs)
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
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)
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     macs=jsonutils.to_primitive(macs))
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     retry=self.retry)
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     timeout=timeout, retry=retry)
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     retry=retry)
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
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)
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
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)
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]     'to message ID %s' % msg_id)
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
2017-07-04 15:14:01.666 20239 ERROR nova.compute.manager [instance: 876d5671-cb35-4d48-9b47-53645953c00f]

有解决过同样问题的朋友吗?可否告知一下问题所在?
本人初步猜测是rabbit和neutron之间哪里少个配置什么的?感觉neutron到rabbit的队列得不到返回值。

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-zh/attachments/20170704/10bc17a2/attachment-0001.html>


More information about the Openstack-zh mailing list