Instance failed to spawn : "qemu-img: could not open...."

asked 2014-01-18 09:54:20 -0600

Hokam Singh gravatar image

updated 2014-01-24 19:06:01 -0600

smaffulli gravatar image

On my system instance launch for cirros image(specified in the deployment guide) is successfully working. But when i am launching the instance using vmdk image(created via virtual box), then instance is failing while spawning with below error.

2014-01-18 20:44:24.719 4416 ERROR nova.compute.manager [req-84ff997d-3d40-48d5-b2d9-d0dda580ae39 ff1e1cb9c1104fc9867f47fc7abfd99b cb0927687433462c807ba29e446b2972] [instance: 4a519faa-a6c6-46c5-962f-637989c227cc] **Instance failed to spawn**<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc] Traceback (most recent call last):<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1417, in _spawn<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]     block_device_info)<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2059, in spawn<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]     admin_pass=admin_password)<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2364, in _create_image<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]     project_id=instance['project_id'])<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagebackend.py", line 174, in cache<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]     *args, *kwargs)<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagebackend.py", line 291, in create_image<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]     prepare_template(target=base, max_size=size, *args, *kwargs)<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]   File "/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py", line 246, in inner<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]     return f(*args, *kwargs)<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagebackend.py", line 162, in call_if_not_exists<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]     fetch_func(target=target, *args, *kwargs)<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/utils.py", line 618, in fetch_image<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]     max_size=max_size)<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]   File "/usr/lib/python2.6/site-packages/nova/virt/images.py", line 199, in fetch_to_raw<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]     data = qemu_img_info(path_tmp)<br>
2014-01-18 20:44:24.719 4416 TRACE nova.compute.manager [instance: 4a519faa-a6c6-46c5-962f-637989c227cc]   File "/usr/lib/python2.6/site-packages/nova/virt/images.py", line 172, in qemu_img_info<br ...
(more)
edit retag flag offensive close merge delete

Comments

Start from "qemu-img: Could not open '/home/openstack/nova-state/instances/_base/5dc77b2549ef361b55efc7738b30dfa3468e264a.part'" and make sure that the file exists, it has proper permissions. Check the documentation on how to create custom images.

smaffulli gravatar imagesmaffulli ( 2014-01-24 19:07:09 -0600 )edit