Comment 5 for bug 1172719

Revision history for this message
Stuart McLaren (stuart-mclaren) wrote : Re: [Bug 1172719] Re: 500 server error when admin tries to access private image uuid

Hi Mark,

Gotta run to pick up somebody -- here's a stack. Can you just check there's no HP creds in it before pasting anywhere?
Thanks!

Apr 25 09:05:32 gl-aw1rde1-api0000 16978 DEBUG eventlet.wsgi.server [00ba261a-91a6-43d3-bddb-6602cec833b4 77049353665607 34096082065107] Traceback (most recent call last):
012 File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 336, in handle_one_response
012 result = self.application(self.environ, start_response)
012 File "/usr/lib/python2.7/dist-packages/hp_glance_extras/middleware/healthcheck.py", line 38, in __call__
012 return self.app(env, start_response)
012 File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
012 resp = self.call_func(req, *args, **self.kwargs)
012 File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 208, in call_func
012 return self.func(req, *args, **kwargs)
012 File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 345, in __call__
012 response = req.get_response(self.application)
012 File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1053, in get_response
012 application, catch_exc_info=False)
012 File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1022, in call_application
012 app_iter = application(self.environ, start_response)
012 File "/usr/lib/python2.7/dist-packages/hp/middleware/cs_auth_token.py", line 160, in __call__
012 return super(CsAuthProtocol, self).__call__(env, start_response)
012 File "/usr/lib/python2.7/dist-packages/keystoneclient/middleware/auth_token.py", line 451, in __call__
012 return self.app(env, start_response)
012 File "/usr/lib/python2.7/dist-packages/hp/middleware/cs_authz.py", line 30, in __call__
012 return self.app(env, start_response)
012 File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
012 resp = self.call_func(req, *args, **self.kwargs)
012 File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 208, in call_func
012 return self.func(req, *args, **kwargs)
012 File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 345, in __call__
012 response = req.get_response(self.application)
012 File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1053, in get_response
012 application, catch_exc_info=False)
012 File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1022, in call_application
012 app_iter = application(self.environ, start_response)
012 File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
012 resp = self.call_func(req, *args, **self.kwargs)
012 File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 208, in call_func
012 return self.func(req, *args, **kwargs)
012 File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 345, in __call__
012 response = req.get_response(self.application)
012 File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1053, in get_response
012 application, catch_exc_info=False)
012 File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1022, in call_application
012 app_iter = application(self.environ, start_response)
012 File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
012 resp = self.call_func(req, *args, **self.kwargs)
012 File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 208, in call_func
012 return self.func(req, *args, **kwargs)
012 File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 345, in __call__
012 response = req.get_response(self.application)
012 File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1053, in get_response
012 application, catch_exc_info=False)
012 File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1022, in call_application
012 app_iter = application(self.environ, start_response)
012 File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 203, in __call__
012 return app(environ, start_response)
012 File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
012 return resp(environ, start_response)
012 File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
012 response = self.app(environ, start_response)
012 File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
012 return resp(environ, start_response)
012 File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
012 resp = self.call_func(req, *args, **self.kwargs)
012 File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 208, in call_func
012 return self.func(req, *args, **kwargs)
012 File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 552, in __call__
012 request, **action_args)
012 File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 569, in dispatch
012 return method(*args, **kwargs)
012 File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 204, in detail
012 images = registry.get_images_detail(req.context, **params)
012 File "/usr/lib/python2.7/dist-packages/glance/registry/__init__.py", line 133, in get_images_detail
012 return c.get_images_detailed(**kwargs)
012 File "/usr/lib/python2.7/dist-packages/glance/registry/client.py", line 115, in get_images_detailed
012 res = self.do_request("GET", "/images/detail", params=params)
012 File "/usr/lib/python2.7/dist-packages/glance/registry/client.py", line 90, in do_request
012 **kwargs)
012 File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 62, in wrapped
012 return func(self, *args, **kwargs)
012 File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 376, in do_request
012 headers=headers)
012 File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 79, in wrapped
012 return func(self, method, url, body, headers)
012 File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 514, in _do_request
012 raise exception.ServerError()
012ServerError: The request returned 500 Internal Server Error.

