Ask Your Question
1

glance HTTPInternalServerError (HTTP 500) [closed]

asked 2015-01-11 23:42:55 -0500

darren-wang gravatar image

updated 2015-01-11 23:50:33 -0500

Hi,

I red many questions on HTTPInternalServerError in forum, while some of them are very close to my condition, I still didn't find the way to fix it.

The registry.log was fine and nothing abnormal reported.

Here is what I get from "$ glance image-list": HTTPInternalServerError (HTTP 500)

Here is the traceback in api.log:

2015-01-12 13:28:43.508 11354 DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: GET /v1/images/detail Accept: */* process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:44
2015-01-12 13:28:43.508 11354 DEBUG glance.api.middleware.version_negotiation [-] Using url versioning process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:57
2015-01-12 13:28:43.509 11354 DEBUG glance.api.middleware.version_negotiation [-] Matched version: v1 process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:69
2015-01-12 13:28:43.509 11354 DEBUG glance.api.middleware.version_negotiation [-] new path /v1/images/detail process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:70
2015-01-12 13:28:43.510 11354 DEBUG keystonemiddleware.auth_token [-] Authenticating user token __call__ /usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token.py:650
2015-01-12 13:28:43.510 11354 DEBUG keystonemiddleware.auth_token [-] Removing headers from request environment: X-Identity-Status,X-Domain-Id,X-Domain-Name,X-Project-Id,X-Project-Name,X-Project-Domain-Id,X-Project-Domain-Name,X-User-Id,X-User-Name,X-User-Domain-Id,X-User-Domain-Name,X-Roles,X-Service-Catalog,X-User,X-Tenant-Id,X-Tenant-Name,X-Tenant,X-Role _remove_auth_headers /usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token.py:707
2015-01-12 13:28:43.541 11354 DEBUG keystonemiddleware.auth_token [-] Server reports support for api versions: v3.0, v2.0 _get_supported_versions /usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token.py:640
2015-01-12 13:28:43.541 11354 INFO keystonemiddleware.auth_token [-] Auth Token confirmed use of v2.0 apis
2015-01-12 13:28:43.695 11354 DEBUG keystonemiddleware.auth_token [-] Storing token in cache store /usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token.py:1435
2015-01-12 13:28:43.695 11354 DEBUG keystonemiddleware.auth_token [-] Received request from user: d26d834886504c09896217c2abec1097 with project_id : e7225a5056e540999c5811065f758800 and roles: admin  _build_user_headers /usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token.py:971
2015-01-12 13:28:43.702 11354 DEBUG routes.middleware [b32aa3da-9fce-44bb-89a8-93623d090ba5 d26d834886504c09896217c2abec1097 e7225a5056e540999c5811065f758800 - - -] Matched GET /images/detail __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:100
2015-01-12 13:28:43.703 11354 DEBUG routes.middleware [b32aa3da-9fce-44bb-89a8-93623d090ba5 d26d834886504c09896217c2abec1097 e7225a5056e540999c5811065f758800 - - -] Route path: '/images/detail', defaults: {'action': u'detail', 'controller': <glance.common.wsgi.Resource object at 0x7fad9f314f50>} __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:102
2015-01-12 13:28:43.703 11354 DEBUG routes.middleware [b32aa3da-9fce-44bb-89a8-93623d090ba5 d26d834886504c09896217c2abec1097 e7225a5056e540999c5811065f758800 - - -] Match dict: {'action': u'detail', 'controller': <glance.common.wsgi.Resource object at 0x7fad9f314f50>} __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:103
2015-01-12 13:28:43.705 11354 DEBUG glance.common.client [b32aa3da-9fce-44bb-89a8-93623d090ba5 d26d834886504c09896217c2abec1097 e7225a5056e540999c5811065f758800 - - -] Constructed URL: http://0.0.0.0:9191/images/detail?sort_key=name&sort_dir=asc&limit=20 _construct_url /usr/lib/python2.7/dist-packages/glance/common/client.py:398
2015-01-12 13:28:43.708 11354 INFO glance.registry.client.v1.client [b32aa3da-9fce-44bb-89a8-93623d090ba5 d26d834886504c09896217c2abec1097 e7225a5056e540999c5811065f758800 - - -] Registry client request GET /images/detail raised ServerError
2015-01-12 13:28:43.712 11354 INFO ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by darren-wang
close date 2015-01-18 02:25:27.273890

Comments

which version of openstack? could you paste the /etc/glance-registry.conf and /etc/glance-api.conf to paste.openstack.org?

9lives gravatar image9lives ( 2015-01-12 02:09:18 -0500 )edit

Juno glance, ok, I'll try it.

darren-wang gravatar imagedarren-wang ( 2015-01-12 08:17:55 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-01-12 02:02:35 -0500

Moe gravatar image

updated 2015-01-12 02:03:31 -0500

please send us following command results on controller node: I guess you will find your problem's solution in commands bellow :)

keystone service-list
netstat -ntlp
date
iptables -L
cat /etc/nova/nova.conf
cat /etc/glance/glance-api.conf
cat /etc/glance/glance-registery.conf

and also the specified logs.

edit flag offensive delete link more

Comments

Well, @Mohammad, you are right. I think that's the drawback of installation guide for ubuntu 14.04. Most of openstack services I installed can't be launched via "# service ... start", yet many of "# service ... (re)start" are used in the installation guide which has no effect at all.

darren-wang gravatar imagedarren-wang ( 2015-01-18 02:24:53 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-01-11 23:42:55 -0500

Seen: 548 times

Last updated: Jan 12 '15