[Openstack-operators] failed to spawn?

Sharif Islam islamsh at indiana.edu
Thu Jul 14 23:46:28 UTC 2011


I was able to fix my glance config. So that is now working. However, i
am still getting the failed to spawn error.

this is from the controller:

# glance index
Found 3 public images...
ID               Name                           Disk Format
Container Format     Size
---------------- ------------------------------ --------------------
-------------------- --------------
20               None                           ami                  ami
                       25165824
19               None                           ari                  ari
                        5882349
18               None                           aki                  aki
                        4404752
[root at i26 ~]# glance details
Found 3 public images...
================================================================================
URI: http://0.0.0.0/images/20
Id: 20
Public: Yes
Name: None
Status: active
Size: 25165824
Location: file:///var/lib/glance/images/20
Disk format: ami
Container format: ami
Property 'image_location':
ramdisk-bucket/ttylinux-uec-amd64-12.1_2.6.35-22_1.img.manifest.xml
Property 'image_state': available
Property 'kernel_id': 18
Property 'ramdisk_id': 19
Property 'architecture': x86_64
Property 'project_id': fgadmin
================================================================================
URI: http://0.0.0.0/images/19
Id: 19
Public: Yes
Name: None
Status: active
Size: 5882349
Location: file:///var/lib/glance/images/19
Disk format: ari
Container format: ari
Property 'image_location':
ramdisk-bucket/ttylinux-uec-amd64-12.1_2.6.35-22_1-initrd.manifest.xml
Property 'image_state': available
Property 'project_id': fgadmin
Property 'architecture': x86_64
================================================================================
URI: http://0.0.0.0/images/18
Id: 18
Public: Yes
Name: None
Status: active
Size: 4404752
Location: file:///var/lib/glance/images/18
Disk format: aki
Container format: aki
Property 'image_location':
kernel-bucket/ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz.manifest.xml
Property 'image_state': available
Property 'project_id': fgadmin
Property 'architecture': x86_64
================================================================================



from the compute node log:

2011-07-14 19:43:55,585 nova.compute.manager: AUDIT
[A8UEQDDOMY0QIXJW8H4G sharif fgadmin] instance 112: starting...
2011-07-14 19:43:56,403 nova: called setup_basic_filtering in nwfilter
2011-07-14 19:43:56,403 nova: ensuring static filters
2011-07-14 19:43:56,571 nova.virt.libvirt_conn: instance
instance-00000070: Creating image
2011-07-14 19:43:56,586 nova.exception: Uncaught exception
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE:   File
"/usr/lib/python2.6/site-packages/nova/exception.py", line 87, in _wrap
(nova.exception): TRACE:     return f(*args, **kw)
(nova.exception): TRACE:   File
"/usr/lib/python2.6/site-packages/nova/virt/libvirt/connection.py", line
590, in spawn
(nova.exception): TRACE:     block_device_mapping=block_device_mapping)
(nova.exception): TRACE:   File
"/usr/lib/python2.6/site-packages/nova/virt/libvirt/connection.py", line
817, in _create_image
(nova.exception): TRACE:     project=project)
(nova.exception): TRACE:   File
"/usr/lib/python2.6/site-packages/nova/virt/libvirt/connection.py", line
751, in _cache_image
(nova.exception): TRACE:     call_if_not_exists(base, fn, *args, **kwargs)
(nova.exception): TRACE:   File
"/usr/lib/python2.6/site-packages/nova/utils.py", line 605, in inner
(nova.exception): TRACE:     retval = f(*args, **kwargs)
(nova.exception): TRACE:   File
"/usr/lib/python2.6/site-packages/nova/virt/libvirt/connection.py", line
749, in call_if_not_exists
(nova.exception): TRACE:     fn(target=base, *args, **kwargs)
(nova.exception): TRACE:   File
"/usr/lib/python2.6/site-packages/nova/virt/libvirt/connection.py", line
762, in _fetch_image
(nova.exception): TRACE:     images.fetch(image_id, target, user, project)
(nova.exception): TRACE:   File
"/usr/lib/python2.6/site-packages/nova/virt/images.py", line 44, in fetch
(nova.exception): TRACE:     metadata = image_service.get(elevated,
image_id, image_file)
(nova.exception): TRACE:   File
"/usr/lib/python2.6/site-packages/nova/image/glance.py", line 139, in get
(nova.exception): TRACE:     image_meta, image_chunks =
self.client.get_image(image_id)
(nova.exception): TRACE:   File
"/usr/lib/python2.6/site-packages/glance/client.py", line 224, in get_image
(nova.exception): TRACE:     res = self.do_request("GET", "/images/%s" %
image_id)
(nova.exception): TRACE:   File
"/usr/lib/python2.6/site-packages/glance/client.py", line 167, in do_request
(nova.exception): TRACE:     "server. Got error: %s" % e)
(nova.exception): TRACE: ClientConnectionError: Unable to connect to
server. Got error: [Errno 111] ECONNREFUSED
(nova.exception): TRACE:
2011-07-14 19:43:56,587 nova.compute.manager: Instance '112' failed to
spawn. Is virtualization enabled in the BIOS? Details: Unable to connect
to server. Got error: [Errno 111] ECONNREFUSED
(nova.compute.manager): TRACE: Traceback (most recent call last):
(nova.compute.manager): TRACE:   File
"/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 323, in
_run_instance
(nova.compute.manager): TRACE:
block_device_mapping=block_device_mapping)
(nova.compute.manager): TRACE:   File
"/usr/lib/python2.6/site-packages/nova/exception.py", line 93, in _wrap
(nova.compute.manager): TRACE:     raise Error(str(e))
(nova.compute.manager): TRACE: Error: Unable to connect to server. Got
error: [Errno 111] ECONNREFUSED
(nova.compute.manager): TRACE:
2011-07-14 19:44:01,069 nova.compute.manager: Updating host status
2011-07-14 19:44:01,096 nova.compute.manager: Found instance
'instance-00000070' in DB but no VM. State=8, so setting state to shutoff.
2011-07-14 19:44:01,096 nova.compute.manager: DB/VM state mismatch.
Changing state from '8' to '5'


I can telnet to the glance server fine:

[root at i38 ~]# telnet xx.xx.xxxxx 9191
Trying  xx.xx.xxxxx..
Connected to  xx.xx.xxxxx.
Escape character is '^]'.
TEST
<head>
<title>Error response</title>
</head>
<body>
<h1>Error response</h1>
<p>Error code 400.
<p>Message: Bad request syntax ('TEST').
<p>Error code explanation: 400 = Bad request syntax or unsupported method.
</body>
Connection closed by foreign host.



--sharif




On 07/14/2011 08:20 AM, Leandro Reox wrote:
> Where's your glance server located? On the same node ? Can you telnet
> the glance API port to see if connects ? TCP 9292 , if that fail it
> seems like your glance service is down ...
> 
> Regards
> Lele
> 




More information about the Openstack-operators mailing list