Bug 1628374 - [OSP14] Unit and functional tests fail on neutron_lib import
Summary: [OSP14] Unit and functional tests fail on neutron_lib import
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-neutron-lib
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: 14.0 (Rocky)
Assignee: Assaf Muller
QA Contact: Roee Agiman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-12 20:43 UTC by Bernard Cafarelli
Modified: 2018-10-03 09:11 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-02 20:24:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Bernard Cafarelli 2018-09-12 20:43:13 UTC
Description of problem:
all OSP14 unit and functional tests fail

Version-Release number of selected component (if applicable):
latest OSP14, 20180906.1 puddle

How reproducible:
100%

Backtrace:
Failed to import test module: neutron.tests.unit.tests.test_base
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "neutron/tests/unit/tests/test_base.py", line 23, in <module>
    from neutron.tests import base
  File "neutron/tests/base.py", line 30, in <module>
    from neutron_lib import fixture
  File "/usr/lib/python2.7/site-packages/neutron_lib/fixture.py", line 29, in <module>
    from neutron_lib.tests.unit import fake_notifier
ImportError: No module named tests.unit

The RPCFixture was rehomed in neutron-lib in the Rocky cycle, but depends on fake_notifier from tests (which are excluded in current python-neutron-lib)


Note You need to log in before you can comment on or make changes to this bug.