Activity log for bug #1693510

Date Who What changed Old value New value Message
2017-05-25 13:38:55 prashkre bug added bug
2017-05-25 13:46:22 prashkre keystone: assignee prashkre (prashkre)
2017-05-25 16:15:38 Matthew Edmonds keystone: status New Confirmed
2017-05-25 16:16:36 Matthew Edmonds tags ldap
2017-05-25 16:16:43 Matthew Edmonds tags ldap ldap ocata-backport-potential
2017-05-25 16:17:05 Matthew Edmonds tags ldap ocata-backport-potential in-stable-ocata ldap ocata-backport-potential
2017-05-25 16:17:31 Matthew Edmonds tags in-stable-ocata ldap ocata-backport-potential ldap ocata-backport-potential
2017-05-25 16:50:42 OpenStack Infra keystone: status Confirmed In Progress
2017-05-25 19:53:58 Lance Bragstad description In an environment like ldap server as identity backend, consider ldap group say "fakeGroup2" containing some users is assigned role which insert records in keystone.assignment table. After a while if an admin removes that group from identity backend, role assignment still persists in keystone.assignment table for that group. So when someone invokes [0], in the flow [1] of getting effective role assignments, since group "fakeGroup2" doesn't exits in ldap, it is throwing "Could not find group: fakeGroup2" with 404 error which we need to handle it by displaying other role_assignments instead of NotFound error. [0] GET /v3/role_assignments?effective&include_names&scope.project.id=proj1 [1] https://github.com/openstack/keystone/blob/master/keystone/assignment/core.py#L923 https://github.com/openstack/keystone/blob/master/keystone/assignment/core.py#L839 https://github.com/openstack/keystone/blob/master/keystone/assignment/core.py#L467 >> here it is trying to get the users for each of the ldap group. https://github.com/openstack/keystone/blob/master/keystone/identity/backends/ldap/core.py#L128 https://github.com/openstack/keystone/blob/master/keystone/identity/backends/ldap/core.py#L449 >> since the group is removed from ldap backend, it is throwing exception.GroupNotFound. In an environment like ldap server as identity backend, consider ldap group say "fakeGroup2" containing some users is assigned role which insert records in keystone.assignment table. After a while if an admin removes that group from identity backend, role assignment still persists in keystone.assignment table for that group. So when someone invokes [0], in the flow [1] of getting effective role assignments, since group "fakeGroup2" doesn't exits in ldap, it is throwing "Could not find group: fakeGroup2" with 404 error which we need to handle it by displaying other role_assignments instead of NotFound error. [0] GET /v3/role_assignments?effective&include_names&scope.project.id=proj1 [1] https://github.com/openstack/keystone/blob/c3ca06ff47cced16ea9de3d6ef1a6c583bb3cf38/keystone/assignment/core.py#L923 https://github.com/openstack/keystone/blob/c3ca06ff47cced16ea9de3d6ef1a6c583bb3cf38/keystone/assignment/core.py#L839 https://github.com/openstack/keystone/blob/c3ca06ff47cced16ea9de3d6ef1a6c583bb3cf38/keystone/assignment/core.py#L467 >> here it is trying to get the users for each of the ldap group. https://github.com/openstack/keystone/blob/c3ca06ff47cced16ea9de3d6ef1a6c583bb3cf38/keystone/identity/backends/ldap/core.py#L128 https://github.com/openstack/keystone/blob/c3ca06ff47cced16ea9de3d6ef1a6c583bb3cf38/keystone/identity/backends/ldap/core.py#L449 >> since the group is removed from ldap backend, it is throwing exception.GroupNotFound.
2017-05-25 19:55:16 OpenStack Infra keystone: assignee prashkre (prashkre) Matthew Edmonds (edmondsw)
2017-05-30 21:26:29 OpenStack Infra keystone: status In Progress Fix Released
2017-05-31 13:50:42 Lance Bragstad keystone: milestone pike-1
2017-05-31 13:52:26 Lance Bragstad nominated for series keystone/ocata
2017-05-31 13:52:26 Lance Bragstad bug task added keystone/ocata
2017-05-31 13:52:43 Lance Bragstad keystone/ocata: assignee prashkre (prashkre)
2017-05-31 13:52:54 Lance Bragstad keystone: importance Undecided Low
2017-05-31 13:52:59 Lance Bragstad keystone: importance Low Medium
2017-05-31 13:53:03 Lance Bragstad keystone/ocata: importance Undecided Medium
2017-05-31 13:53:07 Lance Bragstad keystone/ocata: status New In Progress
2017-05-31 21:27:59 OpenStack Infra keystone/ocata: status In Progress Fix Committed