← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1438827] [NEW] Lazy loading of domain configs can lead to issues

 

Public bug reported:

This lazy loading was created to avoid a circular dependancy between
identity and assignment.  However it has a number of issues:

(Extracted from Bug #1410850)

First - if someone will call .setup_domain_drivers(...) multiple
times(perhaps we should add self.create() in this method or raise
exception on second call of this method).

Second - .reload_domain_driver don't take in a count ._any_sql
attribute. So if domain config will change backend type and it become
SQL or become not SQL... we will have a problems.

Also, it seems a messy compilation all over the code that is prone to
error.

** Affects: keystone
     Importance: Medium
         Status: New

** Changed in: keystone
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1438827

Title:
  Lazy loading of domain configs can lead to issues

Status in OpenStack Identity (Keystone):
  New

Bug description:
  This lazy loading was created to avoid a circular dependancy between
  identity and assignment.  However it has a number of issues:

  (Extracted from Bug #1410850)

  First - if someone will call .setup_domain_drivers(...) multiple
  times(perhaps we should add self.create() in this method or raise
  exception on second call of this method).

  Second - .reload_domain_driver don't take in a count ._any_sql
  attribute. So if domain config will change backend type and it become
  SQL or become not SQL... we will have a problems.

  Also, it seems a messy compilation all over the code that is prone to
  error.

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


Follow ups

References