keystone.tenant.list_users returns user multiple times
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
Christina Darretta | ||
Icehouse |
Fix Released
|
Medium
|
Kieran Spear |
Bug Description
With the icehouse code base, if you call keystone v2's keystone.
My assignment table for my test server looks like this for one specific project_id:
mysql> select * from assignment where target_
*******
type: UserProject
actor_id: 665cae4478fb47a
target_id: 0f031cca55704f8
role_id: dc6dbe0f687d4af
inherited: 0
*******
type: UserProject
actor_id: 665cae4478fb47a
target_id: 0f031cca55704f8
role_id: bd089cb8a31c47a
inherited: 0
*******
type: UserProject
actor_id: 665cae4478fb47a
target_id: 0f031cca55704f8
role_id: 9ee0b22736dd4fc
inherited: 0
*******
type: UserProject
actor_id: 665cae4478fb47a
target_id: 0f031cca55704f8
role_id: 9fe2ff9ee4384b1
inherited: 0
*******
type: UserProject
actor_id: 665cae4478fb47a
target_id: 0f031cca55704f8
role_id: b804871ba2c543f
inherited: 0
5 rows in set (0.01 sec)
So user '665cae4478fb47
>tenants.
[<User {u'username': u'ctina', u'name': u'ctina', u'enabled': True, u'tenantId': u'0f031cca55704
The Havana code calls the following:
def list_user_
session = self.get_session()
query = session.
query = query.filter(
return [project_
class UserProjectGran
__tablename__ = 'user_project_
user_id = sql.Column(
project_id = sql.Column(
data = sql.Column(
The user_project_
Changed in keystone: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: |
added: icehouse-backport-potential removed: icehouse-rc-potential |
Changed in keystone: | |
assignee: | wanghong (w-wanghong) → Christina Darretta (darrettac) |
Changed in keystone: | |
status: | Triaged → In Progress |
tags: | removed: icehouse-backport-potential |
Changed in keystone: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | juno-1 → 2014.2 |
This seems to be a pretty big regression in v2 API behavior.