← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Hi Inessa,

I do not see the v3 API merged into the repository, so marking this bug
invalid as it does not affect any of the current branches. Please add
these  details as comment to the relevant  review.

** Changed in: glance
       Status: New => Invalid

-- 
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):
  Invalid

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


References