Ask Your Question
0

Instance failed to start "qemu-img: Could not open...No such file or directory"

asked 2013-05-17 13:41:57 -0600

shrirangphadke gravatar image

Hi,

Does anyone have faced above error?

Whenever I try to start an instance it says:

""qemu-img: Could not open '/var/lib/nova/instances/_base/1ec1b1939bae30e12e799232f51bf77182b97be7': No such file or directory\n""

Please find detailed logs below.

Please help.

Regards, Shrirang

Posted logs below

2013-05-17 18:35:57 ERROR nova.compute.manager [req-791a77a6-8916-49db-ae57-0d25a8441763 288cf481adc940738958773256e272cb 2d84c0ca84c545adb7fb399648757e35] [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] Instance failed to spawn 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] Traceback (most recent call last): 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 756, in _spawn 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] block_device_info) 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 117, in wrapped 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] temp_level, payload) 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__ 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] self.gen.next() 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 92, in wrapped 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] return f(args, *kw) 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1091, in spawn 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] admin_pass=admin_password) 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1357, in _create_image 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] project_id=instance['project_id']) 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line 131, in cache 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] args, *kwargs) 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line 181, in create_image 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] if size and size < disk.get_disk_size(base): 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] File "/usr/lib/python2.7/dist-packages/nova/virt/disk/api.py", line 115, in get_disk_size 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] size = images.qemu_img_info(path)['virtual size'] 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] File "/usr/lib/python2.7/dist-packages/nova/virt/images.py", line 50, in qemu_img_info 2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] 'qemu-img', 'info', path)

2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 210, in execute 2013-05-17 18:35:57 32632 TRACE ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-05-19 05:06:28 -0600

keith-tobin gravatar image

Can you verify if this image exists, do a 'll' and post the result here.

Can you also create a new new instance from the same template and le me know if you get same error.

Once you do this can you also post your nova and glance logs here, please use something linke pastie, Dropbox, etc.

edit flag offensive delete link more
0

answered 2013-05-22 16:45:16 -0600

smijar gravatar image

I found this exact same error a few hours before this question, occuring when my Openstack Folsom instance was running out of memory to run VMs. So it looks it tries to allocate memory for KVM image and then when it cannot do so, it causes the above error.

Increasing its memory available fixed the problem.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-05-17 13:41:57 -0600

Seen: 613 times

Last updated: May 22 '13