← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1075580] Re: Glance image-delete HTTPInternalServerError HTTP 500

 

** Changed in: glance/grizzly
       Status: New => Fix Released

** Changed in: glance/grizzly
    Milestone: None => 2013.1

** Changed in: glance/grizzly
     Assignee: (unassigned) => Josh Durgin (jdurgin)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1075580

Title:
  Glance image-delete HTTPInternalServerError HTTP 500

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released
Status in Glance folsom series:
  Fix Released
Status in Glance grizzly series:
  Fix Released
Status in “glance” package in Ubuntu:
  Fix Released
Status in “glance” source package in Quantal:
  Fix Released

Bug description:
  When trying to glance image-delete I get the --debug output below,
  along with an HTTP 500. There doesn't seem to be a rhyme or reason for
  getting this.

  Any help would be appreciated.

  
  'X-Auth-Token: 6c3a2309546340bc92ef28e6e3573e09' -H 'Content-Type: application/octet-stream' -H 'User-Agent: python-glanceclient' http://10.101.54.11:9292/v1/images/102b2ad1-724d-4a71-a14a-7c46ec779800

  HTTP/1.1 500 Internal Server Error
  date: Tue, 06 Nov 2012 14:52:38 GMT
  content-length: 3450
  content-type: text/plain
  connection: close

  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 382, in handle_one_response
      result = self.application(self.environ, start_response)
    File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
      resp = self.call_func(req, *args, **self.kwargs)
    File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in call_func
      return self.func(req, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 326, in __call__
      response = req.get_response(self.application)
    File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1086, in get_response
      application, catch_exc_info=False)
    File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1055, in call_application
      app_iter = application(self.environ, start_response)
    File "/usr/lib/python2.7/dist-packages/keystone/middleware/auth_token.py", line 278, in __call__
      return self.app(env, start_response)
    File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
      resp = self.call_func(req, *args, **self.kwargs)
    File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in call_func
      return self.func(req, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 326, in __call__
      response = req.get_response(self.application)
    File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1086, in get_response
      application, catch_exc_info=False)
    File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1055, in call_application
      app_iter = application(self.environ, start_response)
    File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 203, in __call__
      return app(environ, start_response)
    File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
      return resp(environ, start_response)
    File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
      response = self.app(environ, start_response)
    File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
      return resp(environ, start_response)
    File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
      resp = self.call_func(req, *args, **self.kwargs)
    File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in call_func
      return self.func(req, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 532, in __call__
      request, **action_args)
    File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 549, in dispatch
      return method(*args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/glance/common/utils.py", line 408, in wrapped
      return func(self, req, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 836, in delete
      req.context, id)
    File "/usr/lib/python2.7/dist-packages/glance/store/__init__.py", line 259, in safe_delete_from_backend
      return delete_from_backend(context, uri, **kwargs)
    File "/usr/lib/python2.7/dist-packages/glance/store/__init__.py", line 239, in delete_from_backend
      return store.delete(loc)
    File "/usr/lib/python2.7/dist-packages/glance/store/rbd.py", line 267, in delete
      with rbd.Image(ioctx, loc.image) as image:
    File "/usr/lib/python2.7/dist-packages/rbd.py", line 299, in __init__
      raise TypeError('name must be a string')
  TypeError: name must be a string

  
  Request returned failure status.
  None
  HTTPInternalServerError (HTTP 500)

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1075580/+subscriptions