*** This bug is a duplicate of bug 1418398 ***
    https://bugs.launchpad.net/bugs/1418398
** This bug has been marked a duplicate of bug 1418398
   role not found and assignment not found mix up together

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1367740

Title:
  Assignment backends raise non-suggestive exception in grant CRUD

Status in OpenStack Identity (keystone):
  Triaged

Bug description:
  When getting or deleting a grant, if something goes wrong, a
  RoleNotFound exception is thrown. [1]-[6]

  In cases where the role exists and the combination of other arguments
  is invalid, this is a non-suggestive exception because it tells us
  "Could not find role: %(role_id)s".

  We should create a new exception called GrantNotFound and use it in
  those cases.

  [1] 
https://github.com/openstack/keystone/blob/master/keystone/assignment/backends/sql.py#L201-L202
  [2] 
https://github.com/openstack/keystone/blob/master/keystone/assignment/backends/sql.py#L219-L220

  [3] 
https://github.com/openstack/keystone/blob/master/keystone/assignment/backends/kvs.py#L527-L528
  [4] 
https://github.com/openstack/keystone/blob/master/keystone/assignment/backends/kvs.py#L549-L550

  [5] 
https://github.com/openstack/keystone/blob/master/keystone/assignment/backends/ldap.py#L353-L354
  [6] 
https://github.com/openstack/keystone/blob/master/keystone/assignment/backends/ldap.py#L381-L382

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1367740/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to