Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Getting HTTP 500 when creating new instance

Hello,

I've installed openstack liberty with TripleO. Overcloud is successfully deployed with 1 controller and 2 compute nodes.

When I try to create an instance it fails and the errors are:

From nova show: No valid host was found. There are not enough hosts available.

From the compute node: HTTPInternalServerError: 500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)

And the full trace is :

Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2156, in _build_resources yield resources File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2009, in _build_and_run_instance block_device_info=block_device_info) File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2527, in spawn admin_pass=admin_password) File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2953, in _create_image instance, size, fallback_from_host) File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 6392, in _try_fetch_image_cache size=size) File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 240, in cache args, *kwargs) File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 544, in create_image prepare_template(target=base, max_size=size, args, *kwargs) File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 254, in inner return f(args, *kwargs) File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 230, in fetch_func_sync fetch_func(target=target, args, *kwargs) File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/utils.py", line 408, in fetch_image max_size=max_size) File "/usr/lib/python2.7/site-packages/nova/virt/images.py", line 123, in fetch_to_raw max_size=max_size) File "/usr/lib/python2.7/site-packages/nova/virt/images.py", line 113, in fetch IMAGE_API.download(context, image_href, dest_path=path) File "/usr/lib/python2.7/site-packages/nova/image/api.py", line 182, in download dst_path=dest_path) File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 367, in download _reraise_translated_image_exception(image_id) File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 613, in _reraise_translated_image_exception six.reraise(new_exc, None, exc_trace) File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 365, in download image_chunks = self._client.call(context, 1, 'data', image_id) File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 231, in call result = getattr(client.images, method)(args, *kwargs) File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 148, in data % urlparse.quote(str(image_id))) File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 276, in get return self._request('GET', url, **kwargs) File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 268, in _request resp, body_iter = self._handle_response(resp) File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 89, in _handle_response raise exc.from_response(resp, resp.content) HTTPInternalServerError: 500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)

Any hint in troubleshooting is highly appreciated. Thanks.

Getting HTTP 500 when creating new instance

Hello,

I've installed openstack liberty with TripleO. Overcloud is successfully deployed with 1 controller and 2 compute nodes.

When I try to create an instance it fails and the errors are:

From nova show: show:

No valid host was found. There are not enough hosts available.

available.

From the compute node: HTTPInternalServerError: 500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)

And the full trace is :

 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2156, in _build_resources
     yield resources
   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2009, in _build_and_run_instance
     block_device_info=block_device_info)
   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2527, in spawn
     admin_pass=admin_password)
   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2953, in _create_image
     instance, size, fallback_from_host)
   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 6392, in _try_fetch_image_cache
     size=size)
   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 240, in cache
     args, *kwargs)
*args, **kwargs)
   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 544, in create_image
     prepare_template(target=base, max_size=size, args, *kwargs)
*args, **kwargs)
   File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 254, in inner
     return f(args, *kwargs)
f(*args, **kwargs)
   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 230, in fetch_func_sync
     fetch_func(target=target, args, *kwargs)
*args, **kwargs)
   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/utils.py", line 408, in fetch_image
     max_size=max_size)
   File "/usr/lib/python2.7/site-packages/nova/virt/images.py", line 123, in fetch_to_raw
     max_size=max_size)
   File "/usr/lib/python2.7/site-packages/nova/virt/images.py", line 113, in fetch
     IMAGE_API.download(context, image_href, dest_path=path)
   File "/usr/lib/python2.7/site-packages/nova/image/api.py", line 182, in download
     dst_path=dest_path)
   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 367, in download
     _reraise_translated_image_exception(image_id)
   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 613, in _reraise_translated_image_exception
     six.reraise(new_exc, None, exc_trace)
   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 365, in download
     image_chunks = self._client.call(context, 1, 'data', image_id)
   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 231, in call
     result = getattr(client.images, method)(args, *kwargs)
method)(*args, **kwargs)
   File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 148, in data
     % urlparse.quote(str(image_id)))
   File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 276, in get
     return self._request('GET', url, **kwargs)
   File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 268, in _request
     resp, body_iter = self._handle_response(resp)
   File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 89, in _handle_response
     raise exc.from_response(resp, resp.content)
 HTTPInternalServerError: 500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)

500)

Any hint in troubleshooting is highly appreciated. Thanks.