← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1903689] [NEW] [stable/ussuri] Functional job fails - AttributeError: module 'neutron_lib.constants' has no attribute 'DEVICE_OWNER_DISTRIBUTED'

 

Public bug reported:

Spotted with this review:
https://review.opendev.org/#/c/748135/
https://zuul.opendev.org/t/openstack/build/cc5ece62f011441cad5c82926eba1466

Functional job now fails 100% on stable/ussuri:
=========================
Failures during discovery
=========================
--- import errors ---
Failed to import test module: networking_sfc.tests.functional.db.test_migrations
Traceback (most recent call last):
  File "/usr/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
    __import__(name)
  File "/home/zuul/src/opendev.org/openstack/networking-sfc/networking_sfc/tests/functional/db/test_migrations.py", line 17, in <module>
    from neutron.tests.functional.db import test_migrations
  File "/home/zuul/src/opendev.org/openstack/networking-sfc/.tox/dsvm-functional/lib/python3.6/site-packages/neutron/tests/functional/db/test_migrations.py", line 33, in <module>
    from neutron.db.migration.models import head as head_models
  File "/home/zuul/src/opendev.org/openstack/networking-sfc/.tox/dsvm-functional/lib/python3.6/site-packages/neutron/db/migration/models/head.py", line 31, in <module>
    from neutron.db import l3_dvrscheduler_db  # noqa
  File "/home/zuul/src/opendev.org/openstack/networking-sfc/.tox/dsvm-functional/lib/python3.6/site-packages/neutron/db/l3_dvrscheduler_db.py", line 34, in <module>
    from neutron.db import l3_dvr_db
  File "/home/zuul/src/opendev.org/openstack/networking-sfc/.tox/dsvm-functional/lib/python3.6/site-packages/neutron/db/l3_dvr_db.py", line 45, in <module>
    from neutron.db import l3_db
  File "/home/zuul/src/opendev.org/openstack/networking-sfc/.tox/dsvm-functional/lib/python3.6/site-packages/neutron/db/l3_db.py", line 56, in <module>
    from neutron.objects import ports as port_obj
  File "/home/zuul/src/opendev.org/openstack/networking-sfc/.tox/dsvm-functional/lib/python3.6/site-packages/neutron/objects/ports.py", line 23, in <module>
    from neutron.common import _constants
  File "/home/zuul/src/opendev.org/openstack/networking-sfc/.tox/dsvm-functional/lib/python3.6/site-packages/neutron/common/_constants.py", line 79, in <module>
    constants.DEVICE_OWNER_DISTRIBUTED]
AttributeError: module 'neutron_lib.constants' has no attribute 'DEVICE_OWNER_DISTRIBUTED'
[...]


Possible fix, capping neutron-lib for this branch?


neutron-fwaas has similar issue:
https://review.opendev.org/#/c/752882/
https://zuul.opendev.org/t/openstack/build/7fdfc3ab0f0a458ea296d25444d895b1

** Affects: networking-sfc
     Importance: Undecided
         Status: New

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: gate-failure

** Also 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/1903689

Title:
  [stable/ussuri] Functional job fails - AttributeError: module
  'neutron_lib.constants' has no attribute 'DEVICE_OWNER_DISTRIBUTED'

Status in networking-sfc:
  New
Status in neutron:
  New

Bug description:
  Spotted with this review:
  https://review.opendev.org/#/c/748135/
  https://zuul.opendev.org/t/openstack/build/cc5ece62f011441cad5c82926eba1466

  Functional job now fails 100% on stable/ussuri:
  =========================
  Failures during discovery
  =========================
  --- import errors ---
  Failed to import test module: networking_sfc.tests.functional.db.test_migrations
  Traceback (most recent call last):
    File "/usr/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
      module = self._get_module_from_name(name)
    File "/usr/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
      __import__(name)
    File "/home/zuul/src/opendev.org/openstack/networking-sfc/networking_sfc/tests/functional/db/test_migrations.py", line 17, in <module>
      from neutron.tests.functional.db import test_migrations
    File "/home/zuul/src/opendev.org/openstack/networking-sfc/.tox/dsvm-functional/lib/python3.6/site-packages/neutron/tests/functional/db/test_migrations.py", line 33, in <module>
      from neutron.db.migration.models import head as head_models
    File "/home/zuul/src/opendev.org/openstack/networking-sfc/.tox/dsvm-functional/lib/python3.6/site-packages/neutron/db/migration/models/head.py", line 31, in <module>
      from neutron.db import l3_dvrscheduler_db  # noqa
    File "/home/zuul/src/opendev.org/openstack/networking-sfc/.tox/dsvm-functional/lib/python3.6/site-packages/neutron/db/l3_dvrscheduler_db.py", line 34, in <module>
      from neutron.db import l3_dvr_db
    File "/home/zuul/src/opendev.org/openstack/networking-sfc/.tox/dsvm-functional/lib/python3.6/site-packages/neutron/db/l3_dvr_db.py", line 45, in <module>
      from neutron.db import l3_db
    File "/home/zuul/src/opendev.org/openstack/networking-sfc/.tox/dsvm-functional/lib/python3.6/site-packages/neutron/db/l3_db.py", line 56, in <module>
      from neutron.objects import ports as port_obj
    File "/home/zuul/src/opendev.org/openstack/networking-sfc/.tox/dsvm-functional/lib/python3.6/site-packages/neutron/objects/ports.py", line 23, in <module>
      from neutron.common import _constants
    File "/home/zuul/src/opendev.org/openstack/networking-sfc/.tox/dsvm-functional/lib/python3.6/site-packages/neutron/common/_constants.py", line 79, in <module>
      constants.DEVICE_OWNER_DISTRIBUTED]
  AttributeError: module 'neutron_lib.constants' has no attribute 'DEVICE_OWNER_DISTRIBUTED'
  [...]

  
  Possible fix, capping neutron-lib for this branch?

  
  neutron-fwaas has similar issue:
  https://review.opendev.org/#/c/752882/
  https://zuul.opendev.org/t/openstack/build/7fdfc3ab0f0a458ea296d25444d895b1

To manage notifications about this bug go to:
https://bugs.launchpad.net/networking-sfc/+bug/1903689/+subscriptions


Follow ups