On Thu, 25 Apr 2013, Mark Washenberger wrote:

> Nevermind, I get it now. Any chance you have a server-side stack trace
> for this 500 that you could paste here?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1172719
>
> Title:
> 500 server error when admin tries to access private image uuid
>
> Status in OpenStack Image Registry and Delivery Service (Glance):
> In Progress
>
> Bug description:
> This shows up in a couple different ways:
>
>
> $ curl -v -k -H 'x-auth-token: XXX' -X PUT -H 'x-glance-registry-purge-props: false' -H 'x-image-meta-property-foo: bar' https://localhost:9191/images/719bb85c-c8df-4fae-ba2a-f2bd5271c4f3
> * About to connect() to localhost port 9191 (#0)
> * Trying 127.0.0.1... connected
> * successfully set certificate verify locations:
> * CAfile: none
> CApath: /etc/ssl/certs
> * SSLv3, TLS handshake, Client hello (1):
> * SSLv3, TLS handshake, Server hello (2):
> * SSLv3, TLS handshake, CERT (11):
> * SSLv3, TLS handshake, Server finished (14):
> * SSLv3, TLS handshake, Client key exchange (16):
> * SSLv3, TLS change cipher, Client hello (1):
> * SSLv3, TLS handshake, Finished (20):
> * SSLv3, TLS change cipher, Client hello (1):
> * SSLv3, TLS handshake, Finished (20):
> * SSL connection using AES256-SHA
> > PUT /images/719bb85c-c8df-4fae-ba2a-f2bd5271c4f3 HTTP/1.1
> > User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> > Host: localhost:9191
> > Accept: */*
> > x-auth-token: XXX
> > x-glance-registry-purge-props: false
> > x-image-meta-property-foo: bar
> >
> < HTTP/1.1 500 Internal Server Error
> < Content-Type: text/plain
> < Content-Length: 0
> < Date: Thu, 25 Apr 2013 10:05:27 GMT
> < Connection: close
> <
> * Closing connection #0
> * SSLv3, TLS alert, Client hello (1):
>
>
>
> curl -v -H 'X-Auth-Token: XXX' -k https://localhost:9292/v1/images?marker=932c5833-b7a4-4a90-847b-914ce611099b
> * About to connect() to localhost port 9292 (#0)
> * Trying 15.184.9.33... connected
> * successfully set certificate verify locations:
> * CAfile: none
> CApath: /etc/ssl/certs
> * SSLv3, TLS handshake, Client hello (1):
> * SSLv3, TLS handshake, Server hello (2):
> * SSLv3, TLS handshake, CERT (11):
> * SSLv3, TLS handshake, Server finished (14):
> * SSLv3, TLS handshake, Client key exchange (16):
> * SSLv3, TLS change cipher, Client hello (1):
> * SSLv3, TLS handshake, Finished (20):
> * SSLv3, TLS change cipher, Client hello (1):
> * SSLv3, TLS handshake, Finished (20):
> * SSL connection using AES256-SHA
> * Server certificate:
>
> > GET /v1/images?marker=932c5833-b7a4-4a90-847b-914ce611099b HTTP/1.1
> > User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> > Host: localhost:9292
> > Accept: */*
> > X-Auth-Token: XXX
> >
> < HTTP/1.1 500 Internal Server Error
> < Content-Type: text/plain
> < Content-Length: 0
> < Date: Thu, 25 Apr 2013 11:07:15 GMT
> < Connection: close
> <
> * Closing connection #0
> * SSLv3, TLS alert, Client hello (1):
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/glance/+bug/1172719/+subscriptions
>