openstack 创建实例失败原因总结
1.nova-manage service list
其中进程失败
2.网络分配失败
表现1:Spawning new instances fails to allocate the network
表现2:OpenStack juno error: Virtual Interface creation failed
表现3:
File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2039, in _do_build_and_run_instance filter_properties) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2157, in _build_and_run_instance reason=msg)
计算节点log信息
ompute.manager [-] Instance failed to spawn
2015-05-13 09:43:17.006 2451 TRACE nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line
2252, in _build_resources
2015-05-13 09:43:17.006 2451 TRACE nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line
2122, in _build_and_run_instance
2015-05-13 09:43:17.006 2451 TRACE nova.compute.manager VirtualInterfaceCreateException: Virtual Interface creation failed
2015-05-13 09:43:17.006 2451 TRACE nova.compute.manager
2015-05-13 09:43:17.015 2451 AUDIT nova.compute.manager Terminating instance
2015-05-13 09:43:17.031 2451 WARNING nova.virt.libvirt.driver [-] During wait destroy, instance disappeared.
2015-05-13 09:43:17.261 2451 INFO nova.virt.libvirt.driver [-] Deletion of /var/lib/nova/instances/7d025f29-0c6b-4b8c-81c5-8f9c
71bd35dc_del complete
2015-05-13 09:43:17.492 2451 INFO nova.scheduler.client.report [-] Compute_service record updated for ('server-01', 'server-01')
2015-05-13 09:43:17.492 2451 ERROR nova.compute.manager [-] Failed to allocate network(s)
表现4:
Build of instance 098387eb-efba-4f21-ae83-a7c27bf77bf2 aborted: Failed to allocate the network(s), not rescheduling.
在计算节点
/etc/nova/nova-compute.conf
增加如下内容:
vif_plugging_timeout = 10
vif_plugging_is_fatal = False
重启service nova-compute restart
页:
[1]