Handle NotFound when listing role assignments for deleted users
Keystone can use an external identity store for the users, and
store assignments for these users in the SQL database that it
manages. When a user has been deleted directly in the external
identity store, these assignments will persist. Therefore when
listing role assignments and asking for names to be included,
keystone will try to get information of the user and fail with
NotFound.
This catches the NotFound exception of the get_user and get_group
calls and fills the user values with and empty string.
Change-Id: Iec3e12f6cd1402e1e3f192b0ede5d608bd41ca1d
Closes-Bug: 1684820
(cherry picked from commit 0392b36a0d7d3e7cc479b357245da04c949924de)
Reviewed: https:/ /review. openstack. org/465395 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=e1ee00f1dfd b62383b3b0c0528 fa59f2af4c7040
Committed: https:/
Submitter: Jenkins
Branch: stable/ocata
commit e1ee00f1dfdb623 83b3b0c0528fa59 f2af4c7040
Author: Kristi Nikolla <email address hidden>
Date: Fri Apr 21 15:31:49 2017 -0400
Handle NotFound when listing role assignments for deleted users
Keystone can use an external identity store for the users, and
store assignments for these users in the SQL database that it
manages. When a user has been deleted directly in the external
identity store, these assignments will persist. Therefore when
listing role assignments and asking for names to be included,
keystone will try to get information of the user and fail with
NotFound.
This catches the NotFound exception of the get_user and get_group
calls and fills the user values with and empty string.
Change-Id: Iec3e12f6cd1402 e1e3f192b0ede5d 608bd41ca1d cc479b357245da0 4c949924de)
Closes-Bug: 1684820
(cherry picked from commit 0392b36a0d7d3e7