查看: 2172|回复: 0

【求助】CentOS 7.2 OpenStack Mitaka创建实例失败

[复制链接]
论坛徽章:
0
发表于 2017-6-2 11:13 | 显示全部楼层 |阅读模式
创建实例时报错:
错误: 云主机 "kvm01" 执行所请求操作失败,云主机处于错误状态。: 请稍后再试 [错误: Build of instance 45207056-842f-4428-a097-1c8872f552cf aborted: internal error: client socket is closed].


查看nova-compute.log报错:
2017-06-02 11:12:22.498 14999 ERROR root [req-eab3f730-f9ee-4ea8-acba-2698b83a2db2 fab86e758dc2460d92ea7b72795f114d 16c36cfdedc84570a900d4d00dba52f5 - - -] Original exception being dropped: ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 137, in launch\n    return self._domain.createWithFlags(flags)\n', '  File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 183, in doit\n    result = proxy_call(self._autowrap, f, *args, **kwargs)\n', '  File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 141, in proxy_call\n    rv = execute(f, *args, **kwargs)\n', '  File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 122, in execute\n    six.reraise(c, e, tb)\n', '  File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 80, in tworker\n    rv = meth(*args, **kwargs)\n', '  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1065, in createWithFlags\n    if ret == -1: raise libvirtError (\'virDomainCreateWithFlags() failed\', dom=self)\n', 'libvirtError: End of file while reading data: Input/output error\n']
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [req-eab3f730-f9ee-4ea8-acba-2698b83a2db2 fab86e758dc2460d92ea7b72795f114d 16c36cfdedc84570a900d4d00dba52f5 - - -] [instance: 45207056-842f-4428-a097-1c8872f552cf] Instance failed to spawn
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf] Traceback (most recent call last):
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2218, in _build_resources
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     yield resources
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2064, in _build_and_run_instance
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     block_device_info=block_device_info)
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2779, in spawn
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     block_device_info=block_device_info)
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4923, in _create_domain_and_network
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     xml, pause=pause, power_on=power_on)
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4854, in _create_domain
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     guest.launch(pause=pause)
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 142, in launch
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     self._encoded_xml, errors='ignore')
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 109, in _encoded_xml
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     return encodeutils.safe_decode(self._domain.XMLDesc(0))
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 183, in doit
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     result = proxy_call(self._autowrap, f, *args, **kwargs)
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 141, in proxy_call
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     rv = execute(f, *args, **kwargs)
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 122, in execute
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     six.reraise(c, e, tb)
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 80, in tworker
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     rv = meth(*args, **kwargs)
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 492, in XMLDesc
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     if ret is None: raise libvirtError ('virDomainGetXMLDesc() failed', dom=self)
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf] libvirtError: internal error: client socket is closed
2017-06-02 11:12:22.498 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]
2017-06-02 11:12:22.499 14999 INFO nova.compute.manager [req-eab3f730-f9ee-4ea8-acba-2698b83a2db2 fab86e758dc2460d92ea7b72795f114d 16c36cfdedc84570a900d4d00dba52f5 - - -] [instance: 45207056-842f-4428-a097-1c8872f552cf] Terminating instance
2017-06-02 11:12:22.549 14999 INFO nova.virt.libvirt.driver [req-eab3f730-f9ee-4ea8-acba-2698b83a2db2 fab86e758dc2460d92ea7b72795f114d 16c36cfdedc84570a900d4d00dba52f5 - - -] Connection event '0' reason 'Failed to connect to libvirt'
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host [req-eab3f730-f9ee-4ea8-acba-2698b83a2db2 fab86e758dc2460d92ea7b72795f114d 16c36cfdedc84570a900d4d00dba52f5 - - -] Connection to libvirt failed: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Connection refused
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host Traceback (most recent call last):
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/host.py", line 528, in get_connection
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host     conn = self._get_connection()
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/host.py", line 515, in _get_connection
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host     wrapped_conn = self._get_new_connection()
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/host.py", line 467, in _get_new_connection
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host     wrapped_conn = self._connect(self._uri, self._read_only)
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/host.py", line 321, in _connect
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host     libvirt.openAuth, uri, auth, flags)
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 141, in proxy_call
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host     rv = execute(f, *args, **kwargs)
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 122, in execute
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host     six.reraise(c, e, tb)
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 80, in tworker
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host     rv = meth(*args, **kwargs)
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 105, in openAuth
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host     if ret is None:raise libvirtError('virConnectOpenAuth() failed')
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Connection refused
2017-06-02 11:12:22.576 14999 ERROR nova.virt.libvirt.host
2017-06-02 11:12:22.579 14999 WARNING nova.compute.manager [req-eab3f730-f9ee-4ea8-acba-2698b83a2db2 fab86e758dc2460d92ea7b72795f114d 16c36cfdedc84570a900d4d00dba52f5 - - -] Could not clean up failed build, not rescheduling. Error: Connection to the hypervisor is broken on host: compute1
2017-06-02 11:12:22.717 14999 ERROR nova.compute.manager [req-eab3f730-f9ee-4ea8-acba-2698b83a2db2 fab86e758dc2460d92ea7b72795f114d 16c36cfdedc84570a900d4d00dba52f5 - - -] [instance: 45207056-842f-4428-a097-1c8872f552cf] Build of instance 45207056-842f-4428-a097-1c8872f552cf aborted: internal error: client socket is closed
2017-06-02 11:12:22.717 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf] Traceback (most recent call last):
2017-06-02 11:12:22.717 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1926, in _do_build_and_run_instance
2017-06-02 11:12:22.717 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     filter_properties)
2017-06-02 11:12:22.717 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2083, in _build_and_run_instance
2017-06-02 11:12:22.717 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     'create.error', fault=e)
2017-06-02 11:12:22.717 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-06-02 11:12:22.717 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     self.force_reraise()
2017-06-02 11:12:22.717 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-06-02 11:12:22.717 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     six.reraise(self.type_, self.value, self.tb)
2017-06-02 11:12:22.717 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2067, in _build_and_run_instance
2017-06-02 11:12:22.717 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     instance=instance)
2017-06-02 11:12:22.717 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__
2017-06-02 11:12:22.717 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     self.gen.throw(type, value, traceback)
2017-06-02 11:12:22.717 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2244, in _build_resources
2017-06-02 11:12:22.717 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]     reason=six.text_type(exc))
2017-06-02 11:12:22.717 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf] BuildAbortException: Build of instance 45207056-842f-4428-a097-1c8872f552cf aborted: internal error: client socket is closed
2017-06-02 11:12:22.717 14999 ERROR nova.compute.manager [instance: 45207056-842f-4428-a097-1c8872f552cf]
2017-06-02 11:12:22.981 14999 INFO nova.compute.manager [req-eab3f730-f9ee-4ea8-acba-2698b83a2db2 fab86e758dc2460d92ea7b72795f114d 16c36cfdedc84570a900d4d00dba52f5 - - -] [instance: 45207056-842f-4428-a097-1c8872f552cf] Took 0.26 seconds to deallocate network for instance.

查看libvirt日志报错:
Jun  2 10:54:45 compute1 kernel: libvirtd[15826]: segfault at 8 ip 00007f6664c239d3 sp 00007f66541531d0 error 4 in libvirt.so.0.2000.0[7f6664acf000+354000]
Jun  2 10:54:45 compute1 journal: 读取数据时进入文件终点: 输入/输出错误
Jun  2 10:54:45 compute1 systemd: libvirtd.service: main process exited, code=killed, status=11/SEGV
Jun  2 10:54:45 compute1 systemd: Unit libvirtd.service entered failed state.
Jun  2 10:54:45 compute1 systemd: libvirtd.service failed.
Jun  2 10:54:45 compute1 systemd: libvirtd.service holdoff time over, scheduling restart.
Jun  2 10:54:45 compute1 systemd: Starting Virtualization daemon...
Jun  2 10:54:45 compute1 systemd: Started Virtualization daemon.
Jun  2 11:01:01 compute1 systemd: Started Session 27 of user root.
Jun  2 11:01:01 compute1 systemd: Starting Session 27 of user root.



请各位大神帮忙看看原因,谢谢!

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

 

GMT+8, 2019-7-21 14:28 , Processed in 0.109017 second(s), 28 queries .