bug listing services when using templated backend (v3)

Bug #1550742 reported by Bjørnar Ness
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Wishlist
Steve Martinelli

Bug Description

INFO keystone.common.wsgi [req-30ece488-820d-4e31-8e51-a12f236e5f06 019d0e196d8c4ea68ba206cc5e8dacfd dcf235b4b7a54de4bf7c7b03c531cb82 - default default] GET http://identity.api/v3/services
ERROR keystone.common.wsgi [req-30ece488-820d-4e31-8e51-a12f236e5f06 019d0e196d8c4ea68ba206cc5e8dacfd dcf235b4b7a54de4bf7c7b03c531cb82 - default default] _list_services() missing 1 required positional argument: 'hints'
ERROR keystone.common.wsgi Traceback (most recent call last):
ERROR keystone.common.wsgi File "/keystone/lib/python3.4/site-packages/keystone/common/wsgi.py", line 250, in __call__
ERROR keystone.common.wsgi result = method(context, **params)
ERROR keystone.common.wsgi File "/keystone/lib/python3.4/site-packages/keystone/common/controller.py", line 247, in wrapper
ERROR keystone.common.wsgi return f(self, context, filters, **kwargs)
ERROR keystone.common.wsgi File "/keystone/lib/python3.4/site-packages/keystone/catalog/controllers.py", line 281, in list_services
ERROR keystone.common.wsgi refs = self.catalog_api.list_services(hints=hints)
ERROR keystone.common.wsgi File "/keystone/lib/python3.4/site-packages/keystone/common/manager.py", line 124, in wrapped
ERROR keystone.common.wsgi __ret_val = __f(*args, **kwargs)
ERROR keystone.common.wsgi File "/keystone/lib/python3.4/site-packages/keystone/common/manager.py", line 65, in wrapper
ERROR keystone.common.wsgi return f(self, *args, **kwargs)
ERROR keystone.common.wsgi File "/keystone/lib/python3.4/site-packages/keystone/catalog/core.py", line 239, in list_services
ERROR keystone.common.wsgi return self.driver.list_services(hints or driver_hints.Hints())
ERROR keystone.common.wsgi File "/keystone/lib/python3.4/site-packages/keystone/catalog/backends/templated.py", line 146, in list_services
ERROR keystone.common.wsgi return list(self._list_services())
ERROR keystone.common.wsgi TypeError: _list_services() missing 1 required positional argument: 'hints'
ERROR keystone.common.wsgi

Revision history for this message
Mohan (mmuppidi) wrote :

Con you please give some more information when and how you have noticed it. More information on your environment so that situation can be recreated

Revision history for this message
Bjørnar Ness (bjornar-ness) wrote :

https://github.com/openstack/keystone/blob/master/keystone/catalog/backends/templated.py#L146

- return list(self._list_services())
- return list(self._list_services(hints))

Changed in keystone:
assignee: nobody → Steve Martinelli (stevemar)
status: New → In Progress
Changed in keystone:
milestone: none → mitaka-3
importance: Undecided → Medium
Revision history for this message
Steve Martinelli (stevemar) wrote :
Changed in keystone:
milestone: mitaka-3 → mitaka-rc1
Changed in keystone:
importance: Medium → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/286142
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=773525317c380fe3e9e059152feaefccbd379bdf
Submitter: Jenkins
Branch: master

commit 773525317c380fe3e9e059152feaefccbd379bdf
Author: Steve Martinelli <email address hidden>
Date: Mon Feb 29 11:32:46 2016 -0500

    add hints to list_services for templated backend

    a positional argument is missing and surfacing as a stack trace,
    set it to None since there is no need for hints in a templated
    backend.

    Closes-Bug: 1550742

    Change-Id: If0007887f4f638b8aae8d2c3ce5c7611e5a24384

Changed in keystone:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/keystone 9.0.0.0rc1

This issue was fixed in the openstack/keystone 9.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.