← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1373167] [NEW] Infinite Recursion for __getattr__ in keystone.token.persistence.core.Manager due to dep injection

 

Public bug reported:

On initializing the token_api due to the way the dependency injector
works, an infinite recursion occurs at:

https://github.com/openstack/keystone/blob/1af24284bdc093dae4f027ade2ddb29656b676f0/keystone/token/persistence/core.py#L228-L236

This occurs when doing the lookup for token_provider_api causes an
issue. The solution simply requires verifying that the 'item' is not in
self._dependencies or self._optionals.


This stabilizes eventually after startup.

** Affects: keystone
     Importance: Medium
     Assignee: Morgan Fainberg (mdrnstm)
         Status: Triaged

** Changed in: keystone
       Status: New => Triaged

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

** Changed in: keystone
    Milestone: None => juno-rc1

** Changed in: keystone
     Assignee: (unassigned) => Morgan Fainberg (mdrnstm)

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

Title:
  Infinite Recursion for __getattr__ in
  keystone.token.persistence.core.Manager due to dep injection

Status in OpenStack Identity (Keystone):
  Triaged

Bug description:
  On initializing the token_api due to the way the dependency injector
  works, an infinite recursion occurs at:

  https://github.com/openstack/keystone/blob/1af24284bdc093dae4f027ade2ddb29656b676f0/keystone/token/persistence/core.py#L228-L236

  This occurs when doing the lookup for token_provider_api causes an
  issue. The solution simply requires verifying that the 'item' is not
  in self._dependencies or self._optionals.

  
  This stabilizes eventually after startup.

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


Follow ups

References