下面一步做了吗? 判断一下我们的硬件是否支持 hardware acceleration for virtual machines [mw_shl_code=bash,true]egrep -c '(vmx|svm)' /proc/cpuinfo [/mw_shl_code] 如果返回0,说明不支持,则需要配置 libvirt 使用qeum 而不是kvm。 编辑 /etc/nova/nova.conf [mw_shl_code=bash,true][libvirt]...virt_type = qemu [/mw_shl_code] 启动libvirt 和 nova compute 并设置开机启动 [mw_shl_code=bash,true]systemctl enable libvirtd.service openstack-nova-compute.service systemctl start libvirtd.service openstack-nova-compute.service[/mw_shl_code] |
楼主怎么解决的? |
redliquid 发表于 2017-3-17 16:55 卸载什么了,怎么处理的? |
我的和你 的问题是一样的,请问是如何处理的?谢谢!!! |
redliquid 发表于 2017-3-17 16:55 /var/log/nova/nova-compute.log 2017-04-03 18:53:24.507 11286 INFO nova.compute.claims [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] Attempting claim: memory 512 MB, disk 1 GB, vcpus 1 CPU 2017-04-03 18:53:24.507 11286 INFO nova.compute.claims [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] Total memory: 8191 MB, used: 512.00 MB 2017-04-03 18:53:24.508 11286 INFO nova.compute.claims [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] memory limit: 12286.50 MB, free: 11774.50 MB 2017-04-03 18:53:24.508 11286 INFO nova.compute.claims [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] Total disk: 49 GB, used: 0.00 GB 2017-04-03 18:53:24.508 11286 INFO nova.compute.claims [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] disk limit: 49.00 GB, free: 49.00 GB 2017-04-03 18:53:24.508 11286 INFO nova.compute.claims [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] Total vcpu: 1 VCPU, used: 0.00 VCPU 2017-04-03 18:53:24.509 11286 INFO nova.compute.claims [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] vcpu limit not specified, defaulting to unlimited 2017-04-03 18:53:24.523 11286 INFO nova.compute.claims [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] Claim successful 2017-04-03 18:53:25.174 11286 WARNING nova.virt.osinfo [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] Cannot find OS information - Reason: (No configuration information found for operating system Empty) 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] Instance failed network setup after 1 attempt(s) 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager Traceback (most recent call last): 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1570, in _allocate_network_async 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager bind_host_id=bind_host_id) 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 566, in allocate_for_instance 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager refresh_cache=True, neutron=neutron) else 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 716, in _has_port_binding_extension 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager self._refresh_neutron_extensions_cache(context, neutron=neutron) 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 708, in _refresh_neutron_extensions_cache 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager extensions_list = neutron.list_extensions()['extensions'] 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 97, in with_params 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager ret = self.function(instance, *args, **kwargs) 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 632, in list_extensions 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager return self.get(self.extensions_path, params=_params) 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 358, in get 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager headers=headers, params=params) 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 335, in retry_request 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager headers=headers, params=params) 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 286, in do_request 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager resp, replybody = self.httpclient.do_request(action, method, body=body) 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 306, in do_request 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager return self.request(url, method, **kwargs) 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 294, in request 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager resp = super(SessionClient, self).request(*args, **kwargs) 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 98, in request 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager return self.session.request(url, method, **kwargs) 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 94, in inner 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager return func(*args, **kwargs) 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 452, in request 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager resp = send(**kwargs) 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 496, in _send_request 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager raise exceptions.ConnectFailure(msg) 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager ConnectFailure: Unable to establish connection to http://127.0.0.1:9696/v2.0/extensions.json 2017-04-03 18:53:25.184 11286 ERROR nova.compute.manager 2017-04-03 18:53:25.209 11286 WARNING nova.virt.osinfo [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] Cannot find OS information - Reason: (No configuration information found for operating system Empty) 2017-04-03 18:53:25.530 11286 WARNING nova.virt.osinfo [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] Cannot find OS information - Reason: (No configuration information found for operating system Empty) 2017-04-03 18:53:25.531 11286 INFO nova.virt.libvirt.driver [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] Creating image 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] Instance failed to spawn 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] Traceback (most recent call last): 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2218, in _build_resources 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] yield resources 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2064, in _build_and_run_instance 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] block_device_info=block_device_info) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2776, in spawn 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] write_to_disk=True) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4715, in _get_guest_xml 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] network_info_str = str(network_info) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/network/model.py", line 521, in __str__ 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] return self._sync_wrapper(fn, *args, **kwargs) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/network/model.py", line 504, in _sync_wrapper 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] self.wait() 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/network/model.py", line 536, in wait 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] self[:] = self._gt.wait() 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 175, in wait 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] return self._exit_event.wait() 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/eventlet/event.py", line 125, in wait 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] current.throw(*self._exc) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 214, in main 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] result = function(*args, **kwargs) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/utils.py", line 1159, in context_wrapper 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] return func(*args, **kwargs) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1587, in _allocate_network_async 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] six.reraise(*exc_info) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1570, in _allocate_network_async 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] bind_host_id=bind_host_id) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 566, in allocate_for_instance 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] refresh_cache=True, neutron=neutron) else 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 716, in _has_port_binding_extension 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] self._refresh_neutron_extensions_cache(context, neutron=neutron) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 708, in _refresh_neutron_extensions_cache 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] extensions_list = neutron.list_extensions()['extensions'] 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 97, in with_params 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] ret = self.function(instance, *args, **kwargs) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 632, in list_extensions 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] return self.get(self.extensions_path, params=_params) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 358, in get 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] headers=headers, params=params) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 335, in retry_request 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] headers=headers, params=params) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 286, in do_request 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] resp, replybody = self.httpclient.do_request(action, method, body=body) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 306, in do_request 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] return self.request(url, method, **kwargs) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 294, in request 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] resp = super(SessionClient, self).request(*args, **kwargs) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 98, in request 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] return self.session.request(url, method, **kwargs) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 94, in inner 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] return func(*args, **kwargs) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 452, in request 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] resp = send(**kwargs) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 496, in _send_request 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] raise exceptions.ConnectFailure(msg) 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] ConnectFailure: Unable to establish connection to http://127.0.0.1:9696/v2.0/extensions.json 2017-04-03 18:53:25.883 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] 2017-04-03 18:53:25.886 11286 INFO nova.compute.manager [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] Terminating instance 2017-04-03 18:53:25.889 11286 INFO nova.virt.libvirt.driver [-] [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] During wait destroy, instance disappeared. 2017-04-03 18:53:25.899 11286 INFO nova.virt.libvirt.driver [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] Deleting instance files /var/lib/nova/instances/61ec627f-97d6-4fe4-b82a-7ad1b932ac1b_del 2017-04-03 18:53:25.899 11286 INFO nova.virt.libvirt.driver [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] Deletion of /var/lib/nova/instances/61ec627f-97d6-4fe4-b82a-7ad1b932ac1b_del complete 2017-04-03 18:53:26.110 11286 INFO nova.compute.manager [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] Took 0.22 seconds to destroy the instance on the hypervisor. 2017-04-03 18:53:26.112 11286 ERROR nova.compute.manager [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] Failed to deallocate network for instance. 2017-04-03 18:53:26.259 11286 WARNING nova.compute.manager [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] Could not clean up failed build, not rescheduling. Error: Unable to establish connection to http://127.0.0.1:9696/v2.0/ports ... 4-b82a-7ad1b932ac1b 2017-04-03 18:53:26.501 11286 ERROR nova.compute.manager [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] Build of instance 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b aborted: Unable to establish connection to http://127.0.0.1:9696/v2.0/extensions.json 2017-04-03 18:53:26.501 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] Traceback (most recent call last): 2017-04-03 18:53:26.501 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1926, in _do_build_and_run_instance 2017-04-03 18:53:26.501 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] filter_properties) 2017-04-03 18:53:26.501 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2083, in _build_and_run_instance 2017-04-03 18:53:26.501 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] 'create.error', fault=e) 2017-04-03 18:53:26.501 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-04-03 18:53:26.501 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] self.force_reraise() 2017-04-03 18:53:26.501 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-04-03 18:53:26.501 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] six.reraise(self.type_, self.value, self.tb) 2017-04-03 18:53:26.501 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2067, in _build_and_run_instance 2017-04-03 18:53:26.501 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] instance=instance) 2017-04-03 18:53:26.501 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__ 2017-04-03 18:53:26.501 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] self.gen.throw(type, value, traceback) 2017-04-03 18:53:26.501 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2244, in _build_resources 2017-04-03 18:53:26.501 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] reason=six.text_type(exc)) 2017-04-03 18:53:26.501 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] BuildAbortException: Build of instance 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b aborted: Unable to establish connection to http://127.0.0.1:9696/v2.0/extensions.json 2017-04-03 18:53:26.501 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [req-42477dce-28b0-4961-ba65-5d9323a0bbd4 a2ef09e29de64841a6ea2bf19cbd8311 c6e46a7876bd4d6db93b06c28026df84 - - -] [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] Failed to deallocate networks 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] Traceback (most recent call last): 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2249, in _cleanup_allocated_networks 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] self._deallocate_network(context, instance, requested_networks) 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1827, in _deallocate_network 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] context, instance, requested_networks=requested_networks) 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 821, in deallocate_for_instance 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] data = neutron.list_ports(**search_opts) 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 97, in with_params 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] ret = self.function(instance, *args, **kwargs) 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 644, in list_ports 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] **_params) 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 373, in list 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] for r in self._pagination(collection, path, **params): 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 388, in _pagination 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] res = self.get(path, params=params) 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 358, in get 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] headers=headers, params=params) 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 335, in retry_request 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] headers=headers, params=params) 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 286, in do_request 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] resp, replybody = self.httpclient.do_request(action, method, body=body) 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 306, in do_request 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] return self.request(url, method, **kwargs) 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 294, in request 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] resp = super(SessionClient, self).request(*args, **kwargs) 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 98, in request 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] return self.session.request(url, method, **kwargs) 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 94, in inner 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] return func(*args, **kwargs) 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 452, in request 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] resp = send(**kwargs) 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 496, in _send_request 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] raise exceptions.ConnectFailure(msg) 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] ConnectFailure: Unable to establish connection to http://127.0.0.1:9696/v2.0/ports ... 4-b82a-7ad1b932ac1b 2017-04-03 18:53:26.503 11286 ERROR nova.compute.manager [instance: 61ec627f-97d6-4fe4-b82a-7ad1b932ac1b] 我的和你 的问题一个样子,万望指点下你怎么弄好的。 |
找出问题原因了,openstack的包有bug,卸载了,装centos的就可以了。 |
egrep -c '(vmx|svm)' /proc/cpuinfo这个返回是非0. |
晚上回家,在虚拟机上试了一下,也是一样的报错。 2017-03-16 21:20:25.059 2621 ERROR nova.scheduler.utils [req-c7e4f5a1-ce48-470e-8d7e-f0ec6abbc6ec 83e301fae0a945ec9c2ffb03387e4e86 dd27bd9eb7184a17b0f0c67720fb4a5f - - -] [instance: 20f4540d-55fb-422e-a4ea-15bb2cd2852e] Error from last host: compute01 (node compute01): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1926, in _do_build_and_run_instance\n filter_properties)\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2116, in _build_and_run_instance\n instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance 20f4540d-55fb-422e-a4ea-15bb2cd2852e was re-scheduled: internal error: qemu unexpectedly closed the monitor: \n(process:2816): GLib-WARNING **: gmem.c:482: custom memory allocation vtable not supported\n2017-03-16T13:20:23.513729Z qemu-kvm: CPU feature arat not found\n'] 2017-03-16 21:20:25.414 2621 WARNING nova.scheduler.utils [req-c7e4f5a1-ce48-470e-8d7e-f0ec6abbc6ec 83e301fae0a945ec9c2ffb03387e4e86 dd27bd9eb7184a17b0f0c67720fb4a5f - - -] Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available. Traceback (most recent call last): [root@controller01 ~]# openstack flavor list +----+-----------+-------+------+-----------+-------+-----------+ | ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public | +----+-----------+-------+------+-----------+-------+-----------+ | 1 | m1.tiny | 512 | 1 | 0 | 1 | True | | 2 | m1.small | 2048 | 20 | 0 | 1 | True | | 3 | m1.medium | 4096 | 40 | 0 | 2 | True | | 4 | m1.large | 8192 | 80 | 0 | 4 | True | | 5 | m1.xlarge | 16384 | 160 | 0 | 8 | True | +----+-----------+-------+------+-----------+-------+-----------+ [root@controller01 ~]# openstack flavor show m1.tiny +----------------------------+---------+ | Field | Value | +----------------------------+---------+ | OS-FLV-DISABLED:disabled | False | | OS-FLV-EXT-DATA:ephemeral | 0 | | disk | 1 | | id | 1 | | name | m1.tiny | | os-flavor-access:is_public | True | | properties | | | ram | 512 | | rxtx_factor | 1.0 | | swap | | | vcpus | 1 | +----------------------------+---------+ [root@controller01 ~]# openstack compute service list +----+------------------+--------------+----------+---------+-------+----------------------------+ | Id | Binary | Host | Zone | Status | State | Updated At | +----+------------------+--------------+----------+---------+-------+----------------------------+ | 1 | nova-conductor | controller01 | internal | enabled | up | 2017-03-16T13:26:43.000000 | | 2 | nova-scheduler | controller01 | internal | enabled | up | 2017-03-16T13:26:43.000000 | | 3 | nova-consoleauth | controller01 | internal | enabled | up | 2017-03-16T13:26:43.000000 | | 6 | nova-compute | compute01 | nova | enabled | up | 2017-03-16T13:26:36.000000 | +----+------------------+--------------+----------+---------+-------+----------------------------+ |