Can not import magnum.api.validation

Bug #1521840 reported by Hua Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Committed
Undecided
Hua Wang

Bug Description

We can not import magnum.api.validation because of circle reference.

We can reproduce this bug by "tox -egenconfig" or import magnum.api.validation in a python console.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "magnum/api/validation.py", line 20, in <module>
    from magnum.api.controllers.v1 import utils as api_utils
  File "magnum/api/controllers/v1/__init__.py", line 30, in <module>
    from magnum.api.controllers.v1 import baymodel
  File "magnum/api/controllers/v1/baymodel.py", line 29, in <module>
    from magnum.api import validation
ImportError: cannot import name validation

Hua Wang (humble00)
Changed in magnum:
assignee: nobody → Hua Wang (humble00)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/252177

Changed in magnum:
status: New → In Progress
Hua Wang (humble00)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/252177
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=a09ff4bc258e97db208285ff9ab54d72abb2f621
Submitter: Jenkins
Branch: master

commit a09ff4bc258e97db208285ff9ab54d72abb2f621
Author: Hua Wang <email address hidden>
Date: Wed Dec 2 12:16:53 2015 +0800

    Remove circle reference

    We can not import magnum.api.validation because of circle reference.

    We can reproduce this bug by "tox -egenconfig" or importing
    magnum.api.validation in a python console.

    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "magnum/api/validation.py", line 20, in <module>
        from magnum.api.controllers.v1 import utils as api_utils
      File "magnum/api/controllers/v1/__init__.py", line 30, in <module>
        from magnum.api.controllers.v1 import baymodel
      File "magnum/api/controllers/v1/baymodel.py", line 29, in <module>
        from magnum.api import validation
    ImportError: cannot import name validation

    Change-Id: Ib73d7f1d989b9bc860bfadafa52e9a83996f5de9
    Closes-Bug: #1521840

Changed in magnum:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 2.0.0

This issue was fixed in the openstack/magnum 2.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.