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

Asked by Shrirang Phadke

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 nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] cmd=' '.join(cmd))
2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] ProcessExecutionError: Unexpected error while running command.
2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] Command: env LC_ALL=C LANG=C qemu-img info /var/lib/nova/instances/_base/1ec1b1939bae30e12e799232f51bf77182b97be7
2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] Exit code: 1
2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] Stdout: ''
2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] Stderr: "qemu-img: Could not open '/var/lib/nova/instances/_base/1ec1b1939bae30e12e799232f51bf77182b97be7': No such file or directory\n"
2013-05-17 18:35:57 32632 TRACE nova.compute.manager [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce]
2013-05-17 18:35:57 DEBUG nova.utils [req-791a77a6-8916-49db-ae57-0d25a8441763 288cf481adc940738958773256e272cb 2d84c0ca84c545adb7fb399648757e35] Got semaphore "compute_resources" for method "abort_resource_claim"... inner /usr/lib/python2.7/dist-packages/nova/utils.py:765
2013-05-17 18:35:57 INFO nova.compute.resource_tracker [req-791a77a6-8916-49db-ae57-0d25a8441763 288cf481adc940738958773256e272cb 2d84c0ca84c545adb7fb399648757e35] Aborting claim: [Claim b66a9ba8-a731-4669-9ca3-53155c9bf3ce: 512 MB memory, 1 GB disk, 1 VCPUS]
2013-05-17 18:35:57 DEBUG nova.compute.manager [req-791a77a6-8916-49db-ae57-0d25a8441763 288cf481adc940738958773256e272cb 2d84c0ca84c545adb7fb399648757e35] [instance: b66a9ba8-a731-4669-9ca3-53155c9bf3ce] Deallocating network for instance _deallocate_network /usr/lib/python2.7/dist-packages/nova/compute/manager.py:782

2013-05-17 18:57:49 7486 TRACE nova.openstack.common.rpc.amqp Stderr: "qemu-img: Could not open '/var/lib/nova/instances/_base/1ec1b1939bae30e12e799232f51bf77182b97be7': No such file or directory\n"

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Keith Tobin (keith-tobin) said :
#1

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.

Revision history for this message
Sanjay Mijar (smijar) said :
#2

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.

Can you help with this problem?

Provide an answer of your own, or ask Shrirang Phadke for more information if necessary.

To post a message you must log in.