首页 > 代码库 > 启动实例失败,nova-compute.log 报出 Instance failed network setup after 1 attempt(s)
启动实例失败,nova-compute.log 报出 Instance failed network setup after 1 attempt(s)
在启动 openstack 的实例时报出:
后面查看 nova-compute.log,发现:
2017-07-06 14:38:27.839 5943 ERROR nova.compute.manager [req-0cda8b99-7837-493a-bf3c-26c0649be541 22a99702c9074c6c876dc7698cf91375 c66fe3ac25a74149bef9b187ad8d4543 - - -] Instance failed network setup after 1 attempt(s)
后面查看 nova-conductor.log,发现:
2017-07-06 14:30:31.975 6051 WARNING oslo_config.cfg [req-1252606a-8e2c-4488-9a86-3c8ef7038fbc 22a99702c9074c6c876dc7698cf91375 c66fe3ac25a74149bef9b187ad8d4543 - - -] Option "auth_plugin" from group "neutron" is deprecated. Use option "auth_type" from group "neutron".
通过日志,发现可能是网络方面的问题。通过排查将 /etc/nova/nova.conf
[neutron]
url = http://controller:9696
auth_url = http://controller:35357
auth_plugin = password 《--- 有问题
project_domain_id = default 《--- 有问题
user_domain_id = default 《--- 有问题
region_name = RegionOne
project_name = service
username = neutron
password = passw0rd
service_metadata_proxy = True
metadata_proxy_shared_secret = passw0rd
改成:
[neutron]
url = http://controller:9696
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = passw0rd
service_metadata_proxy = True
metadata_proxy_shared_secret = passw0rd
重启相关的服务:systemctl restart openstack-nova-compute.service neutron-server.service openstack-nova-api.service
重新创建实例OK!!!
本文出自 “飞鸡起飞” 博客,请务必保留此出处http://xiaofeiji.blog.51cto.com/12392077/1945550
启动实例失败,nova-compute.log 报出 Instance failed network setup after 1 attempt(s)