yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #63103
[Bug 1680765] Re: <class 'glanceclient.exc.HTTPInternalServerError'> (HTTP 500)
It also looks like you're using glance v1. Nova deprecated support for
glance v1 in Newton and defaulted to using glance v2. Make sure you have
the config correct and see if you are running glance v1 and/or v2 API
endpoints.
** Changed in: nova
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1680765
Title:
<class 'glanceclient.exc.HTTPInternalServerError'> (HTTP 500)
Status in OpenStack Compute (nova):
Invalid
Bug description:
With Debian 8.6 jessie, and in Newton, when executing the following
command to create a test instance in Openstack (following the official
Openstack newton for debain guide):
openstack server create --flavor m1.nano --image cirros --security-group default --key-name mykey provider-instance
I get the following error:
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'glanceclient.exc.HTTPInternalServerError'> (HTTP 500) (Request-ID: req-64808b32-4971-4ab0-8a80-540b1f6cb527)
Here's the nova-api-log as suggested:
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions [req-ba2fba0c-7800-4886-9837-5d5ab0381eff c70c1c93d7b940dfb4255d8421d12009 5caa95a73f114f0584c9cd8ed3b02d2f - - -] Unexpected exception in API method
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/images.py", line 87, in show
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions image = self._image_api.get(context, id)
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/api.py", line 93, in get
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions show_deleted=show_deleted)
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 333, in show
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions _reraise_translated_image_exception(image_id)
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 682, in _reraise_translated_image_exception
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions six.reraise(new_exc, None, exc_trace)
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 331, in show
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions image = self._client.call(context, version, 'get', image_id)
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 250, in call
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions result = getattr(client.images, method)(*args, **kwargs)
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 132, in get
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions % urlparse.quote(str(image_id)))
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 284, in head
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions return self._request('HEAD', url, **kwargs)
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 279, in _request
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions resp, body_iter = self._handle_response(resp)
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 107, in _handle_response
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions raise exc.from_response(resp, resp.content)
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions HTTPInternalServerError: HTTPInternalServerError (HTTP 500)
2017-04-07 11:08:06.195 30396 ERROR nova.api.openstack.extensions
2017-04-07 11:08:06.197 30396 INFO nova.api.openstack.wsgi [req-ba2fba0c-7800-4886-9837-5d5ab0381eff c70c1c93d7b940dfb4255d8421d12009 5caa95a73f114f0584c9cd8ed3b02d2f - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'glanceclient.exc.HTTPInternalServerError'>
2017-04-07 11:08:06.199 30396 INFO nova.osapi_compute.wsgi.server [req-ba2fba0c-7800-4886-9837-5d5ab0381eff c70c1c93d7b940dfb4255d8421d12009 5caa95a73f114f0584c9cd8ed3b02d2f - - -] 192.168.180.30 "GET /v2.1/5caa95a73f114f0584c9cd8ed3b02d2f/images/cirros-0.3.4-x86_64-disk.img HTTP/1.1" status: 500 len: 516 time: 0.3148861
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions [req-1e1f6c53-5a99-4311-92e0-7699209307c3 c70c1c93d7b940dfb4255d8421d12009 5caa95a73f114f0584c9cd8ed3b02d2f - - -] Unexpected exception in API method
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/images.py", line 87, in show
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions image = self._image_api.get(context, id)
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/api.py", line 93, in get
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions show_deleted=show_deleted)
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 333, in show
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions _reraise_translated_image_exception(image_id)
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 682, in _reraise_translated_image_exception
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions six.reraise(new_exc, None, exc_trace)
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 331, in show
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions image = self._client.call(context, version, 'get', image_id)
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 250, in call
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions result = getattr(client.images, method)(*args, **kwargs)
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 132, in get
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions % urlparse.quote(str(image_id)))
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 284, in head
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions return self._request('HEAD', url, **kwargs)
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 279, in _request
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions resp, body_iter = self._handle_response(resp)
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 107, in _handle_response
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions raise exc.from_response(resp, resp.content)
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions HTTPInternalServerError: HTTPInternalServerError (HTTP 500)
2017-04-07 11:08:06.227 30396 ERROR nova.api.openstack.extensions
2017-04-07 11:08:06.229 30396 INFO nova.api.openstack.wsgi [req-1e1f6c53-5a99-4311-92e0-7699209307c3 c70c1c93d7b940dfb4255d8421d12009 5caa95a73f114f0584c9cd8ed3b02d2f - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'glanceclient.exc.HTTPInternalServerError'>
2017-04-07 11:08:06.230 30396 INFO nova.osapi_compute.wsgi.server [req-1e1f6c53-5a99-4311-92e0-7699209307c3 c70c1c93d7b940dfb4255d8421d12009 5caa95a73f114f0584c9cd8ed3b02d2f - - -] 192.168.180.30 "GET /v2.1/5caa95a73f114f0584c9cd8ed3b02d2f/images/cirros-0.3.4-x86_64-disk.img HTTP/1.1" status: 500 len: 516 time: 0.0269120
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions [req-6b11b855-e991-44c1-bbab-4aa1ae40c242 c70c1c93d7b940dfb4255d8421d12009 5caa95a73f114f0584c9cd8ed3b02d2f - - -] Unexpected exception in API method
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/images.py", line 128, in index
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions **page_params)
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/api.py", line 68, in get_all
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions return session.detail(context, **kwargs)
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 303, in detail
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions _reraise_translated_exception()
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 689, in _reraise_translated_exception
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions six.reraise(new_exc, None, exc_trace)
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 301, in detail
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions images = self._client.call(context, 1, 'list', **params)
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 254, in call
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions return list(result)
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 254, in list
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions for image in paginate(params, return_request_id):
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 238, in paginate
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions images, resp = self._list(url, "images")
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 63, in _list
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions resp, body = self.client.get(url)
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 287, in get
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions return self._request('GET', url, **kwargs)
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 279, in _request
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions resp, body_iter = self._handle_response(resp)
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 107, in _handle_response
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions raise exc.from_response(resp, resp.content)
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions HTTPInternalServerError: 500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)
2017-04-07 11:08:06.259 30396 ERROR nova.api.openstack.extensions
2017-04-07 11:08:06.261 30396 INFO nova.api.openstack.wsgi [req-6b11b855-e991-44c1-bbab-4aa1ae40c242 c70c1c93d7b940dfb4255d8421d12009 5caa95a73f114f0584c9cd8ed3b02d2f - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'glanceclient.exc.HTTPInternalServerError'>
2017-04-07 11:08:06.262 30396 INFO nova.osapi_compute.wsgi.server [req-6b11b855-e991-44c1-bbab-4aa1ae40c242 c70c1c93d7b940dfb4255d8421d12009 5caa95a73f114f0584c9cd8ed3b02d2f - - -] 192.168.180.30 "GET /v2.1/5caa95a73f114f0584c9cd8ed3b02d2f/images HTTP/1.1" status: 500 len: 516 time: 0.0270948
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions [req-2270d38d-b37c-477b-be5a-340c715381e3 c70c1c93d7b940dfb4255d8421d12009 5caa95a73f114f0584c9cd8ed3b02d2f - - -] Unexpected exception in API method
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/images.py", line 145, in detail
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions **page_params)
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/api.py", line 68, in get_all
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions return session.detail(context, **kwargs)
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 303, in detail
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions _reraise_translated_exception()
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 689, in _reraise_translated_exception
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions six.reraise(new_exc, None, exc_trace)
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 301, in detail
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions images = self._client.call(context, 1, 'list', **params)
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 254, in call
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions return list(result)
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 254, in list
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions for image in paginate(params, return_request_id):
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 238, in paginate
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions images, resp = self._list(url, "images")
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 63, in _list
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions resp, body = self.client.get(url)
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 287, in get
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions return self._request('GET', url, **kwargs)
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 279, in _request
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions resp, body_iter = self._handle_response(resp)
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 107, in _handle_response
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions raise exc.from_response(resp, resp.content)
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions HTTPInternalServerError: 500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)
2017-04-07 11:08:06.286 30396 ERROR nova.api.openstack.extensions
2017-04-07 11:08:06.288 30396 INFO nova.api.openstack.wsgi [req-2270d38d-b37c-477b-be5a-340c715381e3 c70c1c93d7b940dfb4255d8421d12009 5caa95a73f114f0584c9cd8ed3b02d2f - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'glanceclient.exc.HTTPInternalServerError'>
2017-04-07 11:08:06.289 30396 INFO nova.osapi_compute.wsgi.server [req-2270d38d-b37c-477b-be5a-340c715381e3 c70c1c93d7b940dfb4255d8421d12009 5caa95a73f114f0584c9cd8ed3b02d2f - - -] 192.168.180.30 "GET /v2.1/5caa95a73f114f0584c9cd8ed3b02d2f/images/detail HTTP/1.1" status: 500 len: 516 time: 0.0245221
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1680765/+subscriptions
References