← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1462455] [NEW] Glance v3 api returns 500 on get_all_artifacts with data_api=registry

 

Public bug reported:

If glance-api is configured with

data_api = glance.db.registry.api

Any call to list artifacts (in example, curl
http://localhost:9292/v3/artifacts/myartifact) will return HTTP 500 with
the following stacktrace:

  File "/home/ina/projects/glance/.venv/local/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/home/ina/projects/glance/.venv/local/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/home/ina/projects/glance/glance/common/wsgi.py", line 873, in __call__
    request, **action_args)
  File "/home/ina/projects/glance/glance/common/wsgi.py", line 897, in dispatch
    return method(*args, **kwargs)
  File "/home/ina/projects/glance/glance/api/v3/artifacts.py", line 118, in list
    **kwargs)
  File "/home/ina/projects/glance/glance/artifacts/domain/proxy.py", line 65, in list
    items = self.base.list(*args, **kwargs)
  File "/home/ina/projects/glance/glance/artifacts/domain/proxy.py", line 65, in list
    items = self.base.list(*args, **kwargs)
  File "/home/ina/projects/glance/glance/artifacts/domain/proxy.py", line 65, in list
    items = self.base.list(*args, **kwargs)
  File "/home/ina/projects/glance/glance/db/__init__.py", line 100, in list
    sort_keys=sort_keys, sort_dirs=sort_dirs, show_level=show_level)
  File "/home/ina/projects/glance/glance/db/registry/api.py", line 57, in wrapper
    return func(client, *args, **kwargs)
TypeError: artifact_get_all() got an unexpected keyword argument 'sort_dirs'

** Affects: glance
     Importance: Undecided
         Status: New

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

Title:
  Glance v3 api returns 500 on get_all_artifacts with data_api=registry

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  If glance-api is configured with

  data_api = glance.db.registry.api

  Any call to list artifacts (in example, curl
  http://localhost:9292/v3/artifacts/myartifact) will return HTTP 500
  with the following stacktrace:

    File "/home/ina/projects/glance/.venv/local/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__
      resp = self.call_func(req, *args, **self.kwargs)
    File "/home/ina/projects/glance/.venv/local/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func
      return self.func(req, *args, **kwargs)
    File "/home/ina/projects/glance/glance/common/wsgi.py", line 873, in __call__
      request, **action_args)
    File "/home/ina/projects/glance/glance/common/wsgi.py", line 897, in dispatch
      return method(*args, **kwargs)
    File "/home/ina/projects/glance/glance/api/v3/artifacts.py", line 118, in list
      **kwargs)
    File "/home/ina/projects/glance/glance/artifacts/domain/proxy.py", line 65, in list
      items = self.base.list(*args, **kwargs)
    File "/home/ina/projects/glance/glance/artifacts/domain/proxy.py", line 65, in list
      items = self.base.list(*args, **kwargs)
    File "/home/ina/projects/glance/glance/artifacts/domain/proxy.py", line 65, in list
      items = self.base.list(*args, **kwargs)
    File "/home/ina/projects/glance/glance/db/__init__.py", line 100, in list
      sort_keys=sort_keys, sort_dirs=sort_dirs, show_level=show_level)
    File "/home/ina/projects/glance/glance/db/registry/api.py", line 57, in wrapper
      return func(client, *args, **kwargs)
  TypeError: artifact_get_all() got an unexpected keyword argument 'sort_dirs'

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


Follow ups

References