分享

nova-compute启动不正常?<kilo>

jpzmg 发表于 2017-10-19 16:12:51 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 4 6652

compute1节点的/etc/nova/nova.conf配置


[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
libvirt_use_virtio_for_bridges=True
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
enabled_apis=ec2,osapi_compute,metadata

rpc_backend = rabbit
auth_strategy = keystone
my_ip = 10.0.0.31
#MANAGEMENT_INTERFACE_IP_ADDRESS = 10.0.0.31
vnc_enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 10.0.0.31
novncproxy_base_url = http://controller:6080/vnc_auto.html


[glance]
host = controller

[oslo_concurrency]
lock_path = /var/lib/nova/tmp

[oslo_messaging_rabbit]
rabbit_host = 10.0.0.11
rabbit_userid = openstack
rabbit_password = RABBIT_PASS


[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 = 123




/etc/hosta

127.0.0.1       localhost
#10.0.0.11      ubuntu

10.0.0.11     controller

10.0.0.21   network

10.0.0.31   compute1



# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters



有了rabbit_host= controller   nova-compute启动不起来的问题。注释掉后可以正常启动但连不上controller节点??  小白求助啊 谢谢各位

已有(4)人评论

跳转到指定楼层
jpzmg 发表于 2017-10-19 16:14:41
2017-10-19 00:10:14.077 2494 ERROR nova.openstack.common.threadgroup [req-98b6000e-07c1-4c47-be90-6663e00d5729 - - - - -] failed to detect a valid IP address from u'MANAGEMENT_INTERFACE_IP_ADDRESS'
2017-10-19 01:06:50.687 2555 ERROR nova.openstack.common.threadgroup [req-4d1290a1-52ac-4490-971c-e9260589ac4b - - - - -] failed to detect a valid IP address from u'MANAGEMENT_INTERFACE_IP_ADDRESS'
2017-10-19 01:13:21.955 2606 ERROR nova.openstack.common.threadgroup [req-8f2ed521-bccf-4d76-bc0b-bc0188a989a4 - - - - -] failed to detect a valid IP address from u'MANAGEMENT_INTERFACE_IP_ADDRESS'
root@compute1:/var/log/nova#
这是nova-compute日志中的报错
回复

使用道具 举报

jpzmg 发表于 2017-10-19 16:19:17
root@compute1:~# service nova-compute restart
stop: Unknown instance:
nova-compute start/running, process 2555
root@compute1:~# service nova-compute restart
stop: Unknown instance:
nova-compute start/running, process 2606
回复

使用道具 举报

einhep 发表于 2017-10-19 18:53:31
jpzmg 发表于 2017-10-19 16:19
root@compute1:~# service nova-compute restart
stop: Unknown instance:
nova-compute start/running, ...

到/var/log下面看看对应的日志,排除错误可参考下面帖子
openstack排除查找错误的两种方法
http://www.aboutyun.com/forum.php?mod=viewthread&tid=7241


回复

使用道具 举报

jpzmg 发表于 2017-10-22 15:07:27
einhep 发表于 2017-10-19 18:53
到/var/log下面看看对应的日志,排除错误可参考下面帖子
openstack排除查找错误的两种方法
http://www. ...

谢谢帮助
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条