Instance failed to spawn : qemu-img: error while reading sector & Instance failed network setup after 1 attempt

asked 2014-01-08 12:49:52 -0500

m_alzantot gravatar image

Hello,

I am setting up OpenStack (havana) cloud consisting of a controller "Controller" node and one compute node "Compute2"

I have setup the controller and compute nodes and I can see from the dashboard that the two nodes "Controller" and "Compute2" are up.

I downloaded the image of cirros and while attempting to launch a new instance, I am always getting an error status for the newly created instance while launching.

I looked at the log file on the compute node at /ets/var/log/nova-compute.log and found the following errors

    2014-01-08 06:00:49.271 5365 TRACE nova.compute.manager [instance: 36e0dc40-2898-403b-ba26-54cc83272e50] ProcessExecutionError: Unexpected error while running command.
2014-01-08 06:00:49.271 5365 TRACE nova.compute.manager [instance: 36e0dc40-2898-403b-ba26-54cc83272e50] Command: qemu-img convert -O raw /var/lib/nova/instances/_base/7d83745a448bb5850cb2dc7ef54b40236df3c761.part /var/lib/nova/instances/_base/7d83745a448bb5850cb2dc7ef54b40236df3c761.converted
2014-01-08 06:00:49.271 5365 TRACE nova.compute.manager [instance: 36e0dc40-2898-403b-ba26-54cc83272e50] Exit code: 1
2014-01-08 06:00:49.271 5365 TRACE nova.compute.manager [instance: 36e0dc40-2898-403b-ba26-54cc83272e50] Stdout: ''
2014-01-08 06:00:49.271 5365 TRACE nova.compute.manager [instance: 36e0dc40-2898-403b-ba26-54cc83272e50] Stderr: 'qemu-img: error while reading sector 45056: Input/output error\n'

and

2014-01-08 06:01:48.042 5365 ERROR nova.compute.manager [-] Instance failed network setup after 1 attempt(s)

Any tips for the problem that prevents the newly instance to launch ??

Thanks in advance and the complete log is shown below:

2014-01-08 06:00:46.495 5365 AUDIT nova.compute.manager [req-be58bba3-dffe-4321-b27c-2ddc9a5d53d1 f2a122459b174b239e31808d06f144a3 cd3b1ba3d3ea4ef18e64f1eb44c084e6] [instance: 36e0dc40-2898-403b-ba26-54cc83272e50] Starting instance...
2014-01-08 06:00:47.205 5365 AUDIT nova.compute.claims [req-be58bba3-dffe-4321-b27c-2ddc9a5d53d1 f2a122459b174b239e31808d06f144a3 cd3b1ba3d3ea4ef18e64f1eb44c084e6] [instance: 36e0dc40-2898-403b-ba26-54cc83272e50] Attempting claim: memory 512 MB, disk 1 GB, VCPUs 1
2014-01-08 06:00:47.206 5365 AUDIT nova.compute.claims [req-be58bba3-dffe-4321-b27c-2ddc9a5d53d1 f2a122459b174b239e31808d06f144a3 cd3b1ba3d3ea4ef18e64f1eb44c084e6] [instance: 36e0dc40-2898-403b-ba26-54cc83272e50] Total Memory: 2002 MB, used: 1024.00 MB
2014-01-08 06:00:47.206 5365 AUDIT nova.compute.claims [req-be58bba3-dffe-4321-b27c-2ddc9a5d53d1 f2a122459b174b239e31808d06f144a3 cd3b1ba3d3ea4ef18e64f1eb44c084e6] [instance: 36e0dc40-2898-403b-ba26-54cc83272e50] Memory limit: 3003.00 MB, free: 1979.00 MB
2014-01-08 06:00:47.207 5365 AUDIT nova.compute.claims [req-be58bba3-dffe-4321-b27c-2ddc9a5d53d1 f2a122459b174b239e31808d06f144a3 cd3b1ba3d3ea4ef18e64f1eb44c084e6] [instance: 36e0dc40-2898-403b-ba26-54cc83272e50] Total Disk: 5 GB, used: 1.00 GB
2014-01-08 06:00:47.208 5365 AUDIT nova.compute.claims [req-be58bba3-dffe-4321-b27c-2ddc9a5d53d1 f2a122459b174b239e31808d06f144a3 cd3b1ba3d3ea4ef18e64f1eb44c084e6] [instance: 36e0dc40-2898-403b-ba26-54cc83272e50] Disk limit not specified, defaulting to unlimited
2014-01-08 06:00:47.209 5365 AUDIT nova.compute.claims [req-be58bba3-dffe-4321-b27c-2ddc9a5d53d1 f2a122459b174b239e31808d06f144a3 cd3b1ba3d3ea4ef18e64f1eb44c084e6] [instance: 36e0dc40-2898-403b-ba26-54cc83272e50] Total CPU: 1 VCPUs, used: 1.00 VCPUs
2014-01-08 06:00:47.209 5365 AUDIT nova.compute.claims [req-be58bba3-dffe-4321-b27c-2ddc9a5d53d1 f2a122459b174b239e31808d06f144a3 cd3b1ba3d3ea4ef18e64f1eb44c084e6] [instance: 36e0dc40-2898-403b-ba26-54cc83272e50] CPU limit not specified, defaulting to unlimited
2014-01-08 06:00:47.210 5365 AUDIT nova.compute.claims [req-be58bba3-dffe-4321-b27c-2ddc9a5d53d1 f2a122459b174b239e31808d06f144a3 cd3b1ba3d3ea4ef18e64f1eb44c084e6] [instance: 36e0dc40-2898-403b-ba26-54cc83272e50] Claim successful
2014-01-08 06:00:48.613 5365 INFO nova.virt.libvirt.driver [req-be58bba3-dffe-4321-b27c-2ddc9a5d53d1 f2a122459b174b239e31808d06f144a3 cd3b1ba3d3ea4ef18e64f1eb44c084e6] [instance: 36e0dc40-2898-403b-ba26-54cc83272e50] Creating image
2014-01-08 06:00:49.271 5365 ERROR nova.compute.manager [req-be58bba3-dffe-4321-b27c-2ddc9a5d53d1 f2a122459b174b239e31808d06f144a3 cd3b1ba3d3ea4ef18e64f1eb44c084e6] [instance: 36e0dc40-2898-403b-ba26-54cc83272e50] Instance failed to spawn
2014-01-08 06:00:49.271 5365 TRACE nova.compute.manager [instance: 36e0dc40-2898-403b-ba26-54cc83272e50] Traceback (most recent call last):
2014-01-08 06:00:49.271 5365 TRACE nova.compute.manager [instance: 36e0dc40-2898-403b-ba26-54cc83272e50]   File "/usr/lib/python2.7 ...
(more)
edit retag flag offensive close merge delete

Comments

Corrupted image? `qemu-img: error while reading sector 45056: Input/output error\n` seems to hint that way. Edit your question and specify where you got the image from, try downloading it again (if you downloaded it)

smaffulli gravatar imagesmaffulli ( 2014-01-10 14:53:25 -0500 )edit