luanch instance faile [closed]

asked 2020-04-09 04:46:45 -0500

anonymous user

Anonymous

updated 2020-04-09 07:57:51 -0500

eblock gravatar image

hi all there is an error when i luanch an instance,the following is the compute_node log:

2020-04-09 05:35:54.216 3561 INFO nova.virt.libvirt.driver [req-5bef2afe-1ffd-47e2-96c5-0a53b3035f8c a409cd9547a04cbf8c0fb65e812a9645 11ffde9fd4ca44c6b915f7d9a0f6eee2 - default default] [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9] Creating image
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [req-5bef2afe-1ffd-47e2-96c5-0a53b3035f8c a409cd9547a04cbf8c0fb65e812a9645 11ffde9fd4ca44c6b915f7d9a0f6eee2 - default default] [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9] Instance failed to spawn: OSError: [Errno 2] No such file or directory
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9] Traceback (most recent call last):
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2486, in _build_resources
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     yield resources
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2248, in _build_and_run_instance
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     block_device_info=block_device_info)
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3137, in spawn
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     mdevs=mdevs)
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5484, in _get_guest_xml
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     context, mdevs)
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5270, in _get_guest_config
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     flavor, guest.os_type)
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4052, in _get_guest_storage_config
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     inst_type)
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3963, in _get_guest_disk_config
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     disk_unit=disk_unit)
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 883, in libvirt_info
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     hosts, ports = self.driver.get_mon_addrs()
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/storage/rbd_utils.py", line 166, in get_mon_addrs
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     out, _ = processutils.execute(*args)
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]   File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 391, in execute
2020-04-09 05:35:57.326 3561 ERROR nova.compute.manager [instance: 6d927be5-aedb-48aa-ab11-1400051e54f9]     env=env_variables)
2020-04-09 05:35:57 ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by 业余爱好者
close date 2020-04-09 20:47:40.403967

Comments

It would help to know which OpenStack version this is, and if this happened only once or everytime you launch an instance. The error is no such file or directory, but we don't know which file that is. If you turn on DEBUG logging, perhaps that information becomes clear.

Bernd Bausch gravatar imageBernd Bausch ( 2020-04-09 05:55:25 -0500 )edit

thanks,i solve it by debug mode!

业余爱好者 gravatar image业余爱好者 ( 2020-04-09 20:47:12 -0500 )edit