本帖最后由 leoevo 于 2015-10-24 15:20 编辑
我在按照文档学习部署时遇到了问题请帮助查看,使用的环境为虚拟机centos7,在安装完计算节点后发现服务启动有问题
openstack-nova-compute.service loaded activating start start
ipmievd.service loaded failed failed
同时查看了nova-compute日志发现如下报错:
2015-10-24 10:00:35.396 23874 ERROR nova.openstack.common.threadgroup [req-43382c74-5240-46fc-ad59-141e0f38b29c - - - - -] XML error: Missing CPU model name
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/nova/openstack/common/threadgroup.py", line 145, in wait
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup x.wait()
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/nova/openstack/common/threadgroup.py", line 47, in wait
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup return self.thread.wait()
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 175, in wait
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup return self._exit_event.wait()
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/eventlet/event.py", line 121, in wait
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup return hubs.get_hub().switch()
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup return self.greenlet.switch()
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 214, in main
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup result = function(*args, **kwargs)
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/nova/openstack/common/service.py", line 502, in run_service
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup service.start()
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/nova/service.py", line 164, in start
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup self.manager.init_host()
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1270, in init_host
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup self.driver.init_host(host=self.host)
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 528, in init_host
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup self._do_quality_warnings()
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 506, in _do_quality_warnings
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup caps = self._host.get_capabilities()
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/host.py", line 750, in get_capabilities
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup libvirt.VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES)
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 183, in doit
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup result = proxy_call(self._autowrap, f, *args, **kwargs)
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 141, in proxy_call
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup rv = execute(f, *args, **kwargs)
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 122, in execute
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup six.reraise(c, e, tb)
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 80, in tworker
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup rv = meth(*args, **kwargs)
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3329, in baselineCPU
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup if ret is None: raise libvirtError ('virConnectBaselineCPU() failed', conn=self)
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup libvirtError: XML error: Missing CPU model name
2015-10-24 10:00:35.396 23874 TRACE nova.openstack.common.threadgroup
2015-10-24 10:00:38.177 23907 INFO nova.virt.driver [-] Loading compute driver 'libvirt.LibvirtDriver'
2015-10-24 10:00:38.190 23907 INFO nova.openstack.common.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative
2015-10-24 10:00:38.298 23907 INFO oslo_messaging._drivers.impl_rabbit [req-a32d6e86-a1b6-409d-b7fc-5a3b8ca0b7b8 - - - - -] Connecting to AMQP server on controller:5672
2015-10-24 10:00:38.319 23907 INFO oslo_messaging._drivers.impl_rabbit [req-a32d6e86-a1b6-409d-b7fc-5a3b8ca0b7b8 - - - - -] Connected to AMQP server on controller:5672
2015-10-24 10:00:38.324 23907 INFO oslo_messaging._drivers.impl_rabbit [req-a32d6e86-a1b6-409d-b7fc-5a3b8ca0b7b8 - - - - -] Connecting to AMQP server on controller:5672
2015-10-24 10:00:38.341 23907 INFO oslo_messaging._drivers.impl_rabbit [req-a32d6e86-a1b6-409d-b7fc-5a3b8ca0b7b8 - - - - -] Connected to AMQP server on controller:5672
2015-10-24 10:00:38.377 23907 INFO nova.service [-] Starting compute node (version 2015.1.1-1.el7)
2015-10-24 10:00:38.443 23907 INFO nova.virt.libvirt.driver [-] Connection event '1' reason 'None'
2015-10-24 10:00:38.457 23907 WARNING nova.virt.libvirt.driver [req-13e1c0be-180b-4ff4-8743-6781aa572157 - - - - -] Cannot update service status on host "compute1" since it is
not registered.
2015-10-24 10:00:38.464 23907 INFO nova.virt.libvirt.host [req-13e1c0be-180b-4ff4-8743-6781aa572157 - - - - -] Libvirt host capabilities <capabilities>
我把控制和计算节点的selinux都已经关闭问题依旧,控制点nova service-list也无法查看到计算节点
请帮忙分析 感谢
补充:
systemctl status libvirtd.service openstack-nova-compute.service -l查看了必要服务情况发现 libvirtd.service 也有报错
libvirtd.service - Virtualization daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled)
Active: active (running) since Sat 2015-10-24 15:08:25 CST; 15s ago
Docs: man:libvirtd(8)
http://libvirt.org
Main PID: 25958 (libvirtd)
CGroup: /system.slice/libvirtd.service
鈹斺攢25958 /usr/sbin/libvirtd
Oct 24 15:08:33 compute1 libvirtd[25958]: XML error: Missing CPU model name
Oct 24 15:08:33 compute1 libvirtd[25958]: End of file while reading data: Input/output error
Oct 24 15:08:36 compute1 libvirtd[25958]: internal error: Cannot find suitable CPU model for given data
Oct 24 15:08:36 compute1 libvirtd[25958]: Failed to get host CPU
Oct 24 15:08:36 compute1 libvirtd[25958]: XML error: Missing CPU model name
Oct 24 15:08:36 compute1 libvirtd[25958]: End of file while reading data: Input/output error
Oct 24 15:08:39 compute1 libvirtd[25958]: internal error: Cannot find suitable CPU model for given data
Oct 24 15:08:39 compute1 libvirtd[25958]: Failed to get host CPU
Oct 24 15:08:39 compute1 libvirtd[25958]: XML error: Missing CPU model name
Oct 24 15:08:39 compute1 libvirtd[25958]: End of file while reading data: Input/output error
|