← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1653780] [NEW] Cyclic import issue with use of common_types

 

Public bug reported:

We have defined some custom types in neutron/object/common_types
to better control and validate the input, but use of common_types in
objects/quota.py will lead to cyclic import like this

neutron.api.v2.base -> neutron.quota -> neutron.db.quota.api ->
neutron.objects.quota -> neutron.objects.common_types ->
neutron.extensions.dns -> neutron.extensions.l3 ->
neutron.api.v2.resource_helper) (cyclic-import)

this is required to break for quota_ovo patch

https://review.openstack.org/#/c/338625/

** Affects: neutron
     Importance: Undecided
         Status: New

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

Title:
  Cyclic import issue with use of common_types

Status in neutron:
  New

Bug description:
  We have defined some custom types in neutron/object/common_types
  to better control and validate the input, but use of common_types in
  objects/quota.py will lead to cyclic import like this

  neutron.api.v2.base -> neutron.quota -> neutron.db.quota.api ->
  neutron.objects.quota -> neutron.objects.common_types ->
  neutron.extensions.dns -> neutron.extensions.l3 ->
  neutron.api.v2.resource_helper) (cyclic-import)

  this is required to break for quota_ovo patch

  https://review.openstack.org/#/c/338625/

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


Follow ups