root@computer1:/var/log/libvirt# vim /var/log/nova/nova-compute.log
2015-09-14 09:26:53.197 4420 INFO nova.openstack.common.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative
2015-09-14 09:26:53.228 4420 INFO nova.virt.driver [-] Loading compute driver 'libvirt.LibvirtDriver'
2015-09-14 09:26:53.258 4420 INFO oslo.messaging._drivers.impl_rabbit [-] Connected to AMQP server on controller:5672
2015-09-14 09:26:53.283 4420 INFO oslo.messaging._drivers.impl_rabbit [-] Connected to AMQP server on controller:5672
2015-09-14 09:26:53.316 4420 AUDIT nova.service [-] Starting compute node (version 2014.1.5)
2015-09-14 09:26:53.489 4420 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources
2015-09-14 09:26:53.607 4420 AUDIT nova.compute.resource_tracker [-] Free ram (MB): 11496
2015-09-14 09:26:53.608 4420 AUDIT nova.compute.resource_tracker [-] Free disk (GB): 46
2015-09-14 09:26:53.608 4420 AUDIT nova.compute.resource_tracker [-] Free VCPUS: 4
2015-09-14 09:26:53.628 4420 WARNING nova.compute.resource_tracker [-] No service record for host computer1
2015-09-14 09:26:53.646 4420 ERROR nova.openstack.common.threadgroup [-] Compute host computer1 could not be found.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 142, in inner
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line 286, in service_get_all_by
context, result['host'])
File "/usr/lib/python2.7/dist-packages/nova/objects/base.py", line 163, in wrapper
result = fn(cls, context, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/objects/compute_node.py", line 355, in get_all_by_host
raise exception.ComputeHostNotFound(host=host)
ComputeHostNotFound: Compute host computer1 could not be found.
2015-09-14 09:26:53.646 4420 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
2015-09-14 09:26:53.646 4420 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.py", line 117
, in wait
2015-09-14 09:26:53.646 4420 TRACE nova.openstack.common.threadgroup x.wait()
2015-09-14 09:26:53.646 4420 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.py", line 49,
in wait
2015-09-14 09:26:53.646 4420 TRACE nova.openstack.common.threadgroup return self.thread.wait()
2015-09-14 09:26:53.646 4420 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait
2015-09-14 09:26:53.646 4420 TRACE nova.openstack.common.threadgroup return self._exit_event.wait()
2015-09-14 09:26:53.646 4420 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2015-09-14 09:26:53.646 4420 TRACE nova.openstack.common.threadgroup return hubs.get_hub().switch()
2015-09-14 09:26:53.646 4420 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch
2015-09-14 09:26:53.646 4420 TRACE nova.openstack.common.threadgroup return self.greenlet.switch()
2015-09-14 09:26:53.646 4420 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main
2015-09-14 09:26:53.646 4420 TRACE nova.openstack.common.threadgroup result = function(*args, **kwargs)
2015-09-14 09:26:53.646 4420 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/openstack/common/service.py", line 483, in
run_service
2015-09-14 09:26:53.646 4420 TRACE nova.openstack.common.threadgroup service.start()
2015-09-14 09:26:53.646 4420 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/service.py", line 180, in start
2015-09-14 09:26:53.646 4420 TRACE nova.openstack.common.threadgroup self.manager.pre_start_hook()
2015-09-14 09:26:53.646 4420 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1119, in pre_sta
rt_hook
"/var/log/nova/nova-compute.log" 408L, 44063C
nova-compute服务无法启动,根据日志,貌似是说computer1这台服务器无法找到,但是我把nova-compute服务就是安装在了computer1这台服务器上了,而且ping computer1 也是可以ping通的。nova-computer配置信息如下:
[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
log_dir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
iscsi_helper=tgtadm
libvirt_use_virtio_for_bridges=True
connection_type=libvirt
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata
rpc_backend = rabbit
auth_strategy = keystone
rabbit_host =controller
rabbit_userid = openstack
rabbit_password = root
my_ip = 192.168.254.100
vnc_enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 192.168.254.101
novncproxy_base_url = http://controller:6080/vnc_auto.html
[oslo_messaging_rabbit]
rabbit_host =controller
rabbit_userid = openstack
rabbit_password = root
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = nova
password = root
[glance]
host = controller
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[neutron]
service_metadata_proxy = True
metadata_proxy_shared_secret = 192.168.254.101
computer1服务器ip地址192.168.254.101,controller服务器地址为192.168.254.100
求大神帮忙看下。。。我觉得应该是个很简单的错误,就是自己看不出来。。。
|