Glance - HTTPInternalServerError (HTTP 500) - Help!
Hi,
I am looking for some help debugging glance. My build is:
cunningr@
Linux OpenStack 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC
2012 x86_64 x86_64 x86_64 GNU/Linux
glance is the latest version:
cunningr@
[sudo] password for cunningr:
Reading package lists... Done
Building dependency tree
Reading state information... Done
glance is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
(not sure how to get the version from glance as "glance --version" is
not working)
When I try to add an image as per the install guidelines I get
"HTTPInternalSe
I worked through some authentication errors already with keystone and
I _think_ this part is working now. When I try to get an auth token
with curl using the same credentials it seems to work ok:
cunningr@
http://
'{"auth"
"password"
-H 'Content-type: application/json'
* About to connect() to 127.0.0.1 port 5000 (#0)
* Trying 127.0.0.1...
* connected
* Connected to 127.0.0.1 (127.0.0.1) port 5000 (#0)
> POST /v2.0/tokens HTTP/1.1
> User-Agent: curl/7.27.0
> Host: 127.0.0.1:5000
> Accept: */*
> Content-type: application/json
> Content-Length: 123
>
* upload completely sent off: 123 out of 123 bytes
* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 200 OK
< Vary: X-Auth-Token
< Content-Type: application/json
< Date: Wed, 16 Jan 2013 20:31:38 GMT
< Transfer-Encoding: chunked
<
* Connection #0 to host 127.0.0.1 left intact
{"access": {"token": {"expires": "2013-01-
"29c7ab7bbd6d48
"description": null, "name": "service", "id":
"f931d6fac2ca46
[{"adminURL": "http://
"internalURL": "http://
"ed983128768d41
"http://
"name": "glance"}], "user": {"username": "glance", "roles_links": [],
"id": "4eedc506109341
"admin"}], "name": "glance"}, "metadata": {"is_admin": 0, "roles":
["ff3a8f105bee4
But when I try to add an image with Glance I get an internal server error:
cunningr@
--os_password=
--os_auth_url=http://
disk_format=aki container_
ttylinux-
No handlers could be found for logger "keystoneclient
curl -i -X POST -H 'x-image-
'x-image-
'User-Agent: python-
'x-image-
'X-Auth-Token: 4cb5873786ee494
application/
'x-image-meta-name: tty-linux-kernel' -d '<open file '<stdin>', mode
'r' at 0x7fbc1f677150>' http://
HTTP/1.1 500 Internal Server Error
date: Wed, 16 Jan 2013 20:37:42 GMT
content-length: 4044
content-type: text/plain
connection: close
Traceback (most recent call last):
File "/usr/lib/
in handle_one_response
result = self.applicatio
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
326, in __call__
response = req.get_
File "/usr/lib/
in get_response
application, catch_exc_
File "/usr/lib/
in call_application
app_iter = application(
File "/usr/lib/
line 278, in __call__
return self.app(env, start_response)
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
326, in __call__
response = req.get_
File "/usr/lib/
in get_response
application, catch_exc_
File "/usr/lib/
in call_application
app_iter = application(
File "/usr/lib/
return app(environ, start_response)
File "/usr/lib/
return resp(environ, start_response)
File "/usr/lib/
131, in __call__
response = self.app(environ, start_response)
File "/usr/lib/
return resp(environ, start_response)
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
532, in __call__
request, **action_args)
File "/usr/lib/
549, in dispatch
return method(*args, **kwargs)
File "/usr/lib/
408, in wrapped
return func(self, req, *args, **kwargs)
File "/usr/lib/
line 684, in create
image_meta = self._reserve(req, image_meta)
File "/usr/lib/
line 362, in _reserve
image_meta = registry.
File "/usr/lib/
line 139, in add_image_metadata
return c.add_image(
File "/usr/lib/
line 140, in add_image
res = self.do_
File "/usr/lib/
line 89, in do_request
action, **kwargs)
File "/usr/lib/
line 63, in wrapped
return func(self, *args, **kwargs)
File "/usr/lib/
line 444, in do_request
headers=
File "/usr/lib/
line 80, in wrapped
return func(self, method, url, body, headers)
File "/usr/lib/
line 581, in _do_request
raise exception.
ServerError: The request returned 500 Internal Server Error.
Request returned failure status.
None
HTTPInternalSer
Can anyone help me debug this?
Cheers,
R
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Glance Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Richard Cunningham
- Solved:
- Last query:
- Last reply